]> git.eshelyaron.com Git - emacs.git/commitdiff
* files.el (auto-save-mode): Move to simple.el to fix bootstrap.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 May 2010 12:49:14 +0000 (08:49 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 May 2010 12:49:14 +0000 (08:49 -0400)
* simple.el (auto-save-mode): Move from files.el.
* minibuffer.el (completion--common-suffix): Fix copy&paste error.

lisp/ChangeLog
lisp/files.el
lisp/minibuffer.el
lisp/simple.el

index df7d21c6124f1f8516d94bde6ef6915d1162cca3..24e1b98f736355b99f904790cac5778e014282da 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * files.el (auto-save-mode): Move to simple.el to fix bootstrap.
+       * simple.el (auto-save-mode): Move from files.el.
+       * minibuffer.el (completion--common-suffix): Fix copy&paste error.
+
 2010-05-07  Christian von Roques <roques@mti.ag> (tiny change)
 
        * lisp/epg.el (epg-key-capablity-alist): Add "D" flag (Bug#5592).
 
 2010-05-06  Michael Albinus  <michael.albinus@gmx.de>
 
-       * net/tramp.el (top, with-progress-reporter): Use
-       `symbol-function' inside `funcall'.
+       * 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.
+       (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'
index 9090f8afc889af294943dc1a336b2906aba88f70..406ee7e00cbd041a1cf2a0c662e8c99d110ca187 100644 (file)
@@ -5150,26 +5150,6 @@ The optional second argument indicates whether to kill internal buffers too."
         (kill-buffer-ask buffer)))))
 
 \f
-(define-minor-mode auto-save-mode
-  "Toggle auto-saving of contents of current buffer.
-With prefix argument ARG, turn auto-saving on if positive, else off."
-  :variable ((and buffer-auto-save-file-name
-                  ;; If auto-save is off because buffer has shrunk,
-                  ;; then toggling should turn it on.
-                  (>= buffer-saved-size 0))
-             . (lambda (val)
-                 (setq buffer-auto-save-file-name
-                       (cond
-                        ((null val) nil)
-                        ((and buffer-file-name auto-save-visited-file-name
-                              (not buffer-read-only))
-                         buffer-file-name)
-                        (t (make-auto-save-file-name))))))
-  ;; If -1 was stored here, to temporarily turn off saving,
-  ;; turn it back on.
-  (and (< buffer-saved-size 0)
-       (setq buffer-saved-size 0)))
-
 (defun rename-auto-save-file ()
   "Adjust current buffer's auto save file name for current conditions.
 Also rename any existing auto save file, if it was made in this session."
index 31bdb6993fa6d37d57e3e45721d73a31799f5c29..4d8a6d0ebc0e8e1b6301c6864d776a771d9f1bca 100644 (file)
@@ -1992,7 +1992,7 @@ filter out additional entries (because TABLE migth not obey PRED)."
   (completion--sreverse
    (try-completion
     ""
-    (mapcar 'completion--sreverse comps))))
+    (mapcar 'completion--sreverse strs))))
 
 (defun completion-pcm--merge-completions (strs pattern)
   "Extract the commonality in STRS, with the help of PATTERN."
index 8e45ca4694d67deb90f085d6690e8ce034924f88..5948536262c5a43b876cf42ae603d331a01abaf8 100644 (file)
@@ -5306,6 +5306,26 @@ With ARG, turn Size Indication mode on if ARG is positive,
 otherwise turn it off.  When Size Indication mode is enabled, the
 size of the accessible part of the buffer appears in the mode line."
   :global t :group 'mode-line)
+
+(define-minor-mode auto-save-mode
+  "Toggle auto-saving of contents of current buffer.
+With prefix argument ARG, turn auto-saving on if positive, else off."
+  :variable ((and buffer-auto-save-file-name
+                  ;; If auto-save is off because buffer has shrunk,
+                  ;; then toggling should turn it on.
+                  (>= buffer-saved-size 0))
+             . (lambda (val)
+                 (setq buffer-auto-save-file-name
+                       (cond
+                        ((null val) nil)
+                        ((and buffer-file-name auto-save-visited-file-name
+                              (not buffer-read-only))
+                         buffer-file-name)
+                        (t (make-auto-save-file-name))))))
+  ;; If -1 was stored here, to temporarily turn off saving,
+  ;; turn it back on.
+  (and (< buffer-saved-size 0)
+       (setq buffer-saved-size 0)))
 \f
 (defgroup paren-blinking nil
   "Blinking matching of parens and expressions."