diff options
author | Miles Bader <miles@gnu.org> | 2007-12-29 02:39:17 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-12-29 02:39:17 +0000 |
commit | a0c92ed92d3d62d4926dafb1d595d87843df4688 (patch) | |
tree | 78f12dd6f97a0f96b846fbf08e3f8ce39a701f8e /lisp/international | |
parent | 9aeb99f00a02c695b14f2ee349141eb9641ca6da (diff) | |
parent | 870356897e927f380841268667a92b40fb9e6782 (diff) | |
download | emacs-a0c92ed92d3d62d4926dafb1d595d87843df4688.tar.gz |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-306
Diffstat (limited to 'lisp/international')
-rw-r--r-- | lisp/international/mule-cmds.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 111c45dd50a..7372a5570b8 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -946,6 +946,7 @@ It is highly recommended to fix it before writing to a file." (let ((codings (find-coding-systems-region from to)) (coding-system nil) + (tick (if (not (stringp from)) (buffer-modified-tick))) safe rejected unsafe) (if (eq (car codings) 'undecided) ;; Any coding system is ok. @@ -1011,6 +1012,8 @@ It is highly recommended to fix it before writing to a file." %s specified by file contents. Really save (else edit coding cookies \ and try again)? " coding-system auto-cs)) (error "Save aborted")))) + (when (and tick (/= tick (buffer-modified-tick))) + (error "Cancelled because the buffer was modified")) coding-system))) (setq select-safe-coding-system-function 'select-safe-coding-system) @@ -1302,7 +1305,10 @@ This is the input method activated automatically by the command (put 'input-method-function 'permanent-local t) (defvar input-method-history nil - "History list for some commands that read input methods.") + "History list of input methods read from the minibuffer. + +Maximum length of the history list is determined by the value +of `history-length', which see.") (make-variable-buffer-local 'input-method-history) (put 'input-method-history 'permanent-local t) |