+2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * diff-mode.el (diff-remembered-defdir): New var.
+ (diff-find-file-name): Use it to flush diff-remembered-files-alist.
+
2008-03-25 Glenn Morris <rgm@gnu.org>
* calendar/cal-bahai.el (calendar-bahai-read-date): New name for
;;;;
(defvar diff-remembered-files-alist nil)
+(defvar diff-remembered-defdir nil)
(defun diff-filename-drop-dir (file)
(when (string-match "/" file) (substring file (match-end 0))))
Non-nil BATCH means to prefer returning an incorrect answer than to prompt
the user.
PREFIX is only used internally: don't use it."
+ (unless (equal diff-remembered-defdir default-directory)
+ ;; Flush diff-remembered-files-alist if the default-directory is changed.
+ (set (make-local-variable 'diff-remembered-defdir) default-directory)
+ (set (make-local-variable 'diff-remembered-files-alist) nil))
(save-excursion
(unless (looking-at diff-file-header-re)
(or (ignore-errors (diff-beginning-of-file))