Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b6be5d95
Commit
b6be5d95
authored
May 20, 1994
by
Richard M. Stallman
Browse files
(mouse-choose-completion):
Include words separated by single spaces in the completion.
parent
3ee3ac77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
lisp/mouse.el
lisp/mouse.el
+13
-3
No files found.
lisp/mouse.el
View file @
b6be5d95
...
...
@@ -1189,10 +1189,20 @@ and selects that window."
(
setq
buffer
completion-reference-buffer
))
(
save-excursion
(
goto-char
(
posn-point
(
event-start
event
)))
(
skip-chars-backward
"^ \t\n"
)
(
let
((
beg
(
point
)))
(
let
(
beg
end
)
(
skip-chars-forward
"^ \t\n"
)
(
setq
choice
(
buffer-substring
beg
(
point
))))))
(
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
))
(
setq
choice
(
buffer-substring
beg
end
)))))
(
let
((
owindow
(
selected-window
)))
(
select-window
(
posn-window
(
event-start
event
)))
(
bury-buffer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment