;;; diff.el --- run `diff' in compilation-mode
-;; Copyright (C) 1992, 1994, 1996, 2001, 2004 Free Software Foundation, Inc.
+;; Copyright (C) 1992, 1994, 1996, 2001, 2002, 2003, 2004,
+;; 2005 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: unix, tools
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Commentary:
;;;###autoload
(defcustom diff-switches "-c"
- "*A string or list of strings specifying switches to be be passed to diff."
+ "*A string or list of strings specifying switches to be passed to diff."
:type '(choice string (repeat string))
:group 'diff)
,(shell-quote-argument (or new-alt new)))
" "))
(buf (get-buffer-create "*Diff*"))
+ (thisdir default-directory)
proc)
(save-excursion
(display-buffer buf)
(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