1. 05 May, 2010 4 commits
    • Michael Albinus's avatar
      Add FORCE argument to `delete-file'. · 66bdc868
      Michael Albinus authored
      * 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'.
      66bdc868
    • Stefan Monnier's avatar
      Minor cleanups. · 365f8d85
      Stefan Monnier authored
      * 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.
      365f8d85
    • Stefan Monnier's avatar
      Use define-minor-mode in more cases. · 80ac5d4d
      Stefan Monnier authored
      * 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.
      80ac5d4d
    • Stefan Monnier's avatar
      Use define-minor-mode for less obvious cases. · f44379e7
      Stefan Monnier authored
      * 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.
      f44379e7
  2. 04 May, 2010 15 commits
    • Juanma Barranquero's avatar
      * src/ChangeLog: Formatting fixes. · 80f00217
      Juanma Barranquero authored
      80f00217
    • Stefan Monnier's avatar
      Misc tweaks. · 178f2507
      Stefan Monnier authored
      * eval.c (Fdefvaralias): Remove unintended nested if.
      (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
      178f2507
    • Dan Nicolaescu's avatar
      ae4aa824
    • Jan Djärv's avatar
    • Michael Albinus's avatar
      * net/tramp.el (tramp-methods): Remove "-q" from `tramp-login-args' · c04b03f8
      Michael Albinus authored
      in order to see error messages for failed logins.
      c04b03f8
    • Dan Nicolaescu's avatar
      Remove BSD_PGRPS. · 58eb6cf0
      Dan Nicolaescu authored
      * 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.
      58eb6cf0
    • Dan Nicolaescu's avatar
      Remove POSIX_SIGNALS. · ef03a4e6
      Dan Nicolaescu authored
      * 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.
      ef03a4e6
    • Glenn Morris's avatar
      Regenerate configure, src/config.in. · ede4834a
      Glenn Morris authored
      ede4834a
    • Glenn Morris's avatar
      Yet another missing piece of C_SWITCH commit. · fa5e317a
      Glenn Morris authored
      * 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@.
      fa5e317a
    • Glenn Morris's avatar
      Missing lwlib part of earlier C_SWITCH commit. · e9bcdbf7
      Glenn Morris authored
      * lwlib/Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
      Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of
      @c_switch_system@, @c_switch_machine@.
      e9bcdbf7
    • Glenn Morris's avatar
      397574f6
    • Glenn Morris's avatar
      Move LD_SWITCH_X_SITE_AUX from cpp to autoconf. · 27a2cdfc
      Glenn Morris authored
      * 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.
      27a2cdfc
    • Glenn Morris's avatar
      Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf. · eb21eab5
      Glenn Morris authored
      * 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.
      eb21eab5
    • Glenn Morris's avatar
      Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf. · 49628785
      Glenn Morris authored
      * 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@.
      49628785
    • Dan Nicolaescu's avatar
      * s/hpux10-20.h (LIB_STANDARD): New definition. · 7dff330b
      Dan Nicolaescu authored
      * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
      on it, not used anymore.
      7dff330b
  3. 03 May, 2010 11 commits
    • Juanma Barranquero's avatar
      de953638
    • Juanma Barranquero's avatar
    • Chong Yidong's avatar
      Add optional arg to delete-file to force deletion (Bug#6070). · 53967e09
      Chong Yidong authored
      * 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).
      53967e09
    • Juanma Barranquero's avatar
      Fix typo. · 1fada563
      Juanma Barranquero authored
      1fada563
    • Glenn Morris's avatar
      Fix some ChangeLog attributions. · 2b4aa886
      Glenn Morris authored
      2b4aa886
    • Stefan Monnier's avatar
      Use define-minor-mode where applicable. · 56eb0904
      Stefan Monnier authored
      * 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.
      56eb0904
    • Glenn Morris's avatar
      * src/m/amdx86-64.h: Fix typo in previous. · 063371f2
      Glenn Morris authored
      063371f2
    • Glenn Morris's avatar
      Regenerate configure. · a5edbe4a
      Glenn Morris authored
      a5edbe4a
    • Glenn Morris's avatar
      Replace some X-related cpp with autoconf. · 3dee6fdb
      Glenn Morris authored
      * 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.
      3dee6fdb
    • Glenn Morris's avatar
      521ee9b3
    • Stefan Monnier's avatar
      Use define-minor-mode in Gnus where applicable. · bbf52f1e
      Stefan Monnier authored
      * 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.
      bbf52f1e
  4. 02 May, 2010 6 commits
    • Dan Nicolaescu's avatar
      * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove. · a101e0fb
      Dan Nicolaescu authored
      The FreeBSD is not needed, the default works, Solaris version is
      not needed, and the remaining case is not supported by configure.
      a101e0fb
    • Jan Djärv's avatar
      Run kill-emacs when exiting for display closed or SIGTERM/HUP. · f63d0028
      Jan Djärv authored
      * 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.
      f63d0028
    • Stefan Monnier's avatar
      New hook filter-buffer-substring-functions. · 8f92b8ad
      Stefan Monnier authored
      * 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'.
      8f92b8ad
    • Stefan Monnier's avatar
      Use a mode-line spec rather than a static string in Semantic. · 672eb710
      Stefan Monnier authored
      * 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.
      672eb710
    • Stefan Monnier's avatar
      Use define-minor-mode in CEDET where applicable. · cb7f3653
      Stefan Monnier authored
      * 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.
      cb7f3653
    • Stefan Monnier's avatar
      * allout.el: Fix commenting convention. · a5a1e2ef
      Stefan Monnier authored
      a5a1e2ef
  5. 01 May, 2010 4 commits
    • Daniel E. Doherty's avatar
      db37d257
    • Dan Nicolaescu's avatar
      Remove LD_SWITCH_MACHINE. · cd03c74a
      Dan Nicolaescu authored
      * 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.
      cd03c74a
    • Dan Nicolaescu's avatar
      Clean up IRIX code. · c3a398a1
      Dan Nicolaescu authored
      * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
      * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
      c3a398a1
    • Dan Nicolaescu's avatar
      Clean up AIX code. · 87e7285c
      Dan Nicolaescu authored
      * 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.
      87e7285c