aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2005-09-14 16:19:18 +0000
committerStefan Monnier <[email protected]>2005-09-14 16:19:18 +0000
commitc6ea7612a361b2f5104bfb8774d678a77a07f44f (patch)
tree8963d76650609ac6a057f8127ab796275efe4439
parented1cd40c238e2666979e1d3b36fc1cb5ab0e7de0 (diff)
(cvs-version): Recognize CVSNT version string.
(cvs-execute-single-dir): Change default: cvs-1.9 is ancient.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/pcvs-defs.el14
2 files changed, 23 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6451275455..0d82a5cdc1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,16 @@
+2005-09-14 Stefan Monnier <[email protected]>
+
+ * pcvs-defs.el (cvs-version): Recognize CVSNT version string.
+ (cvs-execute-single-dir): Change default: cvs-1.9 is ancient.
+
+ * calendar/cal-menu.el: Don't require easymenu, since we don't use it.
+ (check-calendar-holidays, diary-list-entries): Autoload.
+ Otherwise `emacs -q' followed by "mouse-2 -> diary entries" burps.
+ (calendar-mouse-holidays, calendar-mouse-view-diary-entries): Simplify.
+
+ * calendar/diary-lib.el (diary-show-all-entries): Fix last change,
+ which mistakenly removed a call to display-buffer.
+
2005-09-14 Juanma Barranquero <[email protected]>
* obsolete/iso-insert.el: Move to obsolete/ from international/.
diff --git a/lisp/pcvs-defs.el b/lisp/pcvs-defs.el
index 3be6cbd918..cd98158171 100644
--- a/lisp/pcvs-defs.el
+++ b/lisp/pcvs-defs.el
@@ -38,11 +38,14 @@
"*Name or full path of the cvs executable.")
(defvar cvs-version
+ ;; With the divergence of the CVSNT codebase and version numbers, this is
+ ;; not really good any more.
(ignore-errors
(with-temp-buffer
(call-process cvs-program nil t nil "-v")
(goto-char (point-min))
- (when (re-search-forward "(CVS) \\([0-9]+\\)\\.\\([0-9]+\\)" nil t)
+ (when (re-search-forward "(CVS\\(NT\\)?) \\([0-9]+\\)\\.\\([0-9]+\\)"
+ nil t)
(cons (string-to-number (match-string 1))
(string-to-number (match-string 2))))))
"*Version of `cvs' installed on your system.
@@ -490,8 +493,11 @@ It is expected to call the function.")
;; cvs-1.10 and above can take file arguments in other directories
;; while others need to be executed once per directory
(defvar cvs-execute-single-dir
- (if (and (consp cvs-version)
- (or (>= (cdr cvs-version) 10) (> (car cvs-version) 1)))
+ (if (or (null cvs-version)
+ (or (>= (cdr cvs-version) 10) (> (car cvs-version) 1)))
+ ;; Supposedly some recent versions of CVS output some directory info
+ ;; as they recurse downthe tree, but it's not good enough in the case
+ ;; where we run "cvs status foo bar/foo".
'("status")
t)
"Whether cvs commands should be executed a directory at a time.
@@ -506,7 +512,7 @@ Sadly, even with a new cvs executable, if you connect to an older cvs server
a case the sanity check made by pcl-cvs fails and you will have to manually
set this variable to t (until the cvs server is upgraded).
When the above problem occurs, pcl-cvs should (hopefully) catch cvs' error
-message and replace it with a message tell you to change this variable.")
+message and replace it with a message telling you to change this variable.")
;;
(provide 'pcvs-defs)