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
4288965c
Commit
4288965c
authored
Jun 02, 1995
by
Simon Marshall
Browse files
Don't go forward over a word-char if we're at bob, and set match-data.
parent
04486a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lisp/comint.el
lisp/comint.el
+8
-3
No files found.
lisp/comint.el
View file @
4288965c
...
...
@@ -1848,10 +1848,15 @@ inside of a \"[...]\" (see `skip-chars-forward')."
(
let
((
non-word-chars
(
concat
"[^\\\\"
word-chars
"]"
))
(
here
(
point
)))
(
while
(
and
(
re-search-backward
non-word-chars
nil
'move
)
;(memq (char-after (point)) shell-file-name-quote-list)
(
not
(
bolp
))
(
eq
(
char-after
(
1-
(
point
))
)
?\\
))
(
eq
(
preceding-char
)
?\\
))
(
backward-char
1
))
(
forward-char
1
)
(
and
(
<
(
point
)
here
)
(
buffer-substring
(
point
)
here
)))))
;; Don't go forward over a word-char (this can happen if we're at bob).
(
if
(
or
(
not
(
bobp
))
(
looking-at
non-word-chars
))
(
forward-char
1
))
;; Set match-data to match the entire string.
(
if
(
<
(
point
)
here
)
(
progn
(
store-match-data
(
list
(
point
)
here
))
(
match-string
0
))))))
(
defun
comint-match-partial-filename
()
...
...
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