diff options
| author | Kim F. Storm | 2002-02-25 21:07:37 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-02-25 21:07:37 +0000 |
| commit | bb671f9ece2de829b05ba86bea0835d7c151b270 (patch) | |
| tree | a142bf3267a983fd2b54fc8353f6ad5f08fc4556 /lisp/comint.el | |
| parent | 86078cf0609c65575a543ddcdd28f791b87988a0 (diff) | |
| download | emacs-bb671f9ece2de829b05ba86bea0835d7c151b270.tar.gz emacs-bb671f9ece2de829b05ba86bea0835d7c151b270.zip | |
(comint-replace-by-expanded-filename): Do nothing if
comint-match-partial-filename returns nil.
Diffstat (limited to 'lisp/comint.el')
| -rw-r--r-- | lisp/comint.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 0c1dcbd7f52..0fb22b3341c 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2756,8 +2756,10 @@ removed, and the filename is made absolute instead of relative. For expansion | |||
| 2756 | see `expand-file-name' and `substitute-in-file-name'. For completion see | 2756 | see `expand-file-name' and `substitute-in-file-name'. For completion see |
| 2757 | `comint-dynamic-complete-filename'." | 2757 | `comint-dynamic-complete-filename'." |
| 2758 | (interactive) | 2758 | (interactive) |
| 2759 | (replace-match (expand-file-name (comint-match-partial-filename)) t t) | 2759 | (let ((filename (comint-match-partial-filename))) |
| 2760 | (comint-dynamic-complete-filename)) | 2760 | (when filename |
| 2761 | (replace-match (expand-file-name filename) t t) | ||
| 2762 | (comint-dynamic-complete-filename)))) | ||
| 2761 | 2763 | ||
| 2762 | 2764 | ||
| 2763 | (defun comint-dynamic-simple-complete (stub candidates) | 2765 | (defun comint-dynamic-simple-complete (stub candidates) |