diff options
| author | Stefan Monnier | 2011-10-02 00:08:50 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-10-02 00:08:50 -0400 |
| commit | 32c1fffd728cfed8427d144bf7c622257aad859f (patch) | |
| tree | d732c10ec70d78c49fdebc23b32c2ccf0a35ce66 /src | |
| parent | b0e2675c7f28f729354abc1d471af9934899852d (diff) | |
| download | emacs-32c1fffd728cfed8427d144bf7c622257aad859f.tar.gz emacs-32c1fffd728cfed8427d144bf7c622257aad859f.zip | |
* lisp/pcomplete.el: Require comint.
(pcomplete--common-suffix): Remove.
(pcomplete--common-quoted-suffix): Use comint--common-suffix instead.
(pcomplete--table-subvert): Sync with comint--table-subvert.
(pcomplete--entries): Use comint-completion-file-name-table.
* lisp/comint.el (comint-unquote-filename): Simplify.
(comint-completion-file-name-table): New function.
(comint--complete-file-name-data): Use it.
* src/dired.c (file_name_completion): Don't expand file name.
(Ffile_name_completion, Ffile_name_all_completions): Expand file name
before checking file name handler.
Fixes: debbugs:9616
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/dired.c | 3 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fc9a839a25b..bc9ffc8f3fe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2011-10-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * dired.c (file_name_completion): Don't expand file name. | ||
| 4 | (Ffile_name_completion, Ffile_name_all_completions): Expand file name | ||
| 5 | before checking file name handler. | ||
| 6 | |||
| 3 | * minibuf.c (Finternal_complete_buffer): Only show internal buffers if | 7 | * minibuf.c (Finternal_complete_buffer): Only show internal buffers if |
| 4 | they've been requested explicitly (bug#9591). | 8 | they've been requested explicitly (bug#9591). |
| 5 | 9 | ||
| @@ -86,8 +90,8 @@ | |||
| 86 | * xdisp.c (handle_invisible_prop): If invisible text ends on a | 90 | * xdisp.c (handle_invisible_prop): If invisible text ends on a |
| 87 | newline, reseat the iterator instead of bidi-iterating there one | 91 | newline, reseat the iterator instead of bidi-iterating there one |
| 88 | character at a time. (Bug#9610) | 92 | character at a time. (Bug#9610) |
| 89 | (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail out when | 93 | (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past |
| 90 | past TO_CHARPOS if the bidi iterator is at base embedding level. | 94 | TO_CHARPOS if the bidi iterator is at base embedding level. |
| 91 | 95 | ||
| 92 | 2011-09-27 Andreas Schwab <schwab@linux-m68k.org> | 96 | 2011-09-27 Andreas Schwab <schwab@linux-m68k.org> |
| 93 | 97 | ||
| @@ -124,9 +128,9 @@ | |||
| 124 | value is now t. Doc fix. | 128 | value is now t. Doc fix. |
| 125 | 129 | ||
| 126 | * indent.c (Fvertical_motion): Compute and apply the overshoot | 130 | * indent.c (Fvertical_motion): Compute and apply the overshoot |
| 127 | logic also when moving up, not only when moving down. Fix the | 131 | logic when moving up, not only when moving down. Fix the |
| 128 | confusing name and values of the it_overshoot_expected variable; | 132 | confusing name and values of the it_overshoot_expected variable; |
| 129 | logic changed accordingly. (Bug#9254) (Bug#9549) | 133 | logic changes accordingly. (Bug#9254) (Bug#9549) |
| 130 | 134 | ||
| 131 | * xdisp.c (pos_visible_p): Produce correct pixel coordinates when | 135 | * xdisp.c (pos_visible_p): Produce correct pixel coordinates when |
| 132 | CHARPOS is covered by a display string which includes newlines. | 136 | CHARPOS is covered by a display string which includes newlines. |
| @@ -142,7 +146,7 @@ | |||
| 142 | 146 | ||
| 143 | 2011-09-24 Jim Meyering <meyering@redhat.com> | 147 | 2011-09-24 Jim Meyering <meyering@redhat.com> |
| 144 | 148 | ||
| 145 | Do not ignore write error for any output size. | 149 | do not ignore write error for any output size |
| 146 | The previous change was incomplete. | 150 | The previous change was incomplete. |
| 147 | While it makes emacs --batch detect the vast majority of stdout | 151 | While it makes emacs --batch detect the vast majority of stdout |
| 148 | write failures, errors were still ignored whenever the output size is | 152 | write failures, errors were still ignored whenever the output size is |
diff --git a/src/dired.c b/src/dired.c index be94b16cf75..fac3a34ab9b 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -401,6 +401,7 @@ determined by the variable `completion-ignored-extensions', which see. */) | |||
| 401 | (Lisp_Object file, Lisp_Object directory, Lisp_Object predicate) | 401 | (Lisp_Object file, Lisp_Object directory, Lisp_Object predicate) |
| 402 | { | 402 | { |
| 403 | Lisp_Object handler; | 403 | Lisp_Object handler; |
| 404 | directory = Fexpand_file_name (directory, Qnil); | ||
| 404 | 405 | ||
| 405 | /* If the directory name has special constructs in it, | 406 | /* If the directory name has special constructs in it, |
| 406 | call the corresponding file handler. */ | 407 | call the corresponding file handler. */ |
| @@ -424,6 +425,7 @@ These are all file names in directory DIRECTORY which begin with FILE. */) | |||
| 424 | (Lisp_Object file, Lisp_Object directory) | 425 | (Lisp_Object file, Lisp_Object directory) |
| 425 | { | 426 | { |
| 426 | Lisp_Object handler; | 427 | Lisp_Object handler; |
| 428 | directory = Fexpand_file_name (directory, Qnil); | ||
| 427 | 429 | ||
| 428 | /* If the directory name has special constructs in it, | 430 | /* If the directory name has special constructs in it, |
| 429 | call the corresponding file handler. */ | 431 | call the corresponding file handler. */ |
| @@ -474,7 +476,6 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, int all_flag, int v | |||
| 474 | bestmatch = Qnil; | 476 | bestmatch = Qnil; |
| 475 | encoded_file = encoded_dir = Qnil; | 477 | encoded_file = encoded_dir = Qnil; |
| 476 | GCPRO5 (file, dirname, bestmatch, encoded_file, encoded_dir); | 478 | GCPRO5 (file, dirname, bestmatch, encoded_file, encoded_dir); |
| 477 | dirname = Fexpand_file_name (dirname, Qnil); | ||
| 478 | specbind (Qdefault_directory, dirname); | 479 | specbind (Qdefault_directory, dirname); |
| 479 | 480 | ||
| 480 | /* Do completion on the encoded file name | 481 | /* Do completion on the encoded file name |