]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years agoNew hook filter-buffer-substring-functions.
Stefan Monnier [Sun, 2 May 2010 05:56:30 +0000 (01:56 -0400)]
New hook filter-buffer-substring-functions.
* simple.el (with-wrapper-hook): Move.
(buffer-substring-filters): Mark obsolete.
(filter-buffer-substring-functions): New variable.
(buffer-substring-filters): Use it.  Remove unused arg `noprops'.

14 years agoUse a mode-line spec rather than a static string in Semantic.
Stefan Monnier [Sun, 2 May 2010 05:06:53 +0000 (01:06 -0400)]
Use a mode-line spec rather than a static string in Semantic.
* cedet/semantic/util-modes.el:
(semantic-minor-modes-format): New var to replace...
(semantic-minor-modes-status): Remove.
(semantic-mode-line-update): Construct a mode-line spec rather than
a static string so that mouse buttons can be used on individual minor
modes and so that semantic-mode-line-update only needs to be called
when global settings are changed.
(semantic-add-minor-mode, semantic-toggle-minor-mode-globally):
Call semantic-mode-line-update.
(semantic-toggle-minor-mode-globally): Don't assume mode is on
minor-mode-alist, check semantic-minor-mode-alist as well.
(semantic-stickyfunc-mode, semantic-show-parser-state-auto-marker)
(semantic-show-parser-state-marker, semantic-show-parser-state-mode)
(semantic-show-unmatched-syntax-mode, semantic-highlight-edits-mode):
* cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
* cedet/semantic/idle.el (semantic-idle-scheduler-mode)
(define-semantic-idle-service, semantic-idle-summary-mode):
* cedet/semantic/decorate/mode.el (semantic-decoration-mode):
Don't call semantic-mode-line-update any more.

14 years agoUse define-minor-mode in CEDET where applicable.
Stefan Monnier [Sun, 2 May 2010 03:38:19 +0000 (23:38 -0400)]
Use define-minor-mode in CEDET where applicable.
* cedet/srecode/mode.el (srecode-minor-mode,global-srecode-minor-mode):
Use define-minor-mode.

* cedet/semantic/util-modes.el (semantic-add-minor-mode):
Remove unused arg `keymap' and code redundant with define-minor-mode.
(semantic-toggle-minor-mode-globally): Only handle arg -1 and 1.
(semantic-stickyfunc-mode, global-semantic-show-unmatched-syntax-mode)
(semantic-highlight-func-mode, global-semantic-show-parser-state-mode)
(global-semantic-highlight-edits-mode, semantic-highlight-edits-mode)
(semantic-show-unmatched-syntax-mode, semantic-show-parser-state-mode)
(global-semantic-stickyfunc-mode, global-semantic-highlight-func-mode):
Use define-minor-mode.
(semantic-stickyfunc-mode-setup, semantic-highlight-edits-mode-setup)
(semantic-show-unmatched-syntax-mode-setup)
(semantic-show-parser-state-mode-setup)
(semantic-highlight-func-mode-setup): Inline into sole caller.

* cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
(semantic-mru-bookmark-mode): Use define-minor-mode.
(semantic-mru-bookmark-mode-setup): Inline into sole caller.

* cedet/semantic/idle.el (define-semantic-idle-service):
Use define-minor-mode and inline setup function into its sole caller.
(semantic-idle-scheduler-mode-setup)
(semantic-idle-summary-mode-setup): Inline into sole caller.
(global-semantic-idle-scheduler-mode, semantic-idle-scheduler-mode):
Use define-minor-mode.

* cedet/semantic/decorate/mode.el (global-semantic-decoration-mode)
(semantic-decoration-mode): Use define-minor-mode.
(semantic-decoration-mode-setup): Inline into sole caller.

* cedet/ede/dired.el (ede-dired-minor-mode): Initialize in declaration.
(ede-dired-minor-mode): Use define-minor-mode and derived-mode-p.
(ede-dired-add-to-target): Use dolist.

14 years ago* allout.el: Fix commenting convention.
Stefan Monnier [Sun, 2 May 2010 02:39:50 +0000 (22:39 -0400)]
* allout.el: Fix commenting convention.

14 years ago(Tutorial): Use ^{\prime} to indicate primes.
Daniel E. Doherty [Sat, 1 May 2010 23:47:59 +0000 (18:47 -0500)]
(Tutorial): Use ^{\prime} to indicate primes.

14 years agoRemove LD_SWITCH_MACHINE.
Dan Nicolaescu [Sat, 1 May 2010 21:38:59 +0000 (14:38 -0700)]
Remove LD_SWITCH_MACHINE.
* Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
(TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.

* configure.in (LD_SWITCH_MACHINE, ld_switch_machine): Remove, unused.
(ac_link): Do not use ld_switch_machine.

14 years agoClean up IRIX code.
Dan Nicolaescu [Sat, 1 May 2010 20:23:29 +0000 (13:23 -0700)]
Clean up IRIX code.
* m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
* s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.

14 years agoClean up AIX code.
Dan Nicolaescu [Sat, 1 May 2010 20:19:41 +0000 (13:19 -0700)]
Clean up AIX code.
* m/ibmrs6000.inp: Remove file, unused.
* m/ibmrs6000.h (IBMR2AIX): Remove, unused.
(LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
definition ...
* s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.

14 years ago* sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code, unused.
Dan Nicolaescu [Sat, 1 May 2010 20:14:10 +0000 (13:14 -0700)]
* sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code, unused.

14 years agocomposite.el (find-composition): Fix a typo in the doc string.
Eli Zaretskii [Sat, 1 May 2010 18:53:23 +0000 (21:53 +0300)]
composite.el (find-composition): Fix a typo in the doc string.

14 years agoEmulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii [Sat, 1 May 2010 18:38:33 +0000 (21:38 +0300)]
Emulate POSIX_SIGNALS on MS-Windows.

 s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.

14 years agoEmulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii [Sat, 1 May 2010 18:28:00 +0000 (21:28 +0300)]
Emulate POSIX_SIGNALS on MS-Windows.

 w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.

14 years agoFix display of R2L lines and cursor motion in bidi buffers.
Eli Zaretskii [Sat, 1 May 2010 18:11:20 +0000 (21:11 +0300)]
Fix display of R2L lines and cursor motion in bidi buffers.

 xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
 (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.
 (display_line): Fix prepending of truncation glyphs to R2L rows.
 Preserve overlay and string info in row->end.
 (insert_left_trunc_glyphs): Support addition of left truncation
 glyphs to R2L rows.
 (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.  Fix a crash when a display string
 is continued to the next line.  Don't return zero if cursor was
 found by `cursor' property of a display string.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.

14 years agoFix cursor positioning in partial width windows on TTY.
Eli Zaretskii [Sat, 1 May 2010 15:53:35 +0000 (18:53 +0300)]
Fix cursor positioning in partial width windows on TTY.

 xdisp.c (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.

14 years agoFix display of truncated R2L lines on a TTY.
Eli Zaretskii [Sat, 1 May 2010 13:39:44 +0000 (16:39 +0300)]
Fix display of truncated R2L lines on a TTY.

 xdisp.c (display_line): Fix prepending of truncation glyphs to R2L rows.
 (insert_left_trunc_glyphs): Support addition of left truncation glyphs
 to R2L rows.

14 years agoFix display of R2L continued lines in partial-width windows on a TTY.
Eli Zaretskii [Sat, 1 May 2010 10:49:09 +0000 (13:49 +0300)]
Fix display of R2L continued lines in partial-width windows on a TTY.

 xdisp.c: (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.

14 years ago* tramp.texi (Inline methods, Default Method): Mention
Michael Albinus [Sat, 1 May 2010 10:08:42 +0000 (12:08 +0200)]
* tramp.texi (Inline methods, Default Method): Mention
`tramp-inline-compress-start-size'.

14 years agoImplement compression for inline methods.
Michael Albinus [Sat, 1 May 2010 09:34:14 +0000 (11:34 +0200)]
Implement compression for inline methods.

* net/tramp.el (tramp-inline-compress-start-size): New defcustom.
(tramp-copy-size-limit): Allow also nil.
(tramp-inline-compress-commands): New defconst.
(tramp-find-inline-compress, tramp-get-inline-compress)
(tramp-get-inline-coding): New defuns.
(tramp-get-remote-coding, tramp-get-local-coding): Removed,
replaced by `tramp-get-inline-coding'.
(tramp-handle-file-local-copy, tramp-handle-write-region)
(tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.

14 years agoRefactor code that determines row->start and row->end.
Eli Zaretskii [Sat, 1 May 2010 08:50:01 +0000 (11:50 +0300)]
Refactor code that determines row->start and row->end.

 xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.

14 years agoRework previous autoconf changes, hopefully to make clearer.
Glenn Morris [Sat, 1 May 2010 03:04:51 +0000 (20:04 -0700)]
Rework previous autoconf changes, hopefully to make clearer.

* configure.in (OTHER_OBJ): Remove.
(PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables.

* configure: Regenerate.

* src/Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
for clarity.
(OTHER_OBJ): Remove.
(PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
(otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.

14 years ago* src/fileio.c (Ffile_selinux_context): Context functions may return null.
Karel Klíc [Sat, 1 May 2010 02:58:41 +0000 (19:58 -0700)]
* src/fileio.c (Ffile_selinux_context): Context functions may return null.

14 years agoAvoid using trash for certain temp files (Bug#6070).
Chong Yidong [Sat, 1 May 2010 02:19:40 +0000 (22:19 -0400)]
Avoid using trash for certain temp files (Bug#6070).

* server.el (server-sentinel, server-start, server-force-delete):

* jka-compr.el (jka-compr-partial-uncompress)
(jka-compr-call-process, jka-compr-write-region, jka-compr-load):

* epg.el (epg--make-temp-file, epg-decrypt-string)
(epg-encrypt-string, epg-verify-string, epg-sign-string):

* diff.el (diff-sentinel): Bind delete-by-moving-to-trash to nil
before deleting (Bug#6070).

14 years ago* bindings.el (mode-line-abbrev-mode, mode-line-auto-fill-mode): Remove.
Stefan Monnier [Sat, 1 May 2010 01:39:58 +0000 (21:39 -0400)]
* bindings.el (mode-line-abbrev-mode, mode-line-auto-fill-mode): Remove.

14 years ago* emacs-lisp/lisp-mode.el (lisp-mode): Use define-derived-mode.
Stefan Monnier [Sat, 1 May 2010 01:29:12 +0000 (21:29 -0400)]
* emacs-lisp/lisp-mode.el (lisp-mode): Use define-derived-mode.
Set find-tag-default-function as a variable rather than a property.

14 years agoFix commenting convention
Stefan Monnier [Sat, 1 May 2010 01:27:16 +0000 (21:27 -0400)]
Fix commenting convention

14 years ago* minibuffer.el (tags-completion-at-point-function): Move to etags.el.
Stefan Monnier [Sat, 1 May 2010 01:08:43 +0000 (21:08 -0400)]
* minibuffer.el (tags-completion-at-point-function): Move to etags.el.
* progmodes/etags.el (tags-completion-at-point-function):
Remove left over interactive spec.  Add autoloading stub.
(complete-tag): Use tags-completion-at-point-function.

14 years ago* minibuffer.el (tags-completion-at-point-function): Fix return value.
Chong Yidong [Fri, 30 Apr 2010 23:13:22 +0000 (19:13 -0400)]
* minibuffer.el (tags-completion-at-point-function): Fix return value.

14 years ago* s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
Dan Nicolaescu [Fri, 30 Apr 2010 20:48:04 +0000 (13:48 -0700)]
* s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.

14 years agoHopefully fix bug#6065.
Glenn Morris [Fri, 30 Apr 2010 16:37:01 +0000 (09:37 -0700)]
Hopefully fix bug#6065.
* configure.in (OTHER_OBJ): Always include vm-limit.o on Cygwin.
Elsewhere, maybe include it.
* src/Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.
(OTHER_OBJ): Define as a separate variable, for clarity.

* configure: Regenerate.

14 years agoxsettings.c: include limits.h and update file comment.
Jan D [Fri, 30 Apr 2010 13:50:34 +0000 (15:50 +0200)]
xsettings.c: include limits.h and update file comment.

14 years agoFix typos in doc strings of composite.el.
Eli Zaretskii [Fri, 30 Apr 2010 12:16:13 +0000 (15:16 +0300)]
Fix typos in doc strings of composite.el.

14 years agoRegenerate configure.
Glenn Morris [Fri, 30 Apr 2010 01:54:08 +0000 (18:54 -0700)]
Regenerate configure.

14 years agoReplace some xmenu cpp with autoconf.
Glenn Morris [Fri, 30 Apr 2010 01:50:17 +0000 (18:50 -0700)]
Replace some xmenu cpp with autoconf.

* configure.in (TOOLKIT_LIBW) [HAVE_GTK]: Set to $GTK_LIBS.
(OLDXMENU, LIBXMENU): New output variables.
* src/Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
Set with configure, not cpp.
(LIBW): Remove, replace with $TOOLKIT_LIBW.

14 years agoReplace some cpp with autoconf.
Glenn Morris [Fri, 30 Apr 2010 01:36:42 +0000 (18:36 -0700)]
Replace some cpp with autoconf.
* configure.in (OTHER_OBJ): New output variable.
* src/Makefile.in (mallocobj): Remove.
(otherobj): Simplify using @OTHER_OBJ@.

14 years agoSimplify some manual dependencies in src/Makefile.in.
Glenn Morris [Fri, 30 Apr 2010 01:27:33 +0000 (18:27 -0700)]
Simplify some manual dependencies in src/Makefile.in.
* src/Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
(keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
Don't bother making nsgui.h dependency platform-specific.

14 years ago* src/Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
Glenn Morris [Fri, 30 Apr 2010 01:18:09 +0000 (18:18 -0700)]
* src/Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.

14 years ago* ido.el (ido-minibuffer-setup): Don't set cua-inhibit-cua-keys (Bug#5765).
Chong Yidong [Thu, 29 Apr 2010 15:41:23 +0000 (11:41 -0400)]
* ido.el (ido-minibuffer-setup): Don't set cua-inhibit-cua-keys (Bug#5765).

14 years ago* ido.el (ido-init-completion-maps): Remove C-v binding (Bug#5765).
Chong Yidong [Thu, 29 Apr 2010 15:38:08 +0000 (11:38 -0400)]
* ido.el (ido-init-completion-maps): Remove C-v binding (Bug#5765).

14 years ago* minibuffer.el (tags-completion-at-point-function): New function.
Chong Yidong [Thu, 29 Apr 2010 15:32:11 +0000 (11:32 -0400)]
* minibuffer.el (tags-completion-at-point-function): New function.
(completion-at-point-functions): Use it.

* cedet/semantic.el (semantic-completion-at-point-function): New function.
(semantic-mode): Use semantic-completion-at-point-function for
completion-at-point-functions instead.

* progmodes/etags.el (complete-tag): Revert last change.

14 years ago(progmodes/cc-mode.el) c-extend-region-for-CPP: Fix an off-by-one error
Alan Mackenzie [Thu, 29 Apr 2010 14:48:32 +0000 (14:48 +0000)]
(progmodes/cc-mode.el) c-extend-region-for-CPP: Fix an off-by-one error
(in end of macro position).

14 years agoDon't burp if process sentinel/filter kills the current buffer.
Stefan Monnier [Thu, 29 Apr 2010 14:29:09 +0000 (10:29 -0400)]
Don't burp if process sentinel/filter kills the current buffer.
* process.c (read_process_output, exec_sentinel): Don't burp if the
sentinel/filter kills the current buffer.

Fixes: debbugs:6060
14 years agoAdd bug reference.
Juanma Barranquero [Thu, 29 Apr 2010 14:23:12 +0000 (16:23 +0200)]
Add bug reference.

14 years ago* net/browse-url.el (browse-url-firefox-program): Use iceweasel if
Stefan Monnier [Thu, 29 Apr 2010 14:04:33 +0000 (10:04 -0400)]
* net/browse-url.el (browse-url-firefox-program): Use iceweasel if
firefox is absent.  Don't autoload.
(browse-url-galeon-program): Don't autoload.

14 years agoFix wrong-docstring problem introduced with hash-consing.
Stefan Monnier [Thu, 29 Apr 2010 12:42:01 +0000 (08:42 -0400)]
Fix wrong-docstring problem introduced with hash-consing.
* eval.c (Fautoload): Set doc to a unique number rather than to 0.
Remove unused var `args'.
* lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
(LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
* doc.c (store_function_docstring): Use XSETCAR.

14 years agoDocument complete-symbol change.
Chong Yidong [Wed, 28 Apr 2010 22:27:54 +0000 (18:27 -0400)]
Document complete-symbol change.

14 years agoUnify complete-symbol with completion-at-point.
Chong Yidong [Wed, 28 Apr 2010 19:04:16 +0000 (15:04 -0400)]
Unify complete-symbol with completion-at-point.

* bindings.el (complete-symbol): Move into minibuffer.el.

* minibuffer.el (complete-tag): Move from etags.el.  If tags
completion cannot be performed, return nil instead of signalling
an error.
(completion-at-point): Make it an alias for complete-symbol.
(complete-symbol): Move from bindings.el, and replace with the
body of completion-at-point.

* progmodes/etags.el (complete-tag): Move to minibuffer.el.

* cedet/semantic.el (semantic-mode): When enabled, add
semantic-ia-complete-symbol to completion-at-point-functions.

* cedet/semantic/ia.el (semantic-ia-complete-symbol): Return nil
if Semantic is not active.

14 years ago* net/tramp.el (tramp-remote-selinux-p): New defun.
Michael Albinus [Wed, 28 Apr 2010 18:42:20 +0000 (20:42 +0200)]
* net/tramp.el (tramp-remote-selinux-p): New defun.
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context): Use it.

14 years ago(bug-reference-url-format): Mark as `safe-local-variable' if the value
Sam Steingold [Wed, 28 Apr 2010 16:14:41 +0000 (12:14 -0400)]
(bug-reference-url-format): Mark as `safe-local-variable' if the value
is a string or a symbol with the property `bug-reference-url-format'.

14 years ago* configure.in (LIBXMU): Fix logic in previous change.
Glenn Morris [Wed, 28 Apr 2010 15:58:29 +0000 (08:58 -0700)]
* configure.in (LIBXMU): Fix logic in previous change.

14 years agoRevert last bug-reference-url-format change.
Chong Yidong [Wed, 28 Apr 2010 15:45:45 +0000 (11:45 -0400)]
Revert last  bug-reference-url-format change.

* progmodes/bug-reference.el (bug-reference-url-format): Revert
2010-04-27 change due to security risk.

14 years agoMake it possible to locally disable a globally enabled mode.
Stefan Monnier [Wed, 28 Apr 2010 15:18:37 +0000 (11:18 -0400)]
Make it possible to locally disable a globally enabled mode.
* simple.el (fundamental-mode): Run fundamental-mode-hook.
* emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode
rather than kill-all-local-variables so it runs fundamental-mode-hook.
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so
that subsequent hooks get a chance to disable it.

14 years agoRegenerate configure.
Glenn Morris [Wed, 28 Apr 2010 07:33:48 +0000 (00:33 -0700)]
Regenerate configure.

14 years agosrc/Makefile.in minor simplification,
Glenn Morris [Wed, 28 Apr 2010 07:25:47 +0000 (00:25 -0700)]
src/Makefile.in minor simplification,
* src/Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
(WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.

14 years agoDefine CYGWIN_OBJ with configure, not cpp.
Glenn Morris [Wed, 28 Apr 2010 07:20:39 +0000 (00:20 -0700)]
Define CYGWIN_OBJ with configure, not cpp.
* configure.in (CYGWIN_OBJ): New output variable.
* src/Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.

14 years agoSet GPM part of MOUSE_SUPPORT with configure, not cpp.
Glenn Morris [Wed, 28 Apr 2010 07:15:10 +0000 (00:15 -0700)]
Set GPM part of MOUSE_SUPPORT with configure, not cpp.
* configure.in (GPM_MOUSE_SUPPORT): New output variable.
* src/Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
(MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.

14 years agoSet FONT_DRIVERS with configure rather than cpp.
Glenn Morris [Wed, 28 Apr 2010 07:08:53 +0000 (00:08 -0700)]
Set FONT_DRIVERS with configure rather than cpp.
* configure.in (FONT_OBJ): New output variable.
* src/Makefile.in (FONT_OBJ): New, set by configure.
(FONT_DRIVERS): Use $FONT_OBJ.

14 years agoMove LIBXMU from cpp to configure.
Glenn Morris [Wed, 28 Apr 2010 07:01:43 +0000 (00:01 -0700)]
Move LIBXMU from cpp to configure.

* configure.in (LIBXMU): New output variable.

* src/Makefile.in (LIBXMU): Set with configure, not cpp.
* src/s/aix4-2.h (LIBXMU):
* src/s/hpux10-20.h (LIBXMU):
Remove definition, now set in configure.

14 years agoMove NS_OBJ, NS_SUPPORT from cpp to configure.
Glenn Morris [Wed, 28 Apr 2010 06:54:25 +0000 (23:54 -0700)]
Move NS_OBJ, NS_SUPPORT from cpp to configure.
* configure.in (NS_OBJ, NS_SUPPORT): New output variables.
* src/Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.

14 years agoMissing src/ChangeLog for previous commit.
Glenn Morris [Wed, 28 Apr 2010 06:45:35 +0000 (23:45 -0700)]
Missing src/ChangeLog for previous commit.

14 years agoMove test for 64-bit kernel with 32-bit userland to configure.
Glenn Morris [Wed, 28 Apr 2010 06:43:38 +0000 (23:43 -0700)]
Move test for 64-bit kernel with 32-bit userland to configure.
See discussion in bug#5655.

* configure.in (machine, canonical): On amdx86-64, check for a 32-bit
userland and maybe change values to i386 (move test from s/amdx86-64.h).

* src/m/amdx86-64.h [i386]: Move this test to configure.in.

14 years agoFix a crash when a display string is continued to the next line.
Eli Zaretskii [Tue, 27 Apr 2010 19:40:05 +0000 (22:40 +0300)]
Fix a crash when a display string is continued to the next line.

 xdisp.c (set_cursor_from_row): When looping over a display string,
 don't overstep the end of the glyph row.

14 years agoLet the user turn off locally a globalized minor mode
Stefan Monnier [Tue, 27 Apr 2010 18:14:16 +0000 (14:14 -0400)]
Let the user turn off locally a globalized minor mode
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Avoid re-enabling a minor mode after the user turned the minor mode
off if MODE-enable-in-buffers is run twice (typically once from
fundamental-mode's after-change-major-mode-hook and a second time from
run-mode-hook's own after-change-major-mode-hook).

14 years ago* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.
Stefan Monnier [Tue, 27 Apr 2010 17:57:32 +0000 (13:57 -0400)]
* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.

14 years ago(bug-reference-url-format): Mark as `safe-local-variable' if the value
Sam Steingold [Tue, 27 Apr 2010 15:13:42 +0000 (11:13 -0400)]
(bug-reference-url-format): Mark as `safe-local-variable' if the value
is a string or a function, as documented and implemented on 2010-04-02.

14 years agoWhen killing buffers with ido, don't offer virtual buffers for completion.
Juanma Barranquero [Tue, 27 Apr 2010 11:47:19 +0000 (13:47 +0200)]
When killing buffers with ido, don't offer virtual buffers for completion.

* ido.el (ido-buffer-internal): Bind `ido-use-virtual-buffers' to nil
  when method is 'kill.

14 years agoCommit missing lisp/Changelog entries.
Agustín Martín [Tue, 27 Apr 2010 10:49:02 +0000 (12:49 +0200)]
Commit missing lisp/Changelog entries.

14 years agoispell.el: Kill ispell process when killing its associated buffer.
Agustín Martín [Tue, 27 Apr 2010 10:44:44 +0000 (12:44 +0200)]
ispell.el: Kill ispell process when killing its associated buffer.

(ispell-init-process,ispell-kill-ispell,kill-buffer-hook):
Kill ispell process when killing its associated buffer.

14 years agoispell.el (ispell-init-process): Fix personal dictionary condition in default directo...
Agustín Martín [Tue, 27 Apr 2010 10:35:00 +0000 (12:35 +0200)]
ispell.el (ispell-init-process): Fix personal dictionary condition in default directory check.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 08:11:11 +0000 (01:11 -0700)]
Regenerate configure.

14 years agoMove LIBXTR6 from cpp to autoconf.
Glenn Morris [Tue, 27 Apr 2010 08:09:01 +0000 (01:09 -0700)]
Move LIBXTR6 from cpp to autoconf.

* configure.in (LIBXTR6): New output variable.  Move unixware special
case here from src/s/unixware.h.

* src/Makefile.in (LIBXTR6): Set with configure, not cpp.
* src/s/unixware.h (NEED_LIBW): Remove definition.

* admin/CPP-DEFINES: Remove NEED_LIBW.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 07:38:05 +0000 (00:38 -0700)]
Regenerate configure.

14 years agoReplace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.
Glenn Morris [Tue, 27 Apr 2010 07:33:35 +0000 (00:33 -0700)]
Replace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.

* configure.in (LUCID_LIBW, MOTIF_LIBW): No longer substitute in Makefiles.
(TOOLKIT_LIBW): New output variable, replacing LUCID_LIBW/MOTIF_LIBW.

* src/Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
(TOOLKIT_LIBW): New, set by configure.
(@X_TOOLKIT_TYPE@): No longer define it.

14 years agoMove MOTIF_LIBW to autoconf.
Glenn Morris [Tue, 27 Apr 2010 07:02:12 +0000 (00:02 -0700)]
Move MOTIF_LIBW to autoconf.

* configure.in (HAVE_MOTIF_2_1): Remove unused variable.
(LIBXP): No longer substitute in Makefiles.
(MOTIF_LIBW): New output variable.  Move system-specific settings here
from src/s files.

* src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
(MOTIF_LIBW): Set with configure, not cpp.
* s/aix4-2.h (LIB_MOTIF):
* s/gnu-linux.h (LIB_MOTIF):
* s/unixware.h (LIB_MOTIF): Move to configure.in.

* admin/CPP-DEFINES: Remove LIB_MOTIF.

14 years agodesktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
Jan Djärv [Tue, 27 Apr 2010 06:45:43 +0000 (08:45 +0200)]
desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
but we aren't using it.

14 years agoDon't load tm and apel XEmacs packages when compiling.
Katsumi Yamaoka [Tue, 27 Apr 2010 06:40:58 +0000 (06:40 +0000)]
Don't load tm and apel XEmacs packages when compiling.

14 years agoRegenerate configure and cibfig.in
Jan Djärv [Tue, 27 Apr 2010 06:20:03 +0000 (08:20 +0200)]
Regenerate configure and cibfig.in

14 years agoReduce CPP usage.
Dan Nicolaescu [Tue, 27 Apr 2010 05:24:53 +0000 (22:24 -0700)]
Reduce CPP usage.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
definitions and undefs.  Inline definitions in the only user.
(ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.

* Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.

* Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.

* configure.in (C_SWITCH_X_SYSTEM): Define using autoconf, not cpp.

14 years agoReduce CPP usage.
Dan Nicolaescu [Tue, 27 Apr 2010 03:47:47 +0000 (20:47 -0700)]
Reduce CPP usage.
* Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
(obj): Use autoconf for unexec instead of cpp.

* configure.in (LIB_X11_LIB): Remove, inline in the only user.
(unexec): Define unconditionally, all platforms define
UNEXEC.  AC_SUBST it.
(UNEXEC_SRC): Remove, unused.

14 years agoRemove some AC_DEFINEs that are now unused.
Glenn Morris [Tue, 27 Apr 2010 03:32:39 +0000 (20:32 -0700)]
Remove some AC_DEFINEs that are now unused.

* configure.in (HAVE_MOTIF_2_1, HAVE_LIBXP): Remove unused AC_DEFINEs,
replaced by LIBXP.

* configure, src/config.in: Regenerate.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 03:18:39 +0000 (20:18 -0700)]
Regenerate configure.

14 years agoUse $CRT_DIR in more places.
Glenn Morris [Tue, 27 Apr 2010 03:14:14 +0000 (20:14 -0700)]
Use $CRT_DIR in more places.

* configure.in (--with-crt-dir): Doc fix (now valid for all platforms).
(CRT_DIR): On (powerpc64|sparc64)-*-linux-gnu*, default to /usr/lib64.
On hpux10-20, default to /lib.

* src/m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
since the defaults (set by the system file) are fine in most cases.
[GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
* src/m/ibms390x.h (START_FILES, LIB_STANDARD):
* src/m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
* src/m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
Remove definitions, since they are set correctly in s/gnu-linux.h.
* src/s/freebsd.h (START_FILES, LIB_STANDARD):
* src/s/gnu-linux.h (START_FILES, LIB_STANDARD):
* src/s/hpux10-20.h (START_FILES):
* src/s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
Use $CRT_DIR in place of fixed /usr/lib, /lib directories.

* src/Makefile.in: Comment.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 02:38:36 +0000 (19:38 -0700)]
Regenerate configure.

14 years agoReplace some more cpp with autoconf.
Glenn Morris [Tue, 27 Apr 2010 02:36:20 +0000 (19:36 -0700)]
Replace some more cpp with autoconf.

* configure.in (LUCID_LIBW, LIBXP, WIDGET_OBJ): New output variables.

* src/Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
(MOTIF_LIBW): Use $LIBXP.
(otherobj): Use $WIDGET_OBJ.

14 years ago* Makefile.in (LIBS_MACHINE): Remove, unused.
Dan Nicolaescu [Mon, 26 Apr 2010 18:23:01 +0000 (11:23 -0700)]
* Makefile.in (LIBS_MACHINE): Remove, unused.

14 years ago* Makefile.in (LIBS_MACHINE): Remove, unused.
Dan Nicolaescu [Mon, 26 Apr 2010 18:14:24 +0000 (11:14 -0700)]
* Makefile.in (LIBS_MACHINE): Remove, unused.
* Makefile.in (LIBS_MACHINE): Remove all uses, unused.
* configure.in (LIBS_MACHINE): Remove, unused.

14 years agoUse autoconf instead of cpp for LIB_MATH.
Dan Nicolaescu [Mon, 26 Apr 2010 17:10:09 +0000 (10:10 -0700)]
Use autoconf instead of cpp for LIB_MATH.
* s/darwin.h (LIB_MATH): Do not define here, move to configure.
* s/cygwin.h (LIB_MATH): Likewise.
* Makefile.in (LIB_MATH): Do not define with cpp.
(LIBES): Use autoconf for LIB_MATH.

* configure.in (LIB_MATH): New output variable.  Set it for some systems.

14 years agocomposite.c (Ffind_composition_internal): Fix the return value for an automatic compo...
Kenichi Handa [Mon, 26 Apr 2010 12:02:08 +0000 (21:02 +0900)]
composite.c (Ffind_composition_internal): Fix the return value for an automatic composition.

14 years agoRemove all NO_ARG_ARRAY uses.
Dan Nicolaescu [Sun, 25 Apr 2010 22:16:58 +0000 (15:16 -0700)]
Remove all NO_ARG_ARRAY uses.
* fns.c (concat2, concat3, nconc2):
* eval.c (apply1, call1, call2, call3, call4, call5, call6)
(call7): Remove NO_ARG_ARRAY usage, assume it's always true.
* m/xtensa.h (NO_ARG_ARRAY):
* m/template.h (NO_ARG_ARRAY):
* m/sparc.h (NO_ARG_ARRAY):
* m/sh3.h (NO_ARG_ARRAY):
* m/mips.h (NO_ARG_ARRAY):
* m/macppc.h (NO_ARG_ARRAY):
* m/iris4d.h (NO_ARG_ARRAY):
* m/intel386.h (NO_ARG_ARRAY):
* m/ibms390x.h (NO_ARG_ARRAY):
* m/ibms390.h (NO_ARG_ARRAY):
* m/ibmrs6000.h (NO_ARG_ARRAY):
* m/ia64.h (NO_ARG_ARRAY):
* m/hp800.h (NO_ARG_ARRAY):
* m/arm.h (NO_ARG_ARRAY):
* m/amdx86-64.h (NO_ARG_ARRAY):
* m/alpha.h (NO_ARG_ARRAY): Remove definition.

14 years agoStart fixing cursor positioning in bidi buffers with display properties.
Eli Zaretskii [Sun, 25 Apr 2010 19:33:31 +0000 (22:33 +0300)]
Start fixing cursor positioning in bidi buffers with display properties.

 xdisp.c (set_cursor_from_row): Don't return zero if cursor was
 found by `cursor' property of a display string.
 (display_line): Preserve overlay and string info in row->end.

14 years agoFix crash with bidi display on the last empty line (bug#6030).
Eli Zaretskii [Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)]
Fix crash with bidi display on the last empty line (bug#6030).

 xdisp.c (display_line): Don't assume 2nd call to
 get_next_display_element cannot return zero.  (Bug#6030)

Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.

14 years agoMove code that bidi-iterates out of display property to a separate function.
Eli Zaretskii [Sun, 25 Apr 2010 16:55:59 +0000 (19:55 +0300)]
Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.

14 years agoFix crash with bidi display on the last empty line (bug#6030).
Eli Zaretskii [Sun, 25 Apr 2010 14:42:34 +0000 (17:42 +0300)]
Fix crash with bidi display on the last empty line (bug#6030).

 xdisp.c (display_line): Don't assume 2nd call to
 get_next_display_element cannot return zero.

14 years agotool-bar.el: Revert unintended checkin in 2010-04-23T16:26:11Z!monnier@iro.umontreal.ca.
Jan D [Sun, 25 Apr 2010 07:23:01 +0000 (09:23 +0200)]
tool-bar.el: Revert unintended checkin in 2010-04-23T16:26:11Z!monnier@iro.umontreal.ca.

14 years agoMinor simplications for src/m/amdx86-64.h.
Glenn Morris [Sat, 24 Apr 2010 19:50:03 +0000 (12:50 -0700)]
Minor simplications for src/m/amdx86-64.h.

* m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
(START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.

14 years ago* etc/NEWS: Mention --with-crt-dir.
Glenn Morris [Sat, 24 Apr 2010 18:10:17 +0000 (11:10 -0700)]
* etc/NEWS: Mention --with-crt-dir.

14 years agoFix typos in comments of composite.c
Eli Zaretskii [Sat, 24 Apr 2010 16:46:20 +0000 (19:46 +0300)]
Fix typos in comments of composite.c

14 years agocomposite.el (find-composition): Doc fix.
Eli Zaretskii [Sat, 24 Apr 2010 16:23:29 +0000 (19:23 +0300)]
composite.el (find-composition): Doc fix.

14 years agocomposite.c (composition_compute_stop_pos): Fix a typo in the commentary.
Eli Zaretskii [Sat, 24 Apr 2010 13:24:25 +0000 (16:24 +0300)]
composite.c (composition_compute_stop_pos): Fix a typo in the commentary.

14 years agoRemove conflict markers.
Juanma Barranquero [Sat, 24 Apr 2010 12:33:31 +0000 (14:33 +0200)]
Remove conflict markers.

14 years agoFix cursor motion at end of line that ends in a composed character.
Eli Zaretskii [Sat, 24 Apr 2010 11:11:40 +0000 (14:11 +0300)]
Fix cursor motion at end of line that ends in a composed character.

 xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
 use `get_next_display_element' and `set_iterator_to_next' to
 advance to the next character, when looking for the character that
 begins the next row.