1. 09 May, 2010 2 commits
    • Stefan Monnier's avatar
      * minibuffer.el (completion-pcm-complete-word-inserts-delimiters): · 79ccd68f
      Stefan Monnier authored
      New custom variable.
      (completion-pcm--string->pattern): Use it.
      (completion-pcm--pattern->regex, completion-pcm--pattern->string):
      Make it handle any symbol as `any'.
      (completion-pcm--merge-completions): Extract common suffix for the new
      `prefix' symbol as well.
      (completion-substring--all-completions): Use the new `prefix' symbol.
      79ccd68f
    • Michael Albinus's avatar
      * net/tramp-compat.el (byte-compile-not-obsolete-vars): Define if · 0d5852cf
      Michael Albinus authored
      not bound.
      (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-compat-funcall): New defmacro.
      (tramp-compat-line-beginning-position)
      (tramp-compat-line-end-position)
      (tramp-compat-temporary-file-directory)
      (tramp-compat-make-temp-file, tramp-compat-file-attributes)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-number-sequence, tramp-compat-process-running-p)
      * net/tramp.el (top, with-progress-reporter)
      (tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
      (tramp-handle-dired-compress-file, tramp-handle-shell-command)
      (tramp-completion-mode-p, tramp-check-for-regexp)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
      (tramp-time-diff, tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag, tramp-unload-tramp)
      * net/tramp-cmds.el (tramp-cleanup-all-connections)
      (tramp-reporter-dump-variable, tramp-load-report-modules)
      (tramp-append-tramp-buffers)
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-selinux-context): Use it.
      
      * net/tramp-imap.el (top): Autoload `epg-make-context'.
      0d5852cf
  2. 08 May, 2010 3 commits
  3. 07 May, 2010 12 commits
  4. 06 May, 2010 3 commits
    • Michael Albinus's avatar
      * net/tramp.el (top, with-progress-reporter): Use · 9566840f
      Michael Albinus authored
      `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'.
      9566840f
    • Stefan Monnier's avatar
      Extract common suffix for * in partial-completion. · 1493963b
      Stefan Monnier authored
      * minibuffer.el (completion--sreverse, completion--common-suffix):
      New functions.
      (completion-pcm--merge-completions): Extract common suffix when safe.
      1493963b
    • Stefan Monnier's avatar
      Define auto-save-mode with define-minor-mode. · 0c495c21
      Stefan Monnier authored
      * 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.
      0c495c21
  5. 05 May, 2010 5 commits
    • Juri Linkov's avatar
      Add `slow' and `history' tags to the desktop data. · 221a0647
      Juri Linkov authored
      * 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'.
      221a0647
    • 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
  6. 04 May, 2010 1 commit
  7. 03 May, 2010 4 commits
    • 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
    • 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
    • Chong Yidong's avatar
      Variable purecopying fix (Bug#6083). · f034e176
      Chong Yidong authored
      * international/mule.el (auto-coding-alist):  Only purecopy
      car or each item, not the whole list (Bug#6083).
      f034e176
  8. 02 May, 2010 4 commits
    • Chong Yidong's avatar
      Make paragraph vars local for js-mode (Bug#6071). · f5d6ff44
      Chong Yidong authored
      * progmodes/js.el (js-mode): Make paragraph variables local before
      calling c-setup-paragraph-variables (Bug#6071).
      f5d6ff44
    • 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
  9. 01 May, 2010 6 commits