Commit bb671f9e authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(comint-replace-by-expanded-filename): Do nothing if

comint-match-partial-filename returns nil.
parent 86078cf0
2002-02-25 Kim F. Storm <no-spam@cua.dk>
* comint.el (comint-replace-by-expanded-filename): Do nothing if
comint-match-partial-filename returns nil.
* shell.el (shell-pcomplete-setup-done): New variable.
(shell-pcomplete): Use it instead of shell-pcomplete-setup-p.
(shell-pcomplete-reverse): Ditto.
2002-02-25 Per Abrahamsen <abraham@dina.kvl.dk>
 
* ps-print.el (ps-print-printer): Added `lpr' customize group
......
......@@ -2756,8 +2756,10 @@ removed, and the filename is made absolute instead of relative. For expansion
see `expand-file-name' and `substitute-in-file-name'. For completion see
`comint-dynamic-complete-filename'."
(interactive)
(replace-match (expand-file-name (comint-match-partial-filename)) t t)
(comint-dynamic-complete-filename))
(let ((filename (comint-match-partial-filename)))
(when filename
(replace-match (expand-file-name filename) t t)
(comint-dynamic-complete-filename))))
(defun comint-dynamic-simple-complete (stub candidates)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment