aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc-hooks.el10
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index da709f444e6..88481804473 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-07-23 Thien-Thi Nguyen <ttn@gnuvola.org>
2
3 * vc-hooks.el (vc-stay-local-p): Fix bug: Avoid remove-if-not.
4 Also, if FILE is a list, return non-nil if any of its elements
5 should stay local. Update docstring.
6
12007-07-23 Stefan Monnier <monnier@iro.umontreal.ca> 72007-07-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * emacs-lisp/copyright.el (copyright-update-year): Fix 2007-05-25 change. 9 * emacs-lisp/copyright.el (copyright-update-year): Fix 2007-05-25 change.
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index cd5d8db7b0f..2d3a0886c22 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -159,9 +159,11 @@ by these regular expressions."
159 159
160(defun vc-stay-local-p (file) 160(defun vc-stay-local-p (file)
161 "Return non-nil if VC should stay local when handling FILE. 161 "Return non-nil if VC should stay local when handling FILE.
162This uses the `repository-hostname' backend operation." 162This uses the `repository-hostname' backend operation.
163If FILE is a list of files, return non-nil if any of them
164individually should stay local."
163 (if (listp file) 165 (if (listp file)
164 (if (remove-if-not (lambda (x) (not (vc-stay-local-p x))) file) 'no 'yes) 166 (delq nil (mapcar 'vc-stay-local-p file))
165 (let* ((backend (vc-backend file)) 167 (let* ((backend (vc-backend file))
166 (sym (vc-make-backend-sym backend 'stay-local)) 168 (sym (vc-make-backend-sym backend 'stay-local))
167 (stay-local (if (boundp sym) (symbol-value sym) t))) 169 (stay-local (if (boundp sym) (symbol-value sym) t)))
@@ -732,7 +734,7 @@ visiting FILE."
732 (propertize 734 (propertize
733 ml-string 735 ml-string
734 'mouse-face 'mode-line-highlight 736 'mouse-face 'mode-line-highlight
735 'help-echo 737 'help-echo
736 (concat (if ml-echo 738 (concat (if ml-echo
737 ml-echo 739 ml-echo
738 (format "File under the %s version control system" 740 (format "File under the %s version control system"
@@ -787,7 +789,7 @@ This function assumes that the file is registered."
787 ;; for 'needs-patch and 'needs-merge. 789 ;; for 'needs-patch and 'needs-merge.
788 (setq state-echo "Locally modified file") 790 (setq state-echo "Locally modified file")
789 (concat backend ":" rev))) 791 (concat backend ":" rev)))
790 'help-echo (concat state-echo " under the " backend 792 'help-echo (concat state-echo " under the " backend
791 " version control system")))) 793 " version control system"))))
792 794
793(defun vc-follow-link () 795(defun vc-follow-link ()