aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDan Nicolaescu2008-01-15 04:37:20 +0000
committerDan Nicolaescu2008-01-15 04:37:20 +0000
commit54648b5c23a37346e89c99e622bc81e7a5f30d3f (patch)
tree4b39f7fe0ffc7d9a8860247bdff08382b39248c8 /lisp
parent7d3169dbbdb106076475d537d0657295e603e8e0 (diff)
downloademacs-54648b5c23a37346e89c99e622bc81e7a5f30d3f.tar.gz
emacs-54648b5c23a37346e89c99e622bc81e7a5f30d3f.zip
* vc-arch.el (vc-arch-delete-rej-if-obsolete): Remove the
after-save-hook so that it is not called multiple times. * vc-svn.el (vc-svn-resolve-when-done): Likewise.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/vc-arch.el8
-rw-r--r--lisp/vc-svn.el6
3 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 91d3a778f24..0ec33846981 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12008-01-15 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-arch.el (vc-arch-delete-rej-if-obsolete): Remove the
4 after-save-hook so that it is not called multiple times.
5
6 * vc-svn.el (vc-svn-resolve-when-done): Likewise.
7
12008-01-15 Glenn Morris <rgm@gnu.org> 82008-01-15 Glenn Morris <rgm@gnu.org>
2 9
3 * diff-mode.el (diff-end-of-hunk): Revert 2008-01-08 change. 10 * diff-mode.el (diff-end-of-hunk): Revert 2008-01-08 change.
diff --git a/lisp/vc-arch.el b/lisp/vc-arch.el
index 137dcf9e20f..c027d981b3a 100644
--- a/lisp/vc-arch.el
+++ b/lisp/vc-arch.el
@@ -341,9 +341,11 @@ Return non-nil if FILE is unchanged."
341 (save-excursion 341 (save-excursion
342 (let ((rej (concat buffer-file-name ".rej"))) 342 (let ((rej (concat buffer-file-name ".rej")))
343 (when (and buffer-file-name (vc-arch-diff3-rej-p rej)) 343 (when (and buffer-file-name (vc-arch-diff3-rej-p rej))
344 (if (not (re-search-forward "^<<<<<<< " nil t)) 344 (unless (re-search-forward "^<<<<<<< " nil t)
345 ;; The .rej file is obsolete. 345 ;; The .rej file is obsolete.
346 (condition-case nil (delete-file rej) (error nil))))))) 346 (condition-case nil (delete-file rej) (error nil))
347 ;; Remove the hook so that it is not called multiple times.
348 (remove-hook 'after-save-hook 'vc-arch-delete-rej-if-obsolete t))))))
347 349
348(defun vc-arch-find-file-hook () 350(defun vc-arch-find-file-hook ()
349 (let ((rej (concat buffer-file-name ".rej"))) 351 (let ((rej (concat buffer-file-name ".rej")))
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 3e67a89afc7..0b0dd1ed74c 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -497,8 +497,10 @@ and that it passes `vc-svn-global-switches' to it before FLAGS."
497 "Call \"svn resolved\" if the conflict markers have been removed." 497 "Call \"svn resolved\" if the conflict markers have been removed."
498 (save-excursion 498 (save-excursion
499 (goto-char (point-min)) 499 (goto-char (point-min))
500 (if (not (re-search-forward "^<<<<<<< " nil t)) 500 (unless (re-search-forward "^<<<<<<< " nil t)
501 (vc-svn-command nil 0 buffer-file-name "resolved")))) 501 (vc-svn-command nil 0 buffer-file-name "resolved")
502 ;; Remove the hook so that it is not called multiple times.
503 (remove-hook 'after-save-hook 'vc-svn-resolve-when-done t))))
502 504
503;; Inspired by vc-arch-find-file-hook. 505;; Inspired by vc-arch-find-file-hook.
504(defun vc-svn-find-file-hook () 506(defun vc-svn-find-file-hook ()