aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-04-19 16:27:09 +0000
committerStefan Monnier2002-04-19 16:27:09 +0000
commitc37adaa5eaf360904ee4f32d01fa998c496d28a6 (patch)
treec6b1747b057f9321169fbe16c6aff3812e1879f1
parent58b1103e0e47d26596ed518fa8a61c2bf5e6edb5 (diff)
downloademacs-c37adaa5eaf360904ee4f32d01fa998c496d28a6.tar.gz
emacs-c37adaa5eaf360904ee4f32d01fa998c496d28a6.zip
(file-name-non-special): Don't mangle the 0'th arg and the
return value of file-name-completion and file-name-all-completions.
-rw-r--r--lisp/ChangeLog30
-rw-r--r--lisp/files.el11
2 files changed, 19 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8c7d8ebf907..1b18a66306e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-04-19 Stefan Monnier <monnier@cs.yale.edu>
2
3 * files.el (file-name-non-special): Don't mangle the 0'th arg and the
4 return value of file-name-completion and file-name-all-completions.
5
12002-04-19 Glenn Morris <gmorris@ast.cam.ac.uk> 62002-04-19 Glenn Morris <gmorris@ast.cam.ac.uk>
2 7
3 * progmodes/f90.el: Update maintainer. 8 * progmodes/f90.el: Update maintainer.
@@ -22,7 +27,7 @@
22 * register.el (insert-register): Use insert-for-yank. 27 * register.el (insert-register): Use insert-for-yank.
23 (describe-register-1): Discard text props in yank-excluded-properties. 28 (describe-register-1): Discard text props in yank-excluded-properties.
24 29
25 * toolbar/tool-bar.el (tool-bar-local-item-from-menu): 30 * toolbar/tool-bar.el (tool-bar-local-item-from-menu):
26 Fix parts in construction of `menu-item' item at end. 31 Fix parts in construction of `menu-item' item at end.
27 32
28 * mail/mailabbrev.el (mail-mode-abbrev-table): Delete defvar. 33 * mail/mailabbrev.el (mail-mode-abbrev-table): Delete defvar.
@@ -50,15 +55,14 @@
50 55
51 * ibuffer.el (ibuffer-visit-buffer): Optionally allow reducing to 56 * ibuffer.el (ibuffer-visit-buffer): Optionally allow reducing to
52 one window. 57 one window.
53 (ibuffer-visit-buffer-1-window): Simply call 58 (ibuffer-visit-buffer-1-window): Simply call `ibuffer-visit-buffer'.
54 `ibuffer-visit-buffer'.
55 (ibuffer-current-state-list): Reinstate optional argument; now 59 (ibuffer-current-state-list): Reinstate optional argument; now
56 just call `point' inside the mapping function. 60 just call `point' inside the mapping function.
57 61
582002-04-17 Francesco Potorti` <pot@gnu.org> 622002-04-17 Francesco Potorti` <pot@gnu.org>
59 63
60 * dired-aux.el (dired-star-subst-regexp, 64 * dired-aux.el (dired-star-subst-regexp)
61 dired-quark-subst-regexp): New constants. 65 (dired-quark-subst-regexp): New constants.
62 (dired-do-shell-command, dired-shell-stuff-it): Use them. 66 (dired-do-shell-command, dired-shell-stuff-it): Use them.
63 (dired-do-shell-command): Raise an error if both `*' and `?' 67 (dired-do-shell-command): Raise an error if both `*' and `?'
64 substitution marks are used in the same command. 68 substitution marks are used in the same command.
@@ -96,15 +100,15 @@
96 (ex-print): New function. 100 (ex-print): New function.
97 (ex-print-display-lines): New function. 101 (ex-print-display-lines): New function.
98 102
99 * viper.el (viper-set-hooks): add window-setup-hook, which sets 103 * viper.el (viper-set-hooks): Add window-setup-hook, which sets
100 the cursor color. 104 the cursor color.
101 105
102 * ediff-util.el (ediff-cleanup-mess): delete ctl window on exit 106 * ediff-util.el (ediff-cleanup-mess): Delete ctl window on exit
103 when the window is not in its own frame. 107 when the window is not in its own frame.
104 (ediff-clone-buffer-for-region-comparison): more robust window 108 (ediff-clone-buffer-for-region-comparison): More robust window
105 arrangement while prompting for regions to compare. 109 arrangement while prompting for regions to compare.
106 (ediff-make-cloned-buffer): use generate-new-buffer-name. 110 (ediff-make-cloned-buffer): Use generate-new-buffer-name.
107 (ediff-inferior-compare-regions): deleted unused vars 111 (ediff-inferior-compare-regions): Deleted unused vars
108 ctl-buf and quit-now. 112 ctl-buf and quit-now.
109 113
1102002-04-15 Richard M. Stallman <rms@gnu.org> 1142002-04-15 Richard M. Stallman <rms@gnu.org>
@@ -177,8 +181,7 @@
177 arguments; the other two were unused. 181 arguments; the other two were unused.
178 (ibuffer-redisplay, ibuffer-update): Always skip special areas. 182 (ibuffer-redisplay, ibuffer-update): Always skip special areas.
179 183
180 * ibuf-macs.el, ibuf-ext.el: Update callers of 184 * ibuf-macs.el, ibuf-ext.el: Update callers of `ibuffer-map-lines'.
181 `ibuffer-map-lines'.
182 185
183 * calc/calc-bin.el (math-format-radix-float): Use `when'. 186 * calc/calc-bin.el (math-format-radix-float): Use `when'.
184 187
@@ -200,8 +203,7 @@
2002002-04-12 John Wiegley <johnw@gnu.org> 2032002-04-12 John Wiegley <johnw@gnu.org>
201 204
202 * eshell/esh-ext.el (eshell-script-interpreter): Fix for CRLF 205 * eshell/esh-ext.el (eshell-script-interpreter): Fix for CRLF
203 operating systems to the regexp used to detect a script's 206 operating systems to the regexp used to detect a script's interpreter.
204 interpretor.
205 207
2062002-04-12 Eli Zaretskii <eliz@is.elta.co.il> 2082002-04-12 Eli Zaretskii <eliz@is.elta.co.il>
207 209
diff --git a/lisp/files.el b/lisp/files.el
index c4e3e8c3760..1c97aaac71f 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3917,8 +3917,8 @@ With prefix arg, silently save all file-visiting buffers, then kill."
3917 ;; `identity' means just return the first arg 3917 ;; `identity' means just return the first arg
3918 ;; as stripped of its quoting. 3918 ;; as stripped of its quoting.
3919 (substitute-in-file-name . identity) 3919 (substitute-in-file-name . identity)
3920 (file-name-completion 0 1) 3920 (file-name-completion 1)
3921 (file-name-all-completions 0 1) 3921 (file-name-all-completions 1)
3922 (rename-file 0 1) 3922 (rename-file 0 1)
3923 (copy-file 0 1) 3923 (copy-file 0 1)
3924 (make-symbolic-link 0 1) 3924 (make-symbolic-link 0 1)
@@ -3941,12 +3941,7 @@ With prefix arg, silently save all file-visiting buffers, then kill."
3941 (setq file-arg-indices (cdr file-arg-indices)))) 3941 (setq file-arg-indices (cdr file-arg-indices))))
3942 (if (eq file-arg-indices 'identity) 3942 (if (eq file-arg-indices 'identity)
3943 (car arguments) 3943 (car arguments)
3944 (let ((value (apply operation arguments))) 3944 (apply operation arguments))))
3945 (cond ((memq operation '(file-name-completion))
3946 (and value (if (eq value t) t (concat "/:" value))))
3947 ((memq operation '(file-name-all-completions))
3948 (mapcar (lambda (name) (concat "/:" name)) value))
3949 (t value))))))
3950 3945
3951(define-key ctl-x-map "\C-f" 'find-file) 3946(define-key ctl-x-map "\C-f" 'find-file)
3952(define-key ctl-x-map "\C-r" 'find-file-read-only) 3947(define-key ctl-x-map "\C-r" 'find-file-read-only)