bpt/emacs.git
14 years ago* Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
Dan Nicolaescu [Mon, 12 Apr 2010 14:38:42 +0000 (07:38 -0700)]
* Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
non-cpp section.

14 years ago* Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
Dan Nicolaescu [Mon, 12 Apr 2010 14:32:10 +0000 (07:32 -0700)]
* Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.

14 years agoRestore C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM.
Jan Djärv [Mon, 12 Apr 2010 11:28:56 +0000 (13:28 +0200)]
Restore C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM.

14 years agoChange so emacs at least compiles.
Jan Djärv [Mon, 12 Apr 2010 10:59:35 +0000 (12:59 +0200)]
Change so emacs at least compiles.

#undef C_SWITCH_MACHINE
#undef C_SWITCH_SYSTEM
#undef C_SWITCH_X_SITE

14 years agoRemove C_SWITCH_SYSTEM_TEMACS.
Dan Nicolaescu [Sun, 11 Apr 2010 21:45:59 +0000 (14:45 -0700)]
Remove C_SWITCH_SYSTEM_TEMACS.

14 years agoRemove C_SWITCH_SYSTEM_TEMACS.
Dan Nicolaescu [Sun, 11 Apr 2010 21:43:28 +0000 (14:43 -0700)]
Remove C_SWITCH_SYSTEM_TEMACS.
* s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
(malloc, realloc, free): Use emacs, not temacs for conditional
definition.

* Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
(ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.

14 years agoUse autoconf, not cpp for some variables.
Dan Nicolaescu [Sun, 11 Apr 2010 20:17:24 +0000 (13:17 -0700)]
Use autoconf, not cpp for some variables.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf.

* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf.

* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
autoconf, not cpp.
(ALL_CFLAGS): Use them as make variables.

14 years agoUse autoconf, not cpp for some variables.
Dan Nicolaescu [Sun, 11 Apr 2010 20:04:24 +0000 (13:04 -0700)]
Use autoconf, not cpp for some variables.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf, not cpp.
(ALL_CFLAGS): Use them as make variables.
(really-lwlib, really-oldXMenu): Do not pass them.

14 years agoUse XFT in Lucid dialogs if available.
Jan Djärv [Sun, 11 Apr 2010 18:25:09 +0000 (20:25 +0200)]
Use XFT in Lucid dialogs if available.

* xmenu.c (apply_systemfont_to_dialog): New.
(create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.

* lwlib-Xaw.c (widget_xft_data): New for Xft data.
(fill_xft_data, openFont, get_text_width_and_height)
(draw_text, set_text, find_xft_data, command_press)
(command_reset): New functions.
(xaw_update_one_widget): Call set_text for dialog and buttons
if HAVE_XFT.  Also set internalHeight for buttons.
(xaw_destroy_instance): Free all Xft related data.
(button_actions, buttonTrans): New structures.
(make_dialog): Call XtAppAddActions for button_actions.
Find xft font to use and call fill_xft_data for widgets.
(xaw_create_dialog): Pass instance parameter to make_dialog.

* lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT.
Override translations for buttons.  If depth is 16 or more, tell
Xaw3d to not be nice to colormap.
Remove separator widget, use XtNhorizDistance on first right button
instead.

* xresources.texi (Lucid Resources): Mention faceName for dialogs.

14 years ago* process.c (exec_sentinel): Preserve current-buffer.
Stefan Monnier [Sun, 11 Apr 2010 16:15:09 +0000 (12:15 -0400)]
* process.c (exec_sentinel): Preserve current-buffer.

14 years ago(read_process_output): Move the save-current-buffer to
Stefan Monnier [Sun, 11 Apr 2010 15:53:13 +0000 (11:53 -0400)]
(read_process_output): Move the save-current-buffer to
apply to both the filter and the non-filter branches.

14 years agoUpdate comint-password-prompt-regexp (Bug#2817).
Chong Yidong [Sat, 10 Apr 2010 23:54:50 +0000 (19:54 -0400)]
Update comint-password-prompt-regexp (Bug#2817).

* comint.el (comint-password-prompt-regexp): Use regexp-opt, and
recognize ssh-keygen prompt (Bug#2817).

14 years ago* s/msdos.h (UNEXEC): New definition.
Dan Nicolaescu [Sat, 10 Apr 2010 20:38:48 +0000 (13:38 -0700)]
* s/msdos.h (UNEXEC): New definition.

14 years ago* net/tramp.el (tramp-do-copy-or-rename-file): Add progress reporter.
Michael Albinus [Sat, 10 Apr 2010 15:51:46 +0000 (17:51 +0200)]
* net/tramp.el (tramp-do-copy-or-rename-file): Add progress reporter.

14 years agoSynchronize with Tramp repository.
Michael Albinus [Sat, 10 Apr 2010 12:59:22 +0000 (14:59 +0200)]
Synchronize with Tramp repository.

* tramp.texi (Auto-save and Backup): Remove reference to Emacs 21.
(Frequently Asked Questions): Adapt supported (X)Emacs versions.  Adapt
supported MS Windows versions.  Remove obsolete URL.  Use the $()
syntax, texi2dvi reports errors with the backquotes.

* trampver.texi: Update release number.

14 years agoSynchronize with Tramp repository.
Michael Albinus [Sat, 10 Apr 2010 12:50:31 +0000 (14:50 +0200)]
Synchronize with Tramp repository.

* net/tramp.el (tramp-completion-function-alist)
(tramp-file-name-regexp, tramp-chunksize)
(tramp-local-coding-commands, tramp-remote-coding-commands): Fix
docstring.
(tramp-remote-process-environment): Use `format' instead of
`concat'.
(tramp-handle-directory-files-and-attributes)
(tramp-get-remote-path): Use `copy-tree'.
(tramp-handle-file-name-all-completions): Backward/ XEmacs
compatibility: Use `completion-ignore-case' if
`read-file-name-completion-ignore-case' does not exist.
(tramp-do-copy-or-rename-file-directly): Do not use
`tramp-handle-file-remote-p'.
(tramp-do-copy-or-rename-file-out-of-band): Use
`tramp-compat-delete-directory'.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection): Use
`format-spec-make'.
(tramp-find-foreign-file-name-handler)
(tramp-advice-make-auto-save-file-name)
(tramp-set-auto-save-file-modes): Remove superfluous check for
`stringp'.  This is done inside `tramp-tramp-file-p'.
(tramp-debug-outline-regexp): New defconst.
(tramp-get-debug-buffer): Use it.
(tramp-check-for-regexp): Use (forward-line 1).
(tramp-set-auto-save-file-modes): Adapt version check.

* net/tramp-compat.el (tramp-advice-file-expand-wildcards): Wrap
call of `featurep' for 2nd argument.
(tramp-compat-make-temp-file): Simplify fallback implementation.
(tramp-compat-copy-tree): Remove function.
(tramp-compat-delete-directory): Provide implementation for older
Emacsen.

* net/tramp-fish.el (tramp-fish-handle-directory-files-and-attributes):
Do not use `tramp-fish-handle-file-attributes.

* net/trampver.el: Update release number.

14 years agoxfns.c (Fx_show_tip): Subtract last glyph's width only when it is for padding.
YAMAMOTO Mitsuharu [Sat, 10 Apr 2010 10:59:46 +0000 (19:59 +0900)]
xfns.c (Fx_show_tip): Subtract last glyph's width only when it is for padding.

14 years agoDon't abort try_window with fonts change when showing tooltip (Bug#2423).
YAMAMOTO Mitsuharu [Sat, 10 Apr 2010 10:52:30 +0000 (19:52 +0900)]
Don't abort try_window with fonts change when showing tooltip (Bug#2423).

* dispextern.h (TRY_WINDOW_CHECK_MARGINS)
(TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.

* xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
TRY_WINDOW_CHECK_MARGINS.

* xfns.c (Fx_show_tip): Call try_window with TRY_WINDOW_IGNORE_FONTS_CHANGE.

14 years agoxfns.c (Fx_show_tip): Undo last change.
YAMAMOTO Mitsuharu [Sat, 10 Apr 2010 10:39:16 +0000 (19:39 +0900)]
xfns.c (Fx_show_tip): Undo last change.

14 years ago* compile.el (compilation-save-buffers-predicate): Add missing :version tag.
Glenn Morris [Sat, 10 Apr 2010 02:18:09 +0000 (19:18 -0700)]
* compile.el (compilation-save-buffers-predicate): Add missing :version tag.

14 years agoGet rid of several uses of the term 'master' in favor of equivalent verbiage
Eric S. Raymond [Fri, 9 Apr 2010 17:19:53 +0000 (13:19 -0400)]
Get rid of several uses of the term 'master' in favor of equivalent verbiage
using "repository".  No code changes.

14 years agoFix showing the complete tip the first time, bug #2423.
Jan D [Fri, 9 Apr 2010 16:49:06 +0000 (18:49 +0200)]
Fix showing the complete tip the first time, bug #2423.

* xfns.c (Fx_show_tip): Call try_window in a loop until
fonts_changed_p is zero (Bug#2423).

14 years ago(turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode): Remove,
Sam Steingold [Fri, 9 Apr 2010 16:04:17 +0000 (12:04 -0400)]
(turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode): Remove,
`bug-reference-mode' and `bug-reference-prog-mode' can be used in hooks directly

14 years ago(compilation-save-buffers-predicate): Remove the "autoload" cookie.
Sam Steingold [Fri, 9 Apr 2010 15:52:45 +0000 (11:52 -0400)]
(compilation-save-buffers-predicate): Remove the "autoload" cookie.

14 years agoAdd --author support to git commit.
Dan Nicolaescu [Fri, 9 Apr 2010 15:35:30 +0000 (08:35 -0700)]
Add --author support to git commit.
* vc-git.el (vc-git-checkin): Pass extra-args to the commit command.
(vc-git-log-edit-mode): New minor mode.
(log-edit-mode, log-edit-extra-flags, log-edit-mode): New
declarations.

14 years agoImprove documentation comments.
Eric S. Raymond [Fri, 9 Apr 2010 14:17:52 +0000 (10:17 -0400)]
Improve documentation comments.

14 years agoFix bug#5856: don't dereference glyphs beyond end of glyph_row.
Eli Zaretskii [Thu, 8 Apr 2010 21:14:33 +0000 (00:14 +0300)]
Fix bug#5856: don't dereference glyphs beyond end of glyph_row.

 xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
 the end of TEXT_AREA.  (Bug#5856)

14 years agoFix some of the problems in defsubst* (bug#5728).
Stefan Monnier [Thu, 8 Apr 2010 19:59:46 +0000 (15:59 -0400)]
Fix some of the problems in defsubst* (bug#5728).
* emacs-lisp/cl-macs.el (defsubst*): Don't substitute non-trivial args.
(cl-defsubst-expand): Do the substitutions simultaneously (bug#5728).

14 years ago* xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of HAVE_GCONF.
Jan Djärv [Thu, 8 Apr 2010 18:22:51 +0000 (20:22 +0200)]
* xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of HAVE_GCONF.

14 years agoFix crash due to incorrect resolution of type of NSM characters (bug#5858).
Eli Zaretskii [Thu, 8 Apr 2010 17:35:10 +0000 (20:35 +0300)]
Fix crash due to incorrect resolution of type of NSM characters (bug#5858).

 bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
 prev.orig_type, for resolving type of NSM.

14 years agoLucid menus can now use Xft for fonts.
Jan Djärv [Thu, 8 Apr 2010 16:20:32 +0000 (18:20 +0200)]
Lucid menus can now use Xft for fonts.

* xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
(parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
in current_font.
(init_gconf): Read value of SYSTEM_FONT and save it in current_font.
(Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
functions.
(syms_of_xsettings): Initialize current_font. defsubr
Sfont_get_system_normal_font.

* xsettings.h (Ffont_get_system_normal_font,
xsettings_get_system_normal_font): Declare.

* xfns.c (extern xlwmenu_default_font): Remove.
(Fx_create_frame): Remove setting of xlwmenu_default_font, moved
to xlwmenu.c.

* menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
menu items in UTF-8.

* xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
(apply_systemfont_to_menu): New function.
(set_frame_menubar, create_and_show_popup_menu): Call
apply_systemfont_to_menu.

* xlwmenu.c (xlwmenu_default_font): Make static.
(xlwMenuResources): Add XtNfaceName and XtNdefaultFace.
(string_width): Use XftTextExtentsUtf8 if HAVE_XFT.
(MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for
HAVE_XFT.
(size_menu): Set max_rest_width in window_state structure.
(display_menu_item): If HAVE_XFT and xft_draw is set, use
XftDrawRect and XftDrawStringUtf8 to draw text.
(make_windows_if_needed): Set max_rest_width and xft_draw
in windows[i].
(openXftFont): New.
(XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font
is not set, load font fixed and save it in xlwmenu_default_font.
(XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0].
(XlwMenuClassInitialize): Initialize xlwmenu_default_font.
(XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and
windows[0].xft_draw if xft_font is set.
(XlwMenuDestroy): Destroy all xft_draw and close xft_font.
(facename_changed): New.
(XlwMenuSetValues): Call facename_changed. If face name did change,
close old fonts and destroy xft_draw:s.  Then create new ones.

* xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace,
XtCDefaultFace): New.

* xlwmenuP.h (_window_state): Add max_rest_width and xft_draw.
(_XlwMenu_part): Add faceName,xft_fg, xft_bg, xft_disabled_fg and
xft_font.

* xresources.texi (Lucid Resources): Mention faceName to set Xft fonts.

14 years agoadd ";;;###autoload" cookies
Sam Steingold [Wed, 7 Apr 2010 16:25:49 +0000 (12:25 -0400)]
add ";;;###autoload" cookies

14 years ago(compilation-save-buffers-predicate): New custom variable.
Sam Steingold [Wed, 7 Apr 2010 16:20:35 +0000 (12:20 -0400)]
(compilation-save-buffers-predicate): New custom variable.
(compile, recompile): Pass it to `save-some-buffers'.

14 years ago* lib-src/makefile.w32-in: Use parenthesis for macros for nmake compatibility.
Christoph [Wed, 7 Apr 2010 13:43:04 +0000 (15:43 +0200)]
* lib-src/makefile.w32-in: Use parenthesis for macros for nmake compatibility.

14 years agowid-edit.el (widget-choose): Put cursor on second line of the buffer (Bug#5695).
Jan Djärv [Wed, 7 Apr 2010 12:57:04 +0000 (14:57 +0200)]
wid-edit.el (widget-choose): Put cursor on second line of the buffer (Bug#5695).

14 years agoFix resizing for X and non-Gtk+ build. Bug #5848.
Jan D [Wed, 7 Apr 2010 11:39:26 +0000 (13:39 +0200)]
Fix resizing for X and non-Gtk+ build.  Bug #5848.

* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
  FRAME_LINE_TO_PIXEL_Y.

* xterm.c (x_set_window_size_1): Don't add border_width/height to
  pixelwidth/height.

14 years agoSimplify code for HP machines.
Dan Nicolaescu [Wed, 7 Apr 2010 06:11:45 +0000 (23:11 -0700)]
Simplify code for HP machines.
* m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
for GNU_LINUX, not needed.
(UNEXEC, NEED_BSDTTY): Move definitions...
* s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.

14 years ago* m/iris4d.h (UNEXEC): Move definition ...
Dan Nicolaescu [Wed, 7 Apr 2010 06:01:30 +0000 (23:01 -0700)]
* m/iris4d.h (UNEXEC): Move definition ...
* s/irix6-5.h (UNEXEC): ... here.

14 years agoAdd new VC methods: vc-log-incoming and vc-log-outgoing.
Dan Nicolaescu [Wed, 7 Apr 2010 05:56:35 +0000 (22:56 -0700)]
Add new VC methods: vc-log-incoming and vc-log-outgoing.
* vc.el (vc-print-log-setup-buttons): New function split out from
vc-print-log-internal.
(vc-log-internal-common): New function, a parametrized version of
vc-print-log-internal.
(vc-print-log-internal): Just call vc-log-internal-common with the
right arguments.
(vc-incoming-outgoing-internal):
(vc-log-incoming, vc-log-outgoing): New functions.
(vc-log-view-type): New permanent local variable.

* vc-hooks.el (vc-menu-map): Bind vc-log-incoming and vc-log-outgoing.

* vc-bzr.el (vc-bzr-log-view-mode): Use vc-log-view-type instead
of the dynamic bound vc-short-log.
(vc-bzr-log-incoming, vc-bzr-log-outgoing): New functions.

* vc-git.el (vc-git-log-outgoing): New function.
(vc-git-log-view-mode): Use vc-log-view-type instead
of the dynamic bound vc-short-log.

* vc-hg.el (vc-hg-log-view-mode): Use vc-log-view-type instead
of the dynamic bound vc-short-log.  Highlight the tag.
(vc-hg-log-incoming, vc-hg-log-outgoing): New functions.
(vc-hg-outgoing, vc-hg-incoming, vc-hg-outgoing-mode):
(vc-hg-incoming-mode): Remove.
(vc-hg-extra-menu-map): Do not bind vc-hg-incoming and vc-hg-outgoing.

14 years agoFix default-directory for vc-root-diff.
Dan Nicolaescu [Wed, 7 Apr 2010 04:14:56 +0000 (21:14 -0700)]
Fix default-directory for vc-root-diff.
* vc.el (vc-root-diff): Bind default-directory to the root
directory for the diff command.

14 years ago* verilog-mode.el (verilog-forward-sexp, verilog-calc-1): Support
Wilson Snyder [Wed, 7 Apr 2010 04:06:23 +0000 (21:06 -0700)]
* verilog-mode.el (verilog-forward-sexp, verilog-calc-1): Support
"disable fork" and "fork wait" multi word keywords, suggested by
Steve Pearlmutter.
(verilog-pretty-declarations): Support lineup of declarations in
port lists.
(verilog-skip-backward-comments, verilog-skip-forward-comment-p):
fix bug for /* / comments
(verilog-backward-syntactic-ws, verilog-forward-syntactic-ws):
Speed up and simplfy as this is never called with a bound.
(verilog-pretty-declarations): Enhance to line up declarations
inside a parameter list, suggested by Alan Morgan.
(verilog-pretty-expr): Tune assignment regular expression match
string for corner cases; also use markers instead of character
number as indent changes the later.
(verilog-type-keywords): Fix pulldown as missing
keyword.
(verilog-read-sub-decls-line): Fix comments in AUTO_TEMPLATE
causing truncation of AUTOWIRE signals.  Reported by Bruce
Tennant.
(verilog-auto-inst, verilog-auto-inst-port): Add vl_mbits for
AUTO_TEMPLATEs needing multiple array bits.  Suggested by Bruce
Tennant.
(verilog-keywords):
(verilog-1800-2005-keywords, verilog-1800-2009-keywords): Add IEEE
1800-2009 keywords, including "global.".

14 years ago(calcFunc-fdiv): Use `nth' to choose elements from list.
Jay Belanger [Wed, 7 Apr 2010 01:43:23 +0000 (20:43 -0500)]
(calcFunc-fdiv): Use `nth' to choose elements from list.

14 years ago(calcFunc-fdiv): Allow `fdiv' to divide fractions.
Vincent Belaïche [Wed, 7 Apr 2010 01:33:00 +0000 (20:33 -0500)]
(calcFunc-fdiv): Allow `fdiv' to divide fractions.

14 years agoRemoved duplicate definition of ido-virtual-buffers
John Wiegley [Tue, 6 Apr 2010 18:17:55 +0000 (14:17 -0400)]
Removed duplicate definition of ido-virtual-buffers

14 years agoFix typos.
Juanma Barranquero [Tue, 6 Apr 2010 11:02:56 +0000 (13:02 +0200)]
Fix typos.

14 years agoFixed duplicate names appearing in IDO buffer list (using virtuals)
John Wiegley [Tue, 6 Apr 2010 07:02:57 +0000 (03:02 -0400)]
Fixed duplicate names appearing in IDO buffer list (using virtuals)
* ido.el (ido-add-virtual-buffers-to-list): Fixed duplicated names
appearing in buffer list (if a live buffer name matched a recentf
file basename).  Should use uniqify to offer a real solution.

14 years agoMinor fixes to a recent contribution to ido.el
John Wiegley [Tue, 6 Apr 2010 03:38:56 +0000 (23:38 -0400)]
Minor fixes to a recent contribution to ido.el
* ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog
comment to code, and added a :version tag.
(ido-virtual-buffers): Moved defvar to fix byte-compiler warning.

14 years agoEnable recentf-mode if using virtual buffers.
Juanma Barranquero [Tue, 6 Apr 2010 02:26:37 +0000 (04:26 +0200)]
Enable recentf-mode if using virtual buffers.
* ido.el (recentf-list): Declare for byte-compiler.
  (ido-virtual-buffers): Move up to silence byte-compiler.  Add docstring.
  (ido-make-buffer-list): Simplify.
  (ido-add-virtual-buffers-to-list): Simplify.  Enable recentf-mode.

14 years agoScrolling commands which scroll a line instead of full screen..
Juri Linkov [Mon, 5 Apr 2010 23:44:24 +0000 (02:44 +0300)]
Scrolling commands which scroll a line instead of full screen..
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01452.html

* simple.el (scroll-up-line, scroll-down-line): New commands.
Put property isearch-scroll=t on them.

* emulation/ws-mode.el (scroll-down-line, scroll-up-line):
Remove commands.

14 years agoScrolling commands which does not signal errors at top/bottom.
Juri Linkov [Mon, 5 Apr 2010 23:38:53 +0000 (02:38 +0300)]
Scrolling commands which does not signal errors at top/bottom.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01452.html

* simple.el (scroll-up-command, scroll-down-command): New commands.
Put property isearch-scroll=t on them.

* bindings.el (global-map): Rebind [prior] from `scroll-down' to
`scroll-down-command' and [next] from `scroll-up' to
`scroll-up-command'.

* emulation/cua-base.el: Put property CUA=move on
`scroll-up-command' and `scroll-down-command'.
(cua--init-keymaps): Remap `scroll-up-command' to `cua-scroll-up'
and `scroll-down-command' to `cua-scroll-down'.

14 years agolisp/help.el: Turn ChangeLog comment into source comment.
Juanma Barranquero [Mon, 5 Apr 2010 20:05:47 +0000 (22:05 +0200)]
lisp/help.el: Turn ChangeLog comment into source comment.

14 years ago* help.el (describe-mode): Return nil (for IELM's sake).
Juanma Barranquero [Mon, 5 Apr 2010 10:36:45 +0000 (12:36 +0200)]
* help.el (describe-mode): Return nil (for IELM's sake).

14 years agoxfns.c (set_machine_and_pid_properties): Fix parantesis
Jan D [Mon, 5 Apr 2010 07:35:53 +0000 (09:35 +0200)]
xfns.c (set_machine_and_pid_properties): Fix parantesis

14 years agoMove declaration before other statements.
Jan Djärv [Sun, 4 Apr 2010 15:29:42 +0000 (17:29 +0200)]
Move declaration before other statements.

14 years agoSet WM_CLIENT_MACHINE and _NET_WM_PID properties (Bug#5828).
Jan Djärv [Sun, 4 Apr 2010 10:47:12 +0000 (12:47 +0200)]
Set WM_CLIENT_MACHINE and _NET_WM_PID properties (Bug#5828).

* xfns.c (set_machine_and_pid_properties): New function.
         (Fx_create_frame): Call set_machine_and_pid_properties.

14 years agoImprove commentary of handle_stop_backwards.
Eli Zaretskii [Sun, 4 Apr 2010 09:30:38 +0000 (12:30 +0300)]
Improve commentary of handle_stop_backwards.

14 years ago2010-04-04 John Wiegley <jwiegley@gmail.com>
John Wiegley [Sun, 4 Apr 2010 06:55:19 +0000 (02:55 -0400)]
2010-04-04  John Wiegley  <jwiegley@gmail.com>

* ido.el (ido-use-virtual-buffers): New variable to indicate
whether "virtual buffer" support is enabled for IDO.  Essentially
it works as follows: Say you are visiting a file and the buffer
gets cleaned up by mignight.el.  Later, you want to switch to that
buffer, but find it's no longer open.  With virtual buffers
enabled, the buffer name stays in the buffer list (using the
ido-virtual face, and always at the end), and if you select it, it
opens the file back up again.  This allows you to think less about
whether recently opened files are still open or not.  Most of the
time you can quit Emacs, restart, and then switch to a file buffer
that was previously open as if it still were.  NOTE: This feature
has been present in iswitchb for several years now, and I'm
porting the same logic to IDO.
(ido-virtual): Face used to indicate virtual buffers in the list.
(ido-buffer-internal): If a buffer is chosen, and no such buffer
exists, but a virtual buffer of that name does (which would be why
it was in the list), recreate the buffer by reopening the file.
(ido-make-buffer-list): If virtual buffers are being used, call
`ido-add-virtual-buffers-to-list' before the make list hook.
(ido-virtual-buffers): New variable which contains a copy of the
current contents of the `recentf-list', albeit pared down for the
sake of speed, and with proper faces applied.
(ido-add-virtual-buffers-to-list): Using the `recentf-list',
create a list of "virtual buffers" to present to the user in
addition to the currently open set.  Note that this logic could
get rather slow if that list is too large.  With the default
`recentf-max-saved-items' of 200, there is little speed penalty.

14 years ago* font-lock.el: Require CL when compiling.
Stefan Monnier [Sat, 3 Apr 2010 20:10:14 +0000 (16:10 -0400)]
* font-lock.el: Require CL when compiling.
(font-lock-turn-on-thing-lock): Use `case'.

14 years agoFix merge conflicts in ldefs-boot.el.
Eli Zaretskii [Sat, 3 Apr 2010 13:59:53 +0000 (16:59 +0300)]
Fix merge conflicts in ldefs-boot.el.

14 years agoFix infloop in bidi buffers with vertical cursor motion at ZV.
Eli Zaretskii [Sat, 3 Apr 2010 13:43:23 +0000 (16:43 +0300)]
Fix infloop in bidi buffers with vertical cursor motion at ZV.

 bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
 BIDI_EOB.

14 years agoFix typo in src/ChangeLog.
Eli Zaretskii [Sat, 3 Apr 2010 09:09:56 +0000 (12:09 +0300)]
Fix typo in src/ChangeLog.

14 years agoRevert last change in batch-update-authors.
Eli Zaretskii [Sat, 3 Apr 2010 09:04:46 +0000 (12:04 +0300)]
Revert last change in batch-update-authors.

14 years agoFix bug in batch-update-authors. Add bidi to AUTHORS.
Eli Zaretskii [Sat, 3 Apr 2010 08:59:36 +0000 (11:59 +0300)]
Fix bug in batch-update-authors.  Add bidi to AUTHORS.

 emacs-lisp/authors.el (authors-fixed-entries): Add entry for Eli Zaretskii.
 (batch-update-authors): Fix popping arguments from command line.

14 years agoAdd stubs for Windows, required after CVE-2010-0825 change.
Juanma Barranquero [Sat, 3 Apr 2010 02:23:51 +0000 (04:23 +0200)]
Add stubs for Windows, required after CVE-2010-0825 change.
* ntlib.c (getgid, getegid, setegid): New stubs.
* ntlib.h (getgid, getegid, setegid): Declare them.

14 years agoMerge from emacs-23
Stefan Monnier [Sat, 3 Apr 2010 01:54:24 +0000 (21:54 -0400)]
Merge from emacs-23

14 years agoBump version to 23.1.95.
Chong Yidong [Sat, 3 Apr 2010 00:42:10 +0000 (20:42 -0400)]
Bump version to 23.1.95.

14 years ago* m/intel386.h (NO_REMAP): Move definition ...
Dan Nicolaescu [Sat, 3 Apr 2010 00:24:53 +0000 (17:24 -0700)]
* m/intel386.h (NO_REMAP): Move definition ...
* s/msdos.h (NO_REMAP): ... here.

14 years ago* m/vax.h (CRT0_DUMMIES): Remove, unused.
Dan Nicolaescu [Sat, 3 Apr 2010 00:20:04 +0000 (17:20 -0700)]
* m/vax.h (CRT0_DUMMIES): Remove, unused.

14 years ago* ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
Dan Nicolaescu [Sat, 3 Apr 2010 00:06:38 +0000 (17:06 -0700)]
* ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
used on those platforms.

14 years ago* ehelp.el (electric-help-orig-major-mode): New buffer-local variable.
Juri Linkov [Fri, 2 Apr 2010 23:01:22 +0000 (02:01 +0300)]
* ehelp.el (electric-help-orig-major-mode): New buffer-local variable.
(electric-help-mode): Set it to original major-mode.  Doc fix.
(with-electric-help): Use `electric-help-orig-major-mode' instead
of (default-value 'major-mode).  Doc fix.
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00069.html

14 years ago(bug-reference-bug-regexp): Also accept "patch" and "RFE".
Sam Steingold [Fri, 2 Apr 2010 17:24:37 +0000 (13:24 -0400)]
(bug-reference-bug-regexp): Also accept "patch" and "RFE".
(bug-reference-fontify): `bug-reference-url-format' can also be a
function to be able to handle the bug kind.
(turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode): Add

14 years agoFix permissions handling (CVE-2010-0825).
Chong Yidong [Fri, 2 Apr 2010 15:26:24 +0000 (11:26 -0400)]
Fix permissions handling (CVE-2010-0825).

* movemail.c (main): Check return values of setuid.  Avoid
possibility of symlink attack when movemail is setgid mail
(CVE-2010-0825).

14 years agoFix permissions handling (CVE-2010-0825).
Chong Yidong [Fri, 2 Apr 2010 15:24:16 +0000 (11:24 -0400)]
Fix permissions handling (CVE-2010-0825).

* movemail.c (main): Check return values of setuid.  Avoid
possibility of symlink attack when movemail is setgid mail
(CVE-2010-0825).

14 years agoFix previous fix. Parantesis misplaced.
Jan Djärv [Fri, 2 Apr 2010 15:18:25 +0000 (17:18 +0200)]
Fix previous fix.  Parantesis misplaced.

14 years agoFix previous fix.
Jan Djärv [Fri, 2 Apr 2010 15:15:05 +0000 (17:15 +0200)]
Fix previous fix.

14 years ago(vc-hg-push, vc-hg-pull): Use `apply' when calling
Sam Steingold [Fri, 2 Apr 2010 14:21:57 +0000 (10:21 -0400)]
(vc-hg-push, vc-hg-pull): Use `apply' when calling
`vc-hg-command' with a list of flags.

14 years agoMerge from trunk
Jan Djärv [Fri, 2 Apr 2010 09:45:27 +0000 (11:45 +0200)]
Merge from trunk

14 years agotmm.el (tmm-get-keymap): Check with symbolp before passing
Jan Djärv [Fri, 2 Apr 2010 09:44:50 +0000 (11:44 +0200)]
tmm.el (tmm-get-keymap): Check with symbolp before passing
value to fboundp, it may not be a symbol.

14 years agoxdisp.c (set_cursor_from_row): Improve comments.
Eli Zaretskii [Fri, 2 Apr 2010 09:35:01 +0000 (12:35 +0300)]
xdisp.c (set_cursor_from_row): Improve comments.

14 years agoFix typos and formatting in ChangeLog entries.
Eli Zaretskii [Fri, 2 Apr 2010 09:12:21 +0000 (12:12 +0300)]
Fix typos and formatting in ChangeLog entries.

14 years agoRemove extern errno declarations.
Dan Nicolaescu [Fri, 2 Apr 2010 03:10:33 +0000 (20:10 -0700)]
Remove extern errno declarations.
* xterm.c:
* xrdb.c:
* w32term.c:
* unexec.c:
* unexaix.c:
* sysdep.c:
* process.c:
* lread.c:
* keyboard.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c (main):
* ecrt0.c:
* dispnew.c:
* callproc.c:
* buffer.c: Remove errno extern declarations.
* s/netbsd.h (NEED_ERRNO): Remove.

* movemail.c:
* etags.c:
* emacsclient.c: Remove extern errno declarations.

14 years agoFix typos in semantic/imenu.el.
Juanma Barranquero [Fri, 2 Apr 2010 02:25:19 +0000 (04:25 +0200)]
Fix typos in semantic/imenu.el.
* cedet/semantic/imenu.el (semantic-imenu-bucketize-type-members)
  (semantic-create-imenu-directory-index): Fix typos in docstrings.
  (semantic-imenu-goto-function): Reflow docstring.

14 years agoFix typos in ChangeLogs.
Juanma Barranquero [Fri, 2 Apr 2010 02:22:17 +0000 (04:22 +0200)]
Fix typos in ChangeLogs.

14 years agoRemove all uses of LIBX11_SYSTEM.
Dan Nicolaescu [Thu, 1 Apr 2010 23:08:14 +0000 (16:08 -0700)]
Remove all uses of LIBX11_SYSTEM.
* Makefile.in (LIBX11_SYSTEM): Remove.
* s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
instead.

* configure.in: Remove all references to LIBX11_SYSTEM.

14 years agoUse correct coding system when verifying a pgp signed message
Andreas Schwab [Thu, 1 Apr 2010 15:34:05 +0000 (17:34 +0200)]
Use correct coding system when verifying a pgp signed message

* mm-uu.el (mm-uu-pgp-signed-extract-1): Use buffer-file-coding-system
if set.

14 years agoRemove support for DJGPP v1.x (bug#5813).
Eli Zaretskii [Thu, 1 Apr 2010 15:29:04 +0000 (18:29 +0300)]
Remove support for DJGPP v1.x (bug#5813).

 CPP-DEFINES (__DJGPP__, __GO32__): Remove, no longer used.

14 years agoFix markup mistake in nonascii.texi.
Chong Yidong [Thu, 1 Apr 2010 15:24:53 +0000 (11:24 -0400)]
Fix markup mistake in nonascii.texi.

* nonascii.texi (Text Representations): Don't mark enable-multibyte-characters as a user option.

14 years agoFix typo.
Chong Yidong [Thu, 1 Apr 2010 15:15:28 +0000 (11:15 -0400)]
Fix typo.

14 years agomsdos.c: Fix last change.
Eli Zaretskii [Thu, 1 Apr 2010 15:15:16 +0000 (18:15 +0300)]
msdos.c: Fix last change.

14 years agoRemove support for DJGPP v1.x (bug#5813).
Eli Zaretskii [Thu, 1 Apr 2010 14:59:46 +0000 (17:59 +0300)]
Remove support for DJGPP v1.x (bug#5813).

 src/:
 w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
 s/msdos.h:
 unexec.c (make_hdr, copy_text_and_data):
 sysdep.c (wait_for_termination, sys_subshell):
 msdos.c (dos_set_window_size, msdos_set_cursor_shape)
 (IT_set_terminal_modes):
 (__write, _rename, gethostname, gettimeofday, alarm, fork, kill)
 (dos_ttraw, dos_ttcooked, run_msdos_command, abort): Remove DJGPP
 v1.x code and tests of the value of __DJGPP__.
 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
 compatibility code.
 lread.c:
 gmalloc.c (memalign):
 fileio.c (Fcopy_file, check_executable, Ffile_modes):
 emacs.c (main):
 dosfns.c (init_dosfns):
 dired.c (file_name_completion_stat): Remove tests of __DJGPP__.

 msdos/:
 sed3.inp:
 sed2.inp:
 sed1.inp:
 mainmake: Files removed.

14 years agoFix bug #5816.
Eli Zaretskii [Thu, 1 Apr 2010 12:37:28 +0000 (15:37 +0300)]
Fix bug #5816.

 xdisp.c (set_cursor_from_row): Fix cursor positioning when the
 string with `cursor' property comes from an `after-string' overlay.

14 years ago(Finding the News): Add pointers to the Server buffer because it's essential.
Katsumi Yamaoka [Thu, 1 Apr 2010 10:55:01 +0000 (10:55 +0000)]
(Finding the News): Add pointers to the Server buffer because it's essential.
By Teodor Zlatanov <tzz@lifelogs.com>.

14 years agoCosmetic change to src/Makefile.in.
Glenn Morris [Thu, 1 Apr 2010 07:10:31 +0000 (00:10 -0700)]
Cosmetic change to src/Makefile.in.

* Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
Define as Makefile variables.
(LIBX): Use above variables rather than directly using autoconf.

14 years ago[merge] Fix last set of Nextstep changes.
Chong Yidong [Wed, 31 Mar 2010 22:28:12 +0000 (18:28 -0400)]
[merge] Fix last set of Nextstep changes.

* nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
* nsterm.h: Fix prototype.

14 years ago* cus-edit.el (custom-buffer-sort-alphabetically): Update :version.
Chong Yidong [Wed, 31 Mar 2010 22:22:17 +0000 (18:22 -0400)]
* cus-edit.el (custom-buffer-sort-alphabetically): Update :version.

14 years agoClean up BSD_SYSTEM use.
Dan Nicolaescu [Wed, 31 Mar 2010 20:39:03 +0000 (13:39 -0700)]
Clean up BSD_SYSTEM use.
* xterm.c:
* process.c:
* emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
for including <sys/ioctl.h>.
* sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
code is only used for MSDOS.

14 years ago* simple.el (next-line, previous-line): Re-throw a signal
Juri Linkov [Wed, 31 Mar 2010 15:16:12 +0000 (18:16 +0300)]
* simple.el (next-line, previous-line): Re-throw a signal
with `signal' instead of using `ding'.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01432.html

14 years ago* simple.el (keyboard-escape-quit): Raise deselecting the active
Juri Linkov [Wed, 31 Mar 2010 15:02:53 +0000 (18:02 +0300)]
* simple.el (keyboard-escape-quit): Raise deselecting the active
region higher than exiting the minibuffer.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00904.html

14 years agoRename `image-extension-data' to `image-metadata'.
Juri Linkov [Wed, 31 Mar 2010 14:55:01 +0000 (17:55 +0300)]
Rename `image-extension-data' to `image-metadata'.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01456.html

* image.c: Add `Qextension_data'.
(syms_of_image): Initialize and staticpro `Qextension_data'.
(Fimage_metadata): Rename from `Fimage_extension_data'.
(gif_load): Put GIF extension data to the property
`Qextension_data'.

* image.el (image-animated-p): Use `image-metadata' instead of
`image-extension-data'.  Get GIF extenstion data from metadata
property `extension-data'.

14 years agoFix highlight of trailing whitespace is right-to-left lines.
Eli Zaretskii [Wed, 31 Mar 2010 14:28:16 +0000 (17:28 +0300)]
Fix highlight of trailing whitespace is right-to-left lines.

 xdisp.c (highlight_trailing_whitespace): Support highlight of
 trailing whitespace in right-to-left rows.