aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-05-07 08:49:14 -0400
committerStefan Monnier2010-05-07 08:49:14 -0400
commitf3ee9200b8199ed00514ffa27079ba780bc2746f (patch)
treebaaeee38bbabfc5f2fb77ba0a2ca2259bcd05605
parent5f43e51c03f72ce8be50c475b5e0fc3cd6f94a83 (diff)
downloademacs-f3ee9200b8199ed00514ffa27079ba780bc2746f.tar.gz
emacs-f3ee9200b8199ed00514ffa27079ba780bc2746f.zip
* 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.
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/files.el20
-rw-r--r--lisp/minibuffer.el2
-rw-r--r--lisp/simple.el20
4 files changed, 31 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index df7d21c6124..24e1b98f736 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * files.el (auto-save-mode): Move to simple.el to fix bootstrap.
4 * simple.el (auto-save-mode): Move from files.el.
5 * minibuffer.el (completion--common-suffix): Fix copy&paste error.
6
12010-05-07 Christian von Roques <roques@mti.ag> (tiny change) 72010-05-07 Christian von Roques <roques@mti.ag> (tiny change)
2 8
3 * lisp/epg.el (epg-key-capablity-alist): Add "D" flag (Bug#5592). 9 * lisp/epg.el (epg-key-capablity-alist): Add "D" flag (Bug#5592).
@@ -27,12 +33,12 @@
27 33
282010-05-06 Michael Albinus <michael.albinus@gmx.de> 342010-05-06 Michael Albinus <michael.albinus@gmx.de>
29 35
30 * net/tramp.el (top, with-progress-reporter): Use 36 * net/tramp.el (top, with-progress-reporter):
31 `symbol-function' inside `funcall'. 37 Use `symbol-function' inside `funcall'.
32 38
33 * net/tramp-compat.el (tramp-compat-file-attributes) 39 * net/tramp-compat.el (tramp-compat-file-attributes)
34 (tramp-compat-delete-file, tramp-compat-delete-directory): Handle 40 (tramp-compat-delete-file, tramp-compat-delete-directory):
35 only `wrong-number-of-arguments' error. 41 Handle only `wrong-number-of-arguments' error.
36 42
37 * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Fix typo. 43 * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Fix typo.
38 (tramp-gvfs-handle-file-selinux-context): Use `symbol-function' 44 (tramp-gvfs-handle-file-selinux-context): Use `symbol-function'
diff --git a/lisp/files.el b/lisp/files.el
index 9090f8afc88..406ee7e00cb 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5150,26 +5150,6 @@ The optional second argument indicates whether to kill internal buffers too."
5150 (kill-buffer-ask buffer))))) 5150 (kill-buffer-ask buffer)))))
5151 5151
5152 5152
5153(define-minor-mode auto-save-mode
5154 "Toggle auto-saving of contents of current buffer.
5155With prefix argument ARG, turn auto-saving on if positive, else off."
5156 :variable ((and buffer-auto-save-file-name
5157 ;; If auto-save is off because buffer has shrunk,
5158 ;; then toggling should turn it on.
5159 (>= buffer-saved-size 0))
5160 . (lambda (val)
5161 (setq buffer-auto-save-file-name
5162 (cond
5163 ((null val) nil)
5164 ((and buffer-file-name auto-save-visited-file-name
5165 (not buffer-read-only))
5166 buffer-file-name)
5167 (t (make-auto-save-file-name))))))
5168 ;; If -1 was stored here, to temporarily turn off saving,
5169 ;; turn it back on.
5170 (and (< buffer-saved-size 0)
5171 (setq buffer-saved-size 0)))
5172
5173(defun rename-auto-save-file () 5153(defun rename-auto-save-file ()
5174 "Adjust current buffer's auto save file name for current conditions. 5154 "Adjust current buffer's auto save file name for current conditions.
5175Also rename any existing auto save file, if it was made in this session." 5155Also rename any existing auto save file, if it was made in this session."
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 31bdb6993fa..4d8a6d0ebc0 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1992,7 +1992,7 @@ filter out additional entries (because TABLE migth not obey PRED)."
1992 (completion--sreverse 1992 (completion--sreverse
1993 (try-completion 1993 (try-completion
1994 "" 1994 ""
1995 (mapcar 'completion--sreverse comps)))) 1995 (mapcar 'completion--sreverse strs))))
1996 1996
1997(defun completion-pcm--merge-completions (strs pattern) 1997(defun completion-pcm--merge-completions (strs pattern)
1998 "Extract the commonality in STRS, with the help of PATTERN." 1998 "Extract the commonality in STRS, with the help of PATTERN."
diff --git a/lisp/simple.el b/lisp/simple.el
index 8e45ca4694d..5948536262c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5306,6 +5306,26 @@ With ARG, turn Size Indication mode on if ARG is positive,
5306otherwise turn it off. When Size Indication mode is enabled, the 5306otherwise turn it off. When Size Indication mode is enabled, the
5307size of the accessible part of the buffer appears in the mode line." 5307size of the accessible part of the buffer appears in the mode line."
5308 :global t :group 'mode-line) 5308 :global t :group 'mode-line)
5309
5310(define-minor-mode auto-save-mode
5311 "Toggle auto-saving of contents of current buffer.
5312With prefix argument ARG, turn auto-saving on if positive, else off."
5313 :variable ((and buffer-auto-save-file-name
5314 ;; If auto-save is off because buffer has shrunk,
5315 ;; then toggling should turn it on.
5316 (>= buffer-saved-size 0))
5317 . (lambda (val)
5318 (setq buffer-auto-save-file-name
5319 (cond
5320 ((null val) nil)
5321 ((and buffer-file-name auto-save-visited-file-name
5322 (not buffer-read-only))
5323 buffer-file-name)
5324 (t (make-auto-save-file-name))))))
5325 ;; If -1 was stored here, to temporarily turn off saving,
5326 ;; turn it back on.
5327 (and (< buffer-saved-size 0)
5328 (setq buffer-saved-size 0)))
5309 5329
5310(defgroup paren-blinking nil 5330(defgroup paren-blinking nil
5311 "Blinking matching of parens and expressions." 5331 "Blinking matching of parens and expressions."