diff options
| author | Karl Heuer | 1997-10-19 21:02:27 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-19 21:02:27 +0000 |
| commit | 5cb1f7280ab1b00f7c910af940834ac371bbcba2 (patch) | |
| tree | 7f725d9ad1764e388c2eceda6e58a2a1ab50dc62 | |
| parent | fe4d985204906d5e9bd557b68eb05620b793bfb6 (diff) | |
| download | emacs-5cb1f7280ab1b00f7c910af940834ac371bbcba2.tar.gz emacs-5cb1f7280ab1b00f7c910af940834ac371bbcba2.zip | |
(file-name-non-special): For insert-directory operation,
ensure that default-directory is an ordinary file name
before turning off file-name-handler-alist.
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 01712f58e7b..6054af1b4e8 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3076,6 +3076,12 @@ With prefix arg, silently save all file-visiting buffers, then kill." | |||
| 3076 | 3076 | ||
| 3077 | (defun file-name-non-special (operation &rest arguments) | 3077 | (defun file-name-non-special (operation &rest arguments) |
| 3078 | (let ((file-name-handler-alist nil) | 3078 | (let ((file-name-handler-alist nil) |
| 3079 | (default-directory | ||
| 3080 | (if (eq operation 'insert-directory) | ||
| 3081 | (directory-file-name | ||
| 3082 | (expand-file-name | ||
| 3083 | (unhandled-file-name-directory default-directory))) | ||
| 3084 | default-directory)) | ||
| 3079 | ;; Get a list of the indices of the args which are file names. | 3085 | ;; Get a list of the indices of the args which are file names. |
| 3080 | (file-arg-indices | 3086 | (file-arg-indices |
| 3081 | (cdr (or (assq operation | 3087 | (cdr (or (assq operation |