diff options
| author | Richard M. Stallman | 1994-05-20 22:27:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-20 22:27:30 +0000 |
| commit | 2d2eeace3b81236793dc26491a8abcaa1385c878 (patch) | |
| tree | 3eddb9a5f755ef1966c5cffd398b5cef1d9fb7f8 | |
| parent | b6be5d958462e70e0b66b9cc66b1ad3558e46fb9 (diff) | |
| download | emacs-2d2eeace3b81236793dc26491a8abcaa1385c878.tar.gz emacs-2d2eeace3b81236793dc26491a8abcaa1385c878.zip | |
(choose-completion):
Include words separated by single spaces in the completion.
| -rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 326082318bc..5f58d18e74e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2438,8 +2438,16 @@ it were the arg to `interactive' (which see) to interactively read the value." | |||
| 2438 | (interactive) | 2438 | (interactive) |
| 2439 | (let (beg end) | 2439 | (let (beg end) |
| 2440 | (skip-chars-forward "^ \t\n") | 2440 | (skip-chars-forward "^ \t\n") |
| 2441 | (while (looking-at " [^ \n\t]") | ||
| 2442 | (forward-char 1) | ||
| 2443 | (skip-chars-forward "^ \t\n")) | ||
| 2441 | (setq end (point)) | 2444 | (setq end (point)) |
| 2442 | (skip-chars-backward "^ \t\n") | 2445 | (skip-chars-backward "^ \t\n") |
| 2446 | (while (and (= (preceding-char) ?\ ) | ||
| 2447 | (not (and (> (point) (1+ (point-min))) | ||
| 2448 | (= (char-after (- (point) 2)) ?\ )))) | ||
| 2449 | (backward-char 1) | ||
| 2450 | (skip-chars-backward "^ \t\n")) | ||
| 2443 | (setq beg (point)) | 2451 | (setq beg (point)) |
| 2444 | (choose-completion-string (buffer-substring beg end)))) | 2452 | (choose-completion-string (buffer-substring beg end)))) |
| 2445 | 2453 | ||