Commit de9dc5e5 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(diff): Set default-directory in diff buffer.

parent 6f60853a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment