diff options
| author | Eli Zaretskii | 2001-09-16 10:22:43 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-09-16 10:22:43 +0000 |
| commit | 8aee7d4464554a657a1dd0bb10c5f1492c54784b (patch) | |
| tree | 3d6a91e796405586b3bd48237e1a6c16a1d1e6ba | |
| parent | f68113db5149037e525e5624caf50c26884e1df2 (diff) | |
| download | emacs-8aee7d4464554a657a1dd0bb10c5f1492c54784b.tar.gz emacs-8aee7d4464554a657a1dd0bb10c5f1492c54784b.zip | |
(original-make-auto-save-file-name): New.
(make-auto-save-file-name): New function, overrides the definition
on files.el and calls the original function via
original-make-auto-save-file-name.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dos-fns.el | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 42f897fb98f..e69e04dd552 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2001-09-16 Eli Zaretskii <eliz@is.elta.co.il> | 1 | 2001-09-16 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 2 | ||
| 3 | * dos-fns.el (original-make-auto-save-file-name): New. | ||
| 4 | (make-auto-save-file-name): New function, overrides the definition | ||
| 5 | on files.el and calls the original function via | ||
| 6 | original-make-auto-save-file-name. | ||
| 7 | |||
| 3 | * mail/rmail.el (top-level): Require mule-utils when compiling. | 8 | * mail/rmail.el (top-level): Require mule-utils when compiling. |
| 4 | (rmail-decode-babyl-format): Use detect-coding-with-priority | 9 | (rmail-decode-babyl-format): Use detect-coding-with-priority |
| 5 | instead of detect-coding-region, to favor detection of emacs-mule | 10 | instead of detect-coding-region, to favor detection of emacs-mule |
diff --git a/lisp/dos-fns.el b/lisp/dos-fns.el index 1a727f139d5..3751cc76d24 100644 --- a/lisp/dos-fns.el +++ b/lisp/dos-fns.el | |||
| @@ -172,6 +172,25 @@ with a definition that really does change some file names." | |||
| 172 | (dos-8+3-filename dir)) | 172 | (dos-8+3-filename dir)) |
| 173 | string)))))) | 173 | string)))))) |
| 174 | 174 | ||
| 175 | ;; Make sure auto-save file names don't contain characters invalid for | ||
| 176 | ;; the underlying filesystem. This is particularly annoying with | ||
| 177 | ;; `compose-mail's *mail* buffers: `*' is not allowed in file names on | ||
| 178 | ;; DOS/Windows, so Emacs bitches on you each time it tries to autosave | ||
| 179 | ;; the message being composed. | ||
| 180 | (fset 'original-make-auto-save-file-name | ||
| 181 | (symbol-function 'make-auto-save-file-name)) | ||
| 182 | |||
| 183 | (defun make-auto-save-file-name () | ||
| 184 | "Return file name to use for auto-saves of current buffer. | ||
| 185 | Does not consider `auto-save-visited-file-name' as that variable is checked | ||
| 186 | before calling this function. You can redefine this for customization. | ||
| 187 | See also `auto-save-file-name-p'." | ||
| 188 | (let ((filename (original-make-auto-save-file-name))) | ||
| 189 | ;; Don't modify remote (ange-ftp) filenames | ||
| 190 | (if (string-match "^/\\w+@[-A-Za-z0-9._]+:" filename) | ||
| 191 | filename | ||
| 192 | (convert-standard-filename filename)))) | ||
| 193 | |||
| 175 | ;; See dos-vars.el for defcustom. | 194 | ;; See dos-vars.el for defcustom. |
| 176 | (defvar msdos-shells) | 195 | (defvar msdos-shells) |
| 177 | 196 | ||