aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-10-15 05:18:48 +0000
committerStefan Monnier2000-10-15 05:18:48 +0000
commit3c7fafc7b5a363803221896a1bb32c6df9c170dd (patch)
treec8137dd856639f139ab729761a15d8e05f5e5577
parent10c471e6a30a1d206093d03f42ab7866044ab5bb (diff)
downloademacs-3c7fafc7b5a363803221896a1bb32c6df9c170dd.tar.gz
emacs-3c7fafc7b5a363803221896a1bb32c6df9c170dd.zip
* pcvs.el (cvs-make-cvs-buffer, cvs-run-process):
Don't need make-local-hook any more. (cvs-addto-collection): Return the new tin. (cvs-mode-insert): Jump to the new line.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/pcvs.el16
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bb1901c6cb8..31f9855b562 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12000-10-15 Stefan Monnier <monnier@cs.yale.edu> 12000-10-15 Stefan Monnier <monnier@cs.yale.edu>
2 2
3 * emacs-lisp/ewoc.el (ewoc-location): New function.
4 (ewoc-enter-after, ewoc-enter-before): Document return value.
5 * pcvs.el (cvs-make-cvs-buffer, cvs-run-process):
6 Don't need make-local-hook any more.
7 (cvs-addto-collection): Return the new tin.
8 (cvs-mode-insert): Jump to the new line.
9
3 * jit-lock.el (jit-lock-fontify-buffer): Remove. 10 * jit-lock.el (jit-lock-fontify-buffer): Remove.
4 11
5 * arc-mode.el (archive-zoo-summarize): Fix from gnu.emacs.bug. 12 * arc-mode.el (archive-zoo-summarize): Fix from gnu.emacs.bug.
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 1c776a5b154..ea83b883266 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -14,7 +14,7 @@
14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
15;; Keywords: CVS, version control, release management 15;; Keywords: CVS, version control, release management
16;; Version: $Name: $ 16;; Version: $Name: $
17;; Revision: $Id: pcvs.el,v 1.11 2000/10/05 22:45:59 monnier Exp $ 17;; Revision: $Id: pcvs.el,v 1.12 2000/10/08 19:11:34 monnier Exp $
18 18
19;; This file is part of GNU Emacs. 19;; This file is part of GNU Emacs.
20 20
@@ -440,7 +440,6 @@ Working dir: " (abbreviate-file-name dir) "
440 ;;(set (make-local-variable 'cvs-temp-buffer) (cvs-temp-buffer)) 440 ;;(set (make-local-variable 'cvs-temp-buffer) (cvs-temp-buffer))
441 (let ((cookies (ewoc-create 'cvs-fileinfo-pp "\n" ""))) 441 (let ((cookies (ewoc-create 'cvs-fileinfo-pp "\n" "")))
442 (set (make-local-variable 'cvs-cookies) cookies) 442 (set (make-local-variable 'cvs-cookies) cookies)
443 (make-local-hook 'kill-buffer-hook)
444 (add-hook 'kill-buffer-hook 443 (add-hook 'kill-buffer-hook
445 (lambda () 444 (lambda ()
446 (ignore-errors (kill-buffer cvs-temp-buffer))) 445 (ignore-errors (kill-buffer cvs-temp-buffer)))
@@ -506,7 +505,6 @@ Working dir: " (abbreviate-file-name dir) "
506 postprocess 505 postprocess
507 ;; else, we have to register ourselves to be rerun on the rest 506 ;; else, we have to register ourselves to be rerun on the rest
508 `(cvs-run-process ',args ',rest ',postprocess ',single-dir))) 507 `(cvs-run-process ',args ',rest ',postprocess ',single-dir)))
509 (make-local-hook 'kill-buffer-hook)
510 (add-hook 'kill-buffer-hook 508 (add-hook 'kill-buffer-hook
511 (lambda () 509 (lambda ()
512 (let ((proc (get-buffer-process (current-buffer)))) 510 (let ((proc (get-buffer-process (current-buffer))))
@@ -708,14 +706,14 @@ before calling the real function `" (symbol-name fun-1) "'.\n")
708;;; 706;;;
709 707
710(defun cvs-addto-collection (c fi &optional tin) 708(defun cvs-addto-collection (c fi &optional tin)
711 "Add FI to C and return a tin. 709 "Add FI to C and return FI's corresponding tin.
712FI is inserted in its proper place or maybe even merged with a preexisting 710FI is inserted in its proper place or maybe even merged with a preexisting
713 fileinfo if applicable. 711 fileinfo if applicable.
714TIN specifies an optional starting point." 712TIN specifies an optional starting point."
715 (unless tin (setq tin (ewoc-nth c 0))) 713 (unless tin (setq tin (ewoc-nth c 0)))
716 (while (and tin (cvs-fileinfo< fi (ewoc-data tin))) 714 (while (and tin (cvs-fileinfo< fi (ewoc-data tin)))
717 (setq tin (ewoc-prev c tin))) 715 (setq tin (ewoc-prev c tin)))
718 (if (null tin) (progn (ewoc-enter-first c fi) nil) ;empty collection 716 (if (null tin) (ewoc-enter-first c fi) ;empty collection
719 (assert (not (cvs-fileinfo< fi (ewoc-data tin)))) 717 (assert (not (cvs-fileinfo< fi (ewoc-data tin))))
720 (let ((next-tin (ewoc-next c tin))) 718 (let ((next-tin (ewoc-next c tin)))
721 (while (not (or (null next-tin) 719 (while (not (or (null next-tin)
@@ -726,8 +724,8 @@ TIN specifies an optional starting point."
726 (ewoc-enter-after c tin fi) 724 (ewoc-enter-after c tin fi)
727 ;; fi == tin 725 ;; fi == tin
728 (cvs-fileinfo-update (ewoc-data tin) fi) 726 (cvs-fileinfo-update (ewoc-data tin) fi)
729 (ewoc-invalidate c tin)) 727 (ewoc-invalidate c tin)
730 tin))) 728 tin))))
731 729
732(defcustom cvs-cleanup-functions nil 730(defcustom cvs-cleanup-functions nil
733 "Functions to tweak the cleanup process. 731 "Functions to tweak the cleanup process.
@@ -1339,7 +1337,9 @@ The POSTPROC specified there (typically `cvs-edit') is then called,
1339 (error nil))))) 1337 (error nil)))))
1340 (let ((file (file-relative-name (directory-file-name file))) last) 1338 (let ((file (file-relative-name (directory-file-name file))) last)
1341 (dolist (fi (cvs-fileinfo-from-entries file)) 1339 (dolist (fi (cvs-fileinfo-from-entries file))
1342 (setq last (cvs-addto-collection cvs-cookies fi last))))) 1340 (setq last (cvs-addto-collection cvs-cookies fi last)))
1341 ;; There should have been at least one entry.
1342 (goto-char (ewoc-location last))))
1343 1343
1344(defun-cvs-mode (cvs-mode-add . SIMPLE) (flags) 1344(defun-cvs-mode (cvs-mode-add . SIMPLE) (flags)
1345 "Add marked files to the cvs repository. 1345 "Add marked files to the cvs repository.