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
a04f05bd
Commit
a04f05bd
authored
Dec 04, 1997
by
Karl Heuer
Browse files
(inferior-octave-directory-tracker):
Anchor regexp match to beginning of command string.
parent
524d06f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lisp/progmodes/octave-inf.el
lisp/progmodes/octave-inf.el
+1
-1
No files found.
lisp/progmodes/octave-inf.el
View file @
a04f05bd
...
...
@@ -336,7 +336,7 @@ output is passed to the filter `inferior-octave-output-digest'."
(
defun
inferior-octave-directory-tracker
(
string
)
"Tracks `cd' commands issued to the inferior Octave process.
Use \\[inferior-octave-resync-dirs] to resync if Emacs gets confused."
(
if
(
string-match
"[ \t]*cd[ \t]*\\([^ \t\n;]*\\)[ \t\n;]"
(
if
(
string-match
"
^
[ \t]*cd[ \t]*\\([^ \t\n;]*\\)[ \t\n;]"
string
)
(
cd
(
substring
string
(
match-beginning
1
)
(
match-end
1
)))))
...
...
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