diff options
| author | Stefan Monnier | 2007-03-21 19:23:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-03-21 19:23:12 +0000 |
| commit | 414a17c9a5fabe70cacfd2c25925dcb09f838dff (patch) | |
| tree | c16aef44ccbcc54233bdd0e5bbabd536fe934a13 /lisp/complete.el | |
| parent | 255523e9355961d457a1cb51a8e1e00b9904abb1 (diff) | |
| download | emacs-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).
Diffstat (limited to 'lisp/complete.el')
| -rw-r--r-- | lisp/complete.el | 5 |
1 files changed, 3 insertions, 2 deletions
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 |