aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-03-21 19:23:12 +0000
committerStefan Monnier2007-03-21 19:23:12 +0000
commit414a17c9a5fabe70cacfd2c25925dcb09f838dff (patch)
treec16aef44ccbcc54233bdd0e5bbabd536fe934a13
parent255523e9355961d457a1cb51a8e1e00b9904abb1 (diff)
downloademacs-414a17c9a5fabe70cacfd2c25925dcb09f838dff.tar.gz
emacs-414a17c9a5fabe70cacfd2c25925dcb09f838dff.zip
(read-file-name-internal): Don't add the final > if the completion is not
finished (re-application of this patch, which was accidentally undone by Eli).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/complete.el5
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e24c331ab22..052c64bc5c3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * complete.el (read-file-name-internal): Don't add the final > if the
4 completion is not finished (re-application of this patch, which was
5 accidentally undone by Eli).
6
12007-03-21 Chong Yidong <cyd@stupidchicken.com> 72007-03-21 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * emulation/viper.el (viper-non-hook-settings): Handle mouse 9 * emulation/viper.el (viper-non-hook-settings): Handle mouse
diff --git a/lisp/complete.el b/lisp/complete.el
index ce5094d1aef..e86d71c16be 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -1026,10 +1026,11 @@ absolute rather than relative to some directory on the SEARCH-PATH."
1026 (if (string-match "<\\([^\"<>]*\\)>?\\'" (ad-get-arg 0)) 1026 (if (string-match "<\\([^\"<>]*\\)>?\\'" (ad-get-arg 0))
1027 (let* ((string (ad-get-arg 0)) 1027 (let* ((string (ad-get-arg 0))
1028 (action (ad-get-arg 2)) 1028 (action (ad-get-arg 2))
1029 (name (substring string (match-beginning 1) (match-end 1))) 1029 (name (match-string 1 string))
1030 (str2 (substring string (match-beginning 0))) 1030 (str2 (substring string (match-beginning 0)))
1031 (completion-table 1031 (completion-table
1032 (mapcar (lambda (x) (format "<%s>" x)) 1032 (mapcar (lambda (x)
1033 (format (if (string-match "/\\'" x) "<%s" "<%s>") x))
1033 (PC-include-file-all-completions 1034 (PC-include-file-all-completions
1034 name (PC-include-file-path))))) 1035 name (PC-include-file-path)))))
1035 (setq ad-return-value 1036 (setq ad-return-value