]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years ago* emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
Dan Nicolaescu [Thu, 6 May 2010 19:40:02 +0000 (12:40 -0700)]
* emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.

14 years ago* Makefile.in (STARTFILES): Conditionally define to make the usage clear.
Dan Nicolaescu [Thu, 6 May 2010 16:18:33 +0000 (09:18 -0700)]
* Makefile.in (STARTFILES): Conditionally define to make the usage clear.
* s/gnu.h (START_FILES): Remove empty definition.

14 years ago* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
Jan Djärv [Thu, 6 May 2010 09:34:56 +0000 (11:34 +0200)]
* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.

14 years ago* net/tramp.el (top, with-progress-reporter): Use
Michael Albinus [Thu, 6 May 2010 08:40:06 +0000 (10:40 +0200)]
* net/tramp.el (top, with-progress-reporter): Use
`symbol-function' inside `funcall'.

* net/tramp-compat.el (tramp-compat-file-attributes)
(tramp-compat-delete-file, tramp-compat-delete-directory): Handle
only `wrong-number-of-arguments' error.

* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Fix typo.
(tramp-gvfs-handle-file-selinux-context): Use `symbol-function'
inside `funcall'.

14 years agoRegenerate configure.
Glenn Morris [Thu, 6 May 2010 08:07:12 +0000 (01:07 -0700)]
Regenerate configure.

14 years agoMinimize blessmail-related cpp usage, with an eye to future removal.
Glenn Morris [Thu, 6 May 2010 08:03:27 +0000 (01:03 -0700)]
Minimize blessmail-related cpp usage, with an eye to future removal.

* lib-src/Makefile.in: (BLESSMAIL_TARGET): New variable.
(MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
(blessmail): Always define this rule.
(need-blessmail): New rule, split out from maybe-blessmail.
(maybe-blessmail): Use BLESSMAIL_TARGET.

14 years agoLet configure handle ranlib.
Glenn Morris [Thu, 6 May 2010 07:29:09 +0000 (00:29 -0700)]
Let configure handle ranlib.

* oldXMenu/Makefile.in (RANLIB): Let configure set it.
(libXMenu11.a): configure sets RANLIB = : on systems without it.

14 years agoRemove some unused Makefile.in variables.
Glenn Morris [Thu, 6 May 2010 07:24:18 +0000 (00:24 -0700)]
Remove some unused Makefile.in variables.

* configure.in (AC_PROG_LN_S): Remove test, nothing uses @LN_S@.

* Makefile.in (CPP, C_SWITCH_SYSTEM, ALLOCA, LN_S, C_SWITCH_X_SITE)
(LD_SWITCH_X_SITE): Remove unused variables.

* lwlib/Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.

* oldXMenu/Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
(STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.

* src/Makefile.in (CPP, LN_S): Remove unused variables.

* msdos/sed1v2.inp, msdos/sed5x.inp: Remove LN_S, unused.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 06:05:48 +0000 (06:05 +0000)]
Synch with Gnus trunk.
(mml-secure-message-sign): Fix cut and paste error.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 05:54:57 +0000 (05:54 +0000)]
Synch with Gnus trunk.
(mml-secure-message-sign): Fix cut and paste error.

14 years agosrc/Makefile.in: Convert comment in cpp section to the right format.
Glenn Morris [Thu, 6 May 2010 05:50:26 +0000 (22:50 -0700)]
src/Makefile.in: Convert comment in cpp section to the right format.

14 years agoComment changes for some src/m/*.h files.
Glenn Morris [Thu, 6 May 2010 05:27:17 +0000 (22:27 -0700)]
Comment changes for some src/m/*.h files.

Remove some out-of-date comments, reformat others.

14 years agoUpdate.
Katsumi Yamaoka [Thu, 6 May 2010 04:19:22 +0000 (04:19 +0000)]
Update.

14 years agoRequire easy-mmode for XEmacs when compiling.
Katsumi Yamaoka [Thu, 6 May 2010 04:15:34 +0000 (04:15 +0000)]
Require easy-mmode for XEmacs when compiling.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 03:27:20 +0000 (03:27 +0000)]
Synch with Gnus trunk.
(mml-generate-mime-1,mml-compute-boundary-1): Update 'mml
handles on recursive mml-to-mime translation and check them for
boundary delimiter collisions.  Reported by: Greg Troxel.

14 years agoExtract common suffix for * in partial-completion.
Stefan Monnier [Thu, 6 May 2010 02:59:07 +0000 (22:59 -0400)]
Extract common suffix for * in partial-completion.
* minibuffer.el (completion--sreverse, completion--common-suffix):
New functions.
(completion-pcm--merge-completions): Extract common suffix when safe.

14 years agoDefine auto-save-mode with define-minor-mode.
Stefan Monnier [Thu, 6 May 2010 02:53:56 +0000 (22:53 -0400)]
Define auto-save-mode with define-minor-mode.
* emacs-lisp/easy-mmode.el (define-minor-mode):
Make :variable more flexible.
* files.el (auto-save-mode): Use it to define using define-minor-mode.

14 years agolib-src/ChangeLog: Remove duplicate entry.
Juanma Barranquero [Wed, 5 May 2010 22:14:15 +0000 (00:14 +0200)]
lib-src/ChangeLog: Remove duplicate entry.

14 years agoAdd `slow' and `history' tags to the desktop data.
Juri Linkov [Wed, 5 May 2010 21:56:15 +0000 (00:56 +0300)]
Add `slow' and `history' tags to the desktop data.

* info.el (Info-virtual-nodes) [*Index*]: Add `slow' tag.
(Info-virtual-files) [*Apropos*]: Add `slow' tag.
(Info-finder-find-node): Require `finder.el' to be able
to restore node from the desktop.
(Info-desktop-buffer-misc-data): Save all nodes.  Save additional
data `Info-history' and `slow' tag in the assoc list.
(Info-restore-desktop-buffer): Don't restore nodes with the
`slow' tag.  Restore `Info-history'.

14 years ago* syntax.c (Fchar_syntax): Check the arg is a character.
Stefan Monnier [Wed, 5 May 2010 17:51:40 +0000 (13:51 -0400)]
* syntax.c (Fchar_syntax): Check the arg is a character.

Fixes: debbugs:6080
14 years ago* src/m/sparc.h: Fix typo in earlier change.
Lawrence Mitchell [Wed, 5 May 2010 15:51:32 +0000 (08:51 -0700)]
* src/m/sparc.h: Fix typo in earlier change.

14 years agoAdd FORCE argument to `delete-file'.
Michael Albinus [Wed, 5 May 2010 10:20:23 +0000 (12:20 +0200)]
Add FORCE argument to `delete-file'.

* net/ange-ftp.el (ange-ftp-del-tmp-name): Make it a defun,
forcing to delete the temporary file.
(ange-ftp-delete-file): Add FORCE arg.
(ange-ftp-rename-remote-to-remote)
(ange-ftp-rename-local-to-remote, ange-ftp-rename-remote-to-local)
(ange-ftp-load, ange-ftp-compress, ange-ftp-uncompress): Force
file deletion.

* net/tramp-compat.el (tramp-compat-delete-file): New defun.

* net/tramp.el (tramp-handle-delete-file): Add FORCE arg.
(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-process-file, tramp-handle-call-process-region)
(tramp-handle-shell-command, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-delete-temp-file-function): Use `tramp-compat-delete-file'.

* net/tramp-fish.el (tramp-fish-handle-delete-file): Add FORCE arg.
(tramp-fish-handle-make-symbolic-link)
(tramp-fish-handle-process-file): Use `tramp-compat-delete-file'.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Use
`tramp-compat-delete-file'.

* net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Add FORCE arg.
(tramp-gvfs-handle-write-region): Use `tramp-compat-delete-file'.

* net/tramp-imap.el (tramp-imap-handle-delete-file): Add FORCE arg.
(tramp-imap-do-copy-or-rename-file): Use `tramp-compat-delete-file'.

* net/tramp-smb.el (tramp-smb-handle-delete-file): Add FORCE arg.
(tramp-smb-handle-copy-file, tramp-smb-handle-file-local-copy)
(tramp-smb-handle-rename-file, tramp-smb-handle-write-region): Use
`tramp-compat-delete-file'.

14 years agoMinor cleanups.
Stefan Monnier [Wed, 5 May 2010 04:27:16 +0000 (00:27 -0400)]
Minor cleanups.
* org-table.el (orgtbl-setup):
* org-agenda.el (org-agenda-entry-text-mode): Simplify.
* subr.el (add-minor-mode): Use push.
* mail/supercite.el (sc-electric-mode): Use more descriptive arg name.
* emulation/edt.el (edt-select-mode): Simplify.

14 years agoUse define-minor-mode in more cases.
Stefan Monnier [Wed, 5 May 2010 03:45:21 +0000 (23:45 -0400)]
Use define-minor-mode in more cases.
* term/tvi970.el (tvi970-set-keypad-mode):
* simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
(normal-erase-is-backspace-mode):
* scroll-bar.el (scroll-bar-mode): Use it and define-minor-mode.
(set-scroll-bar-mode-1): (Re)move to its sole caller.
(get-scroll-bar-mode): New function.
* emacs-lisp/cl-macs.el (eq): Handle a non-variable first arg.

14 years agoUse define-minor-mode for less obvious cases.
Stefan Monnier [Wed, 5 May 2010 02:08:25 +0000 (22:08 -0400)]
Use define-minor-mode for less obvious cases.
* emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword.
* emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method.
* international/iso-ascii.el (iso-ascii-mode):
* frame.el (auto-raise-mode, auto-lower-mode):
* composite.el (global-auto-composition-mode): Use define-minor-mode.

14 years ago* src/ChangeLog: Formatting fixes.
Juanma Barranquero [Tue, 4 May 2010 18:21:32 +0000 (20:21 +0200)]
* src/ChangeLog: Formatting fixes.

14 years agoMisc tweaks.
Stefan Monnier [Tue, 4 May 2010 17:44:54 +0000 (13:44 -0400)]
Misc tweaks.
* eval.c (Fdefvaralias): Remove unintended nested if.
(internal_condition_case_2, internal_condition_case_n): Use ANSI type.

14 years agoDelete names that have been removed from the tree.
Dan Nicolaescu [Tue, 4 May 2010 16:53:59 +0000 (09:53 -0700)]
Delete names that have been removed from the tree.

14 years agoxsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
Jan Djärv [Tue, 4 May 2010 16:03:23 +0000 (18:03 +0200)]
xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).

14 years ago* net/tramp.el (tramp-methods): Remove "-q" from `tramp-login-args'
Michael Albinus [Tue, 4 May 2010 08:44:47 +0000 (10:44 +0200)]
* net/tramp.el (tramp-methods): Remove "-q" from `tramp-login-args'
in order to see error messages for failed logins.

14 years agoRemove BSD_PGRPS.
Dan Nicolaescu [Tue, 4 May 2010 07:40:53 +0000 (00:40 -0700)]
Remove BSD_PGRPS.
* s/bsd-common.h (BSD_PGRPS): Remove undef.
* s/gnu-linux.h (BSD_PGRPS): Remove.
* term.c (dissociate_if_controlling_tty):
* sysdep.c (narrow_foreground_group, widen_foreground_group)
(init_sys_modes, reset_sys_modes):
* emacs.c (main):
* callproc.c (Fcall_process, child_setup): Remove code depending
on BSD_PGRPS.

14 years agoRemove POSIX_SIGNALS.
Dan Nicolaescu [Tue, 4 May 2010 04:00:10 +0000 (21:00 -0700)]
Remove POSIX_SIGNALS.
* s/usg5-4.h (POSIX_SIGNALS):
* s/netbsd.h (POSIX_SIGNALS):
* s/msdos.h (POSIX_SIGNALS):
* s/ms-w32.h (POSIX_SIGNALS):
* s/hpux11.h (POSIX_SIGNALS):
* s/gnu.h (POSIX_SIGNALS):
* s/gnu-linux.h (POSIX_SIGNALS):
* s/freebsd.h (POSIX_SIGNALS):
* s/darwin.h (POSIX_SIGNALS):
* s/cygwin.h (POSIX_SIGNALS):
* s/aix4-2.h (POSIX_SIGNALS): Remove definition.
* s/unixware.h:
* s/sol2-6.h: Remove comments on POSIX_SIGNALS.
* process.c (create_process):
* syssignal.h:
* sysdep.c (wait_for_termination, init_signals):
* process.c (create_process):
* msdos.c: POSIX_SIGNALS is always defined on all platforms,
remove all code that assumes the contrary.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Tue, 4 May 2010 03:33:04 +0000 (20:33 -0700)]
Regenerate configure, src/config.in.

14 years agoYet another missing piece of C_SWITCH commit.
Glenn Morris [Tue, 4 May 2010 03:26:38 +0000 (20:26 -0700)]
Yet another missing piece of C_SWITCH commit.

* Makefile.in (C_SWITCH_SYSTEM): Use @C_SWITCH_SYSTEM@ rather than
@c_switch_system@.

* oldXMenu/Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Use
@C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
@c_switch_system@, @c_switch_machine@.

14 years agoMissing lwlib part of earlier C_SWITCH commit.
Glenn Morris [Tue, 4 May 2010 03:20:50 +0000 (20:20 -0700)]
Missing lwlib part of earlier C_SWITCH commit.

* lwlib/Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of
@c_switch_system@, @c_switch_machine@.

14 years ago* admin/CPP-DEFINES: Remove some no-longer-used defines.
Glenn Morris [Tue, 4 May 2010 03:17:05 +0000 (20:17 -0700)]
* admin/CPP-DEFINES: Remove some no-longer-used defines.

14 years agoMove LD_SWITCH_X_SITE_AUX from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 03:13:35 +0000 (20:13 -0700)]
Move LD_SWITCH_X_SITE_AUX from cpp to autoconf.

* configure.in (LD_SWITCH_X_SITE_AUX): Use AC_SUBST only, not AC_DEFINE as well.
(LD_SWITCH_X_SITE_AUX_RPATH): New output variable.

* nt/config.nt (LD_SWITCH_X_SITE_AUX): Remove.

* src/s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
variable.
* src/s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
(LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
* src/s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
(LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
LD_SWITCH_SYSTEM_tmp.
* src/Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
New variables, set by configure.

14 years agoMove LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 03:06:27 +0000 (20:06 -0700)]
Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf.

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

* src/s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
* src/s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
(LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
* src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
(TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.

14 years agoMove C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 02:56:19 +0000 (19:56 -0700)]
Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf.

* configure.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM): New output
variables, replacing c_switch_machine, c_switch_system.

* src/s/aix4-2.h (C_SWITCH_SYSTEM):
* src/m/alpha.h (C_SWITCH_MACHINE):
Move to configure.in.
* src/Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
New variables, set by configure.
(ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
$c_switch_machine and $c_switch_system.

* lib-src/Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@
rather than @c_switch_system@, @c_switch_machine@.

14 years ago* s/hpux10-20.h (LIB_STANDARD): New definition.
Dan Nicolaescu [Tue, 4 May 2010 02:51:49 +0000 (19:51 -0700)]
* s/hpux10-20.h (LIB_STANDARD): New definition.
* Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
on it, not used anymore.

14 years ago* ibuffer.el: Update autoload checksum.
Juanma Barranquero [Mon, 3 May 2010 22:42:19 +0000 (00:42 +0200)]
* ibuffer.el: Update autoload checksum.

14 years ago* mm-util.el (mm-decompress-buffer): Use `delete-file'.
Juanma Barranquero [Mon, 3 May 2010 22:38:50 +0000 (00:38 +0200)]
* mm-util.el (mm-decompress-buffer): Use `delete-file'.

14 years agoAdd optional arg to delete-file to force deletion (Bug#6070).
Chong Yidong [Mon, 3 May 2010 15:01:21 +0000 (11:01 -0400)]
Add optional arg to delete-file to force deletion (Bug#6070).

* eval.c (internal_condition_case_n): Rename from
internal_condition_case_2.
(internal_condition_case_2): New function.

* xdisp.c (safe_call): Use internal_condition_case_n.

* fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
(internal_delete_file, Frename_file): Callers changed.

* buffer.c (Fkill_buffer):
* callproc.c (delete_temp_file): Callers changed (Bug#6070).

* lisp.h: Update prototypes.

* diff.el (diff-sentinel):

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

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

* server.el (server-sentinel): Use delete-file's new FORCE arg
(Bug#6070).

14 years agoFix typo.
Juanma Barranquero [Mon, 3 May 2010 12:46:56 +0000 (14:46 +0200)]
Fix typo.

14 years agoFix some ChangeLog attributions.
Glenn Morris [Mon, 3 May 2010 06:23:01 +0000 (23:23 -0700)]
Fix some ChangeLog attributions.

14 years agoUse define-minor-mode where applicable.
Stefan Monnier [Mon, 3 May 2010 02:29:46 +0000 (22:29 -0400)]
Use define-minor-mode where applicable.
* mh-show.el (mh-showing-mode): Move function to mh-e.el.
* mh-e.el (mh-showing-mode):
* url-dired.el (url-dired-minor-mode):
* org-table.el (orgtbl-mode):
* view.el (view-mode):
* type-break.el (type-break-query-mode)
(type-break-mode-line-message-mode):
* textmodes/reftex.el (reftex-mode):
* term/vt100.el (vt100-wide-mode):
* tar-mode.el (tar-subfile-mode):
* savehist.el (savehist-mode):
* ibuf-ext.el (ibuffer-auto-mode):
* composite.el (auto-composition-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
Use define-minor-mode.
(vhdl-mode): Use static mode-line format.
(vhdl-mode-line-update): Delete.
(vhdl-create-mode-menu, vhdl-activate-customizations)
(vhdl-hs-minor-mode): Don't bother calling it.

14 years ago* src/m/amdx86-64.h: Fix typo in previous.
Glenn Morris [Mon, 3 May 2010 02:23:42 +0000 (19:23 -0700)]
* src/m/amdx86-64.h: Fix typo in previous.

14 years agoRegenerate configure.
Glenn Morris [Mon, 3 May 2010 02:15:26 +0000 (19:15 -0700)]
Regenerate configure.

14 years agoReplace some X-related cpp with autoconf.
Glenn Morris [Mon, 3 May 2010 02:10:43 +0000 (19:10 -0700)]
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.

14 years ago* make-dist: There are no more src/m/*.inp files.
Glenn Morris [Mon, 3 May 2010 01:53:58 +0000 (18:53 -0700)]
* make-dist: There are no more src/m/*.inp files.

14 years agoUse define-minor-mode in Gnus where applicable.
Stefan Monnier [Mon, 3 May 2010 00:41:45 +0000 (20:41 -0400)]
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.

14 years ago* m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
Dan Nicolaescu [Sun, 2 May 2010 19:32:18 +0000 (12:32 -0700)]
* 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.

14 years agoRun kill-emacs when exiting for display closed or SIGTERM/HUP.
Jan Djärv [Sun, 2 May 2010 18:44:04 +0000 (20:44 +0200)]
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.

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.