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
de9dc5e5
Commit
de9dc5e5
authored
Apr 24, 2004
by
Andreas Schwab
Browse files
(diff): Set default-directory in diff buffer.
parent
6f60853a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lisp/diff.el
lisp/diff.el
+2
-0
No files found.
lisp/diff.el
View file @
de9dc5e5
...
...
@@ -111,6 +111,7 @@ With prefix arg, prompt for diff switches."
,
(
shell-quote-argument
(
or
new-alt
new
)))
" "
))
(
buf
(
get-buffer-create
"*Diff*"
))
(
thisdir
default-directory
)
proc
)
(
save-excursion
(
display-buffer
buf
)
...
...
@@ -125,6 +126,7 @@ With prefix arg, prompt for diff switches."
(
diff
',old
',new
',switches
',no-async
)))
(
set
(
make-local-variable
'diff-old-temp-file
)
old-alt
)
(
set
(
make-local-variable
'diff-new-temp-file
)
new-alt
)
(
setq
default-directory
thisdir
)
(
insert
command
"\n"
)
(
if
(
and
(
not
no-async
)
(
fboundp
'start-process
))
(
progn
...
...
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