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 | |
| 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.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/comint.el | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 08fdaf06a7b..e6cf4a208c6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2002-02-25 Kim F. Storm <no-spam@cua.dk> | ||
| 2 | |||
| 3 | * comint.el (comint-replace-by-expanded-filename): Do nothing if | ||
| 4 | comint-match-partial-filename returns nil. | ||
| 5 | |||
| 6 | * shell.el (shell-pcomplete-setup-done): New variable. | ||
| 7 | (shell-pcomplete): Use it instead of shell-pcomplete-setup-p. | ||
| 8 | (shell-pcomplete-reverse): Ditto. | ||
| 9 | |||
| 1 | 2002-02-25 Per Abrahamsen <abraham@dina.kvl.dk> | 10 | 2002-02-25 Per Abrahamsen <abraham@dina.kvl.dk> |
| 2 | 11 | ||
| 3 | * ps-print.el (ps-print-printer): Added `lpr' customize group | 12 | * ps-print.el (ps-print-printer): Added `lpr' customize group |
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) |