[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r100184: * files.el (auto-save-mode):
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r100184: * files.el (auto-save-mode): Move to simple.el to fix bootstrap. |
Date: |
Fri, 07 May 2010 08:49:14 -0400 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 100184
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Fri 2010-05-07 08:49:14 -0400
message:
* 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.
modified:
lisp/ChangeLog
lisp/files.el
lisp/minibuffer.el
lisp/simple.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-05-07 08:10:28 +0000
+++ b/lisp/ChangeLog 2010-05-07 12:49:14 +0000
@@ -1,3 +1,9 @@
+2010-05-07 Stefan Monnier <address@hidden>
+
+ * 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 <address@hidden> (tiny change)
* lisp/epg.el (epg-key-capablity-alist): Add "D" flag (Bug#5592).
@@ -27,12 +33,12 @@
2010-05-06 Michael Albinus <address@hidden>
- * 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'
=== modified file 'lisp/files.el'
--- a/lisp/files.el 2010-05-06 02:53:56 +0000
+++ b/lisp/files.el 2010-05-07 12:49:14 +0000
@@ -5150,26 +5150,6 @@
(kill-buffer-ask buffer)))))
-(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."
=== modified file 'lisp/minibuffer.el'
--- a/lisp/minibuffer.el 2010-05-07 03:11:56 +0000
+++ b/lisp/minibuffer.el 2010-05-07 12:49:14 +0000
@@ -1992,7 +1992,7 @@
(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."
=== modified file 'lisp/simple.el'
--- a/lisp/simple.el 2010-05-05 03:45:21 +0000
+++ b/lisp/simple.el 2010-05-07 12:49:14 +0000
@@ -5306,6 +5306,26 @@
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)))
(defgroup paren-blinking nil
"Blinking matching of parens and expressions."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r100184: * files.el (auto-save-mode): Move to simple.el to fix bootstrap.,
Stefan Monnier <=