Mercurial > emacs
changeset 7594:23edba0a5c5e
(choose-completion):
Include words separated by single spaces in the completion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 20 May 1994 22:27:30 +0000 |
parents | a837cfdcf7c0 |
children | 9f0893928a4d |
files | lisp/simple.el |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Fri May 20 22:27:04 1994 +0000 +++ b/lisp/simple.el Fri May 20 22:27:30 1994 +0000 @@ -2438,8 +2438,16 @@ (interactive) (let (beg end) (skip-chars-forward "^ \t\n") + (while (looking-at " [^ \n\t]") + (forward-char 1) + (skip-chars-forward "^ \t\n")) (setq end (point)) (skip-chars-backward "^ \t\n") + (while (and (= (preceding-char) ?\ ) + (not (and (> (point) (1+ (point-min))) + (= (char-after (- (point) 2)) ?\ )))) + (backward-char 1) + (skip-chars-backward "^ \t\n")) (setq beg (point)) (choose-completion-string (buffer-substring beg end))))