Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a730e850
Commit
a730e850
authored
Mar 06, 2002
by
Eli Zaretskii
Browse files
(make-auto-save-file-name): Remove replacement function.
parent
1e57a696
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
34 deletions
+9
-34
lisp/ChangeLog
lisp/ChangeLog
+9
-0
lisp/dos-fns.el
lisp/dos-fns.el
+0
-19
lisp/w32-fns.el
lisp/w32-fns.el
+0
-15
No files found.
lisp/ChangeLog
View file @
a730e850
2002-03-06 Eli Zaretskii <eliz@is.elta.co.il>
* files.el (make-auto-save-file-name): Make sure the produced file
name does not contain characters that are invalid for DOS/Windows
filesystems.
* dos-fns.el, w32-fns.el: (make-auto-save-file-name): Remove
replacement functions.
2002-03-06 Gerd Moellmann <gerd@gnu.org>
* font-lock.el (lisp-font-lock-keywords-2): Highlight keywords of
...
...
lisp/dos-fns.el
View file @
a730e850
...
...
@@ -180,25 +180,6 @@ with a definition that really does change some file names."
(
dos-8+3-filename
dir
))
string
))))))
;; Make sure auto-save file names don't contain characters invalid for
;; the underlying filesystem. This is particularly annoying with
;; `compose-mail's *mail* buffers: `*' is not allowed in file names on
;; DOS/Windows, so Emacs bitches on you each time it tries to autosave
;; the message being composed.
(
fset
'original-make-auto-save-file-name
(
symbol-function
'make-auto-save-file-name
))
(
defun
make-auto-save-file-name
()
"Return file name to use for auto-saves of current buffer.
Does not consider `auto-save-visited-file-name' as that variable is checked
before calling this function. You can redefine this for customization.
See also `auto-save-file-name-p'."
(
let
((
filename
(
original-make-auto-save-file-name
)))
;; Don't modify remote (ange-ftp) filenames
(
if
(
string-match
"^/\\w+@[-A-Za-z0-9._]+:"
filename
)
filename
(
convert-standard-filename
filename
))))
;; See dos-vars.el for defcustom.
(
defvar
msdos-shells
)
...
...
lisp/w32-fns.el
View file @
a730e850
...
...
@@ -227,21 +227,6 @@ You should set this to t when using a non-system shell.\n\n"))))
; (setq source-directory (file-name-as-directory
; (expand-file-name ".." exec-directory)))))
;; Avoid creating auto-save file names containing invalid characters.
(
fset
'original-make-auto-save-file-name
(
symbol-function
'make-auto-save-file-name
))
(
defun
make-auto-save-file-name
()
"Return file name to use for auto-saves of current buffer.
Does not consider `auto-save-visited-file-name' as that variable is checked
before calling this function. You can redefine this for customization.
See also `auto-save-file-name-p'."
(
let
((
filename
(
original-make-auto-save-file-name
)))
;; Don't modify remote (ange-ftp) filenames
(
if
(
string-match
"^/\\w+@[-A-Za-z0-9._]+:"
filename
)
filename
(
convert-standard-filename
filename
))))
(
defun
convert-standard-filename
(
filename
)
"Convert a standard file's name to something suitable for the current OS.
This function's standard definition is trivial; it just returns the argument.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment