1. 04 Aug, 2013 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc. · 1d44e9dc
      Stefan Monnier authored
      (advice-mapc): New function, using it.
      (advice-function-member-p): New function.
      (advice--normalize): Store the cdr in advice--saved-rewrite since
      that's the part that will be changed.
      (advice--symbol-function): New function.
      (advice-remove): Handle removal before the function is defined.
      Adjust to new advice--saved-rewrite.
      (advice-member-p): Use advice-function-member-p and
      advice--symbol-function.
      1d44e9dc
    • Juanma Barranquero's avatar
      lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame. · a04d36a0
      Juanma Barranquero authored
      (frameset--set-id, frameset--process-minibuffer-frames)
      (frameset-restore): Rename parameter `frameset-id' to `frame-id'.
      a04d36a0
    • Xue Fuqiao's avatar
      Cleanup for vc-ignore. · ab419665
      Xue Fuqiao authored
      * vc/vc.el (vc-ignore): Rewrite.
      (vc-default-ignore-completion-table):
      (vc--read-lines):
      (vc--add-line, vc--remove-regexp): New functions.
      
      * vc/vc-svn.el (vc-svn-ignore): Doc fix.
      (vc-svn-ignore-completion-table): New function.
      
      * vc/vc-hg.el (vc-hg-ignore): Rewrite.
      (vc-hg-ignore-completion-table):
      (vc-hg-find-ignore-file): New functions.
      
      * vc/vc-git.el (vc-git-ignore): Rewrite.
      (vc-git-ignore-completion-table):
      (vc-git-find-ignore-file): New functions.
      
      * vc/vc-dir.el (vc-dir-menu-map): Add menu for vc-dir-ignore.
      
      * vc/vc-bzr.el (vc-bzr-ignore): Rewrite.
      (vc-bzr-ignore-completion-table):
      (vc-bzr-find-ignore-file): New functions.
      ab419665
    • Juanma Barranquero's avatar
      lisp/frameset.el: Fix typos and autoload cookies. · 51d30f2c
      Juanma Barranquero authored
      (frameset-p, frameset-save): Fix autoload cookies.
      (frameset-filter-minibuffer): Doc fix.
      (frameset-restore): Fix autoload cookie.  Fix typo in docstring.
      51d30f2c
    • Juanma Barranquero's avatar
      lisp/desktop.el (desktop-clear): Be more careful about deleting frames. · 5414a283
      Juanma Barranquero authored
      Do it only when called interactively and desktop-restore-frames is non-nil.
      Doc fix.
      (desktop-read): Set desktop-saved-frameset to nil.
      5414a283
  2. 03 Aug, 2013 2 commits
  3. 02 Aug, 2013 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode) · 70122acf
      Stefan Monnier authored
      (easy-mmode-define-navigation): Avoid ((lambda (..) ..) ...).
      70122acf
    • Stefan Monnier's avatar
      Make defvar affect the default binding outside of any let. · a104f656
      Stefan Monnier authored
      * src/eval.c (default_toplevel_binding): New function.
      (Fdefvar): Use it.
      (unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
      (Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
      (syms_of_eval): Export them.
      * src/data.c (Fdefault_value): Micro cleanup.
      * src/term.c (init_tty): Use "false".
      * lisp/custom.el (custom-initialize-default, custom-initialize-set)
      (custom-initialize-reset, custom-initialize-changed): Affect the
      toplevel-default-value (bug#6275, bug#14586).
      * lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
      for bug#6275.
      * test/automated/core-elisp-tests.el: New file.
      a104f656
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      lisp/desktop.el: Move code related to saving frames to frameset.el. · 9421876d
      Juanma Barranquero authored
      Require frameset.
      (desktop-restore-frames): Doc fix.
      (desktop-restore-reuses-frames): Rename from
      desktop-restoring-reuses-frames.
      (desktop-saved-frameset): Rename from desktop-saved-frame-states.
      (desktop-clear): Clear frames too.
      (desktop-filter-parameters-alist): Set from frameset-filter-alist.
      (desktop--filter-tty*, desktop-save, desktop-read):
      Use frameset functions.
      (desktop-before-saving-frames-functions, desktop--filter-*-color)
      (desktop--filter-minibuffer, desktop--filter-restore-desktop-parm)
      (desktop--filter-save-desktop-parm, desktop--filter-iconified-position)
      (desktop-restore-in-original-display-p, desktop--filter-frame-parms)
      (desktop--process-minibuffer-frames, desktop-save-frames)
      (desktop--reuse-list, desktop--compute-pos, desktop--move-onscreen)
      (desktop--find-frame, desktop--select-frame, desktop--make-frame)
      (desktop--sort-states, desktop-restoring-frames-p)
      (desktop-restore-frames): Remove.  Most code moved to frameset.el.
      (desktop-restoring-frameset-p, desktop-restore-frameset)
      (desktop--check-dont-save, desktop-save-frameset): New functions.
      (desktop--app-id): New constant.
      (desktop-first-buffer, desktop-buffer-ok-count)
      (desktop-buffer-fail-count): Move before first use.
      lisp/frameset.el: New file.
      9421876d
  4. 01 Aug, 2013 6 commits
    • Stefan Monnier's avatar
      * lisp/files.el: Use lexical-binding. · 76dc5996
      Stefan Monnier authored
      (dir-locals-read-from-file): Remove unused `err' variable.
      (hack-dir-local-variables--warned-coding): New var.
      (hack-dir-local-variables): Use it to avoid repeated warnings.
      (make-backup-file-name--default-function): New function.
      (make-backup-file-name-function): Use it as default.
      (buffer-stale--default-function): New function.
      (buffer-stale-function): Use it as default.
      (revert-buffer-insert-file-contents--default-function): New function.
      (revert-buffer-insert-file-contents-function): Use it as default.
      (insert-directory): Avoid add-to-list.
      * lisp/autorevert.el (auto-revert-handler): Simplify.
      Use buffer-stale--default-function.
      76dc5996
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 44e18199
      Juanma Barranquero authored
      44e18199
    • Tassilo Horn's avatar
    • Tassilo Horn's avatar
      Refactor out setting `whitespace-indent-tabs-mode' and · 06d36e2b
      Tassilo Horn authored
      `whitespace-tab-width' buffer-locally to own function, so that
      `whitespace-cleanup' and friends work appropriately without
      needing to enable `whitespace-mode'.
      
      * whitespace.el (whitespace-ensure-local-variables): New function.
      (whitespace-cleanup-region): Call it.
      (whitespace-turn-on): Call it.
      06d36e2b
    • Michael Albinus's avatar
      Complete file name handlers. · a43dc424
      Michael Albinus authored
      * net/tramp.el (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-file-notify-rm-watch): New functions.
      (tramp-call-process): Do not bind `default-directory'.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
      alphabetically.
      [access-file, add-name-to-file, dired-call-process]:
      [dired-compress-file, file-acl, file-notify-rm-watch]:
      [file-ownership-preserved-p, file-selinux-context]:
      [make-directory-internal, make-symbolic-link, set-file-acl]:
      [set-file-selinux-context, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [file-notify-add-watch, file-notify-rm-watch]:
      [set-file-times, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (with-tramp-gvfs-error-message)
      (tramp-gvfs-handle-set-visited-file-modtime)
      (tramp-gvfs-fuse-file-name): Remove.
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
      (tramp-gvfs-handle-write-region): Fix error in moving tmpfile.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
      alphabetically.
      [file-notify-rm-watch ]: Use default Tramp handler.
      [executable-find]: Remove private handler.
      (tramp-do-copy-or-rename-file-out-of-band): Do not bind
      `default-directory'.
      (tramp-sh-handle-executable-find)
      (tramp-sh-handle-file-notify-rm-watch): Remove functions.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
      Do not use `format' in `tramp-message'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist)
      [file-notify-rm-watch, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-smb-call-winexe): Do not bind `default-directory'.
      a43dc424
    • Xue Fuqiao's avatar
  5. 31 Jul, 2013 4 commits
  6. 30 Jul, 2013 11 commits
  7. 29 Jul, 2013 2 commits
  8. 28 Jul, 2013 4 commits
  9. 27 Jul, 2013 1 commit