Commit graph

94448 commits

Author SHA1 Message Date
Glenn Morris
3dee6fdb96 Replace some X-related cpp with autoconf.
* configure.in (LIBXT_OTHER, LIBX_OTHER): New output variables.

* src/Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
(LIBXT_OTHER, LIBX_OTHER): New, set by configure.
(LIBXT): Set with configure, not cpp.
(LIBX): Remove.
(LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2010-05-02 19:10:43 -07:00
Glenn Morris
521ee9b37b * make-dist: There are no more src/m/*.inp files. 2010-05-02 18:53:58 -07:00
Stefan Monnier
bbf52f1e6f Use define-minor-mode in Gnus where applicable.
* mml.el (mml-mode): Use define-minor-mode.
* gnus-undo.el (gnus-undo-mode-map): Initialize in declaration.
(gnus-undo-mode): Use define-minor-mode.
* gnus-sum.el (gnus-dead-summary-mode-map): Initialize in declaration.
(gnus-dead-summary-mode): Use define-minor-mode.
* gnus-salt.el (gnus-pick-mode-map, gnus-binary-mode-map):
Initialize in declaration.
(gnus-pick-mode, gnus-binary-mode): Use define-minor-mode.
* gnus-ml.el (gnus-mailing-list-mode-map): Initialize in declaration.
(gnus-mailing-list-mode): Use define-minor-mode.
* gnus-draft.el (gnus-draft-mode-map): Initialize in declaration.
(gnus-draft-mode): Use define-minor-mode.
* gnus-dired.el (gnus-dired-mode-map): Initialize in declaration.
(gnus-dired-mode): Use define-minor-mode.
2010-05-02 20:41:45 -04:00
Dan Nicolaescu
a101e0fbac * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
The FreeBSD is not needed, the default works, Solaris version is
not needed, and the remaining case is not supported by configure.
2010-05-02 12:32:18 -07:00
Jan Djärv
f63d0028c0 Run kill-emacs when exiting for display closed or SIGTERM/HUP.
* xsmfns.c (CHDIR_OPT): New define.
(smc_save_yourself_CB): Add CHDIR_OPT to options to use when
restarting emacs.

* xterm.c (x_connection_closed): Call Fkill_emacs instead of
shut_down_emacs.

* emacs.c (USAGE1): Mention --chdir.
(main): Handle --chdir.
(standard_args): Add --chdir.
(fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
#5552).

* cmdargs.texi (Initial Options): Mention --chdir.
2010-05-02 20:44:04 +02:00
Stefan Monnier
8f92b8ad07 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'.
2010-05-02 01:56:30 -04:00
Stefan Monnier
672eb71041 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.
2010-05-02 01:06:53 -04:00
Stefan Monnier
cb7f3653c8 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.
2010-05-01 23:38:19 -04:00
Stefan Monnier
a5a1e2ef82 * allout.el: Fix commenting convention. 2010-05-01 22:39:50 -04:00
Daniel E. Doherty
db37d2572b (Tutorial): Use ^{\prime} to indicate primes. 2010-05-01 18:47:59 -05:00
Dan Nicolaescu
cd03c74a9a 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.
2010-05-01 14:38:59 -07:00
Dan Nicolaescu
c3a398a1a5 Clean up IRIX code.
* m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
* s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2010-05-01 13:23:29 -07:00
Dan Nicolaescu
87e7285cdd 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.
2010-05-01 13:19:41 -07:00
Dan Nicolaescu
e4814a9f4c * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code, unused. 2010-05-01 13:14:10 -07:00
Eli Zaretskii
d21133bcb8 composite.el (find-composition): Fix a typo in the doc string. 2010-05-01 21:53:23 +03:00
Eli Zaretskii
197daef4ab 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.
2010-05-01 21:38:33 +03:00
Eli Zaretskii
d6dae14b94 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.
2010-05-01 21:28:00 +03:00
Eli Zaretskii
af7c7572ce 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.
2010-05-01 21:11:20 +03:00
Eli Zaretskii
b47e0dcf2d 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.
2010-05-01 18:53:35 +03:00
Eli Zaretskii
166e930d76 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.
2010-05-01 16:39:44 +03:00
Eli Zaretskii
017ea81924 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.
2010-05-01 13:49:09 +03:00
Michael Albinus
502269d6e7 * tramp.texi (Inline methods, Default Method): Mention
`tramp-inline-compress-start-size'.
2010-05-01 12:08:42 +02:00
Michael Albinus
6a29a838dd 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'.
2010-05-01 11:34:14 +02:00
Eli Zaretskii
59ca28de83 Refactor code that determines row->start and row->end.
xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
2010-05-01 11:50:01 +03:00
Glenn Morris
7acac9f4ce 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.
2010-04-30 20:04:51 -07:00
Karel Klíc
45841e65c9 * src/fileio.c (Ffile_selinux_context): Context functions may return null. 2010-04-30 19:58:41 -07:00
Chong Yidong
84716442f0 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).
2010-04-30 22:19:40 -04:00
Stefan Monnier
07125a915e * bindings.el (mode-line-abbrev-mode, mode-line-auto-fill-mode): Remove. 2010-04-30 21:39:58 -04:00
Stefan Monnier
f3a4700281 * emacs-lisp/lisp-mode.el (lisp-mode): Use define-derived-mode.
Set find-tag-default-function as a variable rather than a property.
2010-04-30 21:29:12 -04:00
Stefan Monnier
45d6be0a8f Fix commenting convention 2010-04-30 21:27:16 -04:00
Stefan Monnier
8c0bf8b395 * 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.
2010-04-30 21:08:43 -04:00
Chong Yidong
27601456d7 * minibuffer.el (tags-completion-at-point-function): Fix return value. 2010-04-30 19:13:22 -04:00
Dan Nicolaescu
afc619439b * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions. 2010-04-30 13:48:04 -07:00
Glenn Morris
5a1bb006a3 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.
2010-04-30 09:37:01 -07:00
Jan D
210af04332 xsettings.c: include limits.h and update file comment. 2010-04-30 15:50:34 +02:00
Eli Zaretskii
4f27f7d260 Fix typos in doc strings of composite.el. 2010-04-30 15:16:13 +03:00
Glenn Morris
718a19c869 Regenerate configure. 2010-04-29 18:54:08 -07:00
Glenn Morris
d5096f16c6 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.
2010-04-29 18:50:17 -07:00
Glenn Morris
7eb1ac33ed Replace some cpp with autoconf.
* configure.in (OTHER_OBJ): New output variable.
* src/Makefile.in (mallocobj): Remove.
(otherobj): Simplify using @OTHER_OBJ@.
2010-04-29 18:36:42 -07:00
Glenn Morris
517d086b62 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.
2010-04-29 18:27:33 -07:00
Glenn Morris
0a7df39180 * src/Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency. 2010-04-29 18:18:09 -07:00
Chong Yidong
27d3cd56ca * ido.el (ido-minibuffer-setup): Don't set cua-inhibit-cua-keys (Bug#5765). 2010-04-29 11:41:23 -04:00
Chong Yidong
09d0284d72 * ido.el (ido-init-completion-maps): Remove C-v binding (Bug#5765). 2010-04-29 11:38:08 -04:00
Chong Yidong
3a07ffce2f * 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.
2010-04-29 11:32:11 -04:00
Alan Mackenzie
3d14bb734b (progmodes/cc-mode.el) c-extend-region-for-CPP: Fix an off-by-one error
(in end of macro position).
2010-04-29 14:48:32 +00:00
Stefan Monnier
d2630aefd3 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
2010-04-29 10:29:09 -04:00
Juanma Barranquero
f9dddf5291 Add bug reference. 2010-04-29 16:23:12 +02:00
Stefan Monnier
7d353d11ce * net/browse-url.el (browse-url-firefox-program): Use iceweasel if
firefox is absent.  Don't autoload.
(browse-url-galeon-program): Don't autoload.
2010-04-29 10:04:33 -04:00
Stefan Monnier
d6d2385247 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.
2010-04-29 08:42:01 -04:00
Chong Yidong
a982c7ec49 Document complete-symbol change. 2010-04-28 18:27:54 -04:00