aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-03-06 18:23:37 +0000
committerEli Zaretskii2002-03-06 18:23:37 +0000
commita730e8506bc3c0e670f197da28c8ba63827c25c3 (patch)
treea9d7559585e90899f554d40a6c75de349b911866
parent1e57a69675b0597c3ad381dc19d514d3b54e28c5 (diff)
downloademacs-a730e8506bc3c0e670f197da28c8ba63827c25c3.tar.gz
emacs-a730e8506bc3c0e670f197da28c8ba63827c25c3.zip
(make-auto-save-file-name): Remove replacement function.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/dos-fns.el19
-rw-r--r--lisp/w32-fns.el15
3 files changed, 9 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 21ae3139609..c01a5ac0425 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12002-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * files.el (make-auto-save-file-name): Make sure the produced file
4 name does not contain characters that are invalid for DOS/Windows
5 filesystems.
6
7 * dos-fns.el, w32-fns.el: (make-auto-save-file-name): Remove
8 replacement functions.
9
12002-03-06 Gerd Moellmann <gerd@gnu.org> 102002-03-06 Gerd Moellmann <gerd@gnu.org>
2 11
3 * font-lock.el (lisp-font-lock-keywords-2): Highlight keywords of 12 * font-lock.el (lisp-font-lock-keywords-2): Highlight keywords of
diff --git a/lisp/dos-fns.el b/lisp/dos-fns.el
index 4b91cdf7a1b..1a979a80d73 100644
--- a/lisp/dos-fns.el
+++ b/lisp/dos-fns.el
@@ -180,25 +180,6 @@ with a definition that really does change some file names."
180 (dos-8+3-filename dir)) 180 (dos-8+3-filename dir))
181 string)))))) 181 string))))))
182 182
183;; Make sure auto-save file names don't contain characters invalid for
184;; the underlying filesystem. This is particularly annoying with
185;; `compose-mail's *mail* buffers: `*' is not allowed in file names on
186;; DOS/Windows, so Emacs bitches on you each time it tries to autosave
187;; the message being composed.
188(fset 'original-make-auto-save-file-name
189 (symbol-function 'make-auto-save-file-name))
190
191(defun make-auto-save-file-name ()
192 "Return file name to use for auto-saves of current buffer.
193Does not consider `auto-save-visited-file-name' as that variable is checked
194before calling this function. You can redefine this for customization.
195See also `auto-save-file-name-p'."
196 (let ((filename (original-make-auto-save-file-name)))
197 ;; Don't modify remote (ange-ftp) filenames
198 (if (string-match "^/\\w+@[-A-Za-z0-9._]+:" filename)
199 filename
200 (convert-standard-filename filename))))
201
202;; See dos-vars.el for defcustom. 183;; See dos-vars.el for defcustom.
203(defvar msdos-shells) 184(defvar msdos-shells)
204 185
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 3c643533cc1..6a8037ceac0 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -227,21 +227,6 @@ You should set this to t when using a non-system shell.\n\n"))))
227; (setq source-directory (file-name-as-directory 227; (setq source-directory (file-name-as-directory
228; (expand-file-name ".." exec-directory))))) 228; (expand-file-name ".." exec-directory)))))
229 229
230;; Avoid creating auto-save file names containing invalid characters.
231(fset 'original-make-auto-save-file-name
232 (symbol-function 'make-auto-save-file-name))
233
234(defun make-auto-save-file-name ()
235 "Return file name to use for auto-saves of current buffer.
236Does not consider `auto-save-visited-file-name' as that variable is checked
237before calling this function. You can redefine this for customization.
238See also `auto-save-file-name-p'."
239 (let ((filename (original-make-auto-save-file-name)))
240 ;; Don't modify remote (ange-ftp) filenames
241 (if (string-match "^/\\w+@[-A-Za-z0-9._]+:" filename)
242 filename
243 (convert-standard-filename filename))))
244
245(defun convert-standard-filename (filename) 230(defun convert-standard-filename (filename)
246 "Convert a standard file's name to something suitable for the current OS. 231 "Convert a standard file's name to something suitable for the current OS.
247This function's standard definition is trivial; it just returns the argument. 232This function's standard definition is trivial; it just returns the argument.