From: Glenn Morris Date: Wed, 11 Sep 2013 18:31:45 +0000 (-0400) Subject: * lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1662^2~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d3506ca5a0a4deca042d9cf91e5cbba083675220;p=emacs.git * lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec. Check cvs-sort-ignore-file is bound. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c7e08e40480..cf1fa06aee8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2013-09-11 Glenn Morris + * vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec. + Check cvs-sort-ignore-file is bound. + * savehist.el: No need for cl when compiling on Emacs. 2013-09-11 Stefan Monnier diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 931193c46e0..75b54450926 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el @@ -1226,7 +1226,7 @@ is non-nil." table (lambda () (vc-cvs-revision-table (car files)))))) table)) -(defun vc-cvs-ignore (file) +(defun vc-cvs-ignore (file &optional _directory _remove) "Ignore FILE under CVS." (cvs-append-to-ignore (file-name-directory file) file)) @@ -1245,7 +1245,9 @@ to hear about anymore." (goto-char (point-max)) (unless (bolp) (insert "\n")) (insert str (if old-dir "/\n" "\n")) - (if cvs-sort-ignore-file (sort-lines nil (point-min) (point-max))) + ;; FIXME this is a pcvs variable. + (if (bound-and-true-p cvs-sort-ignore-file) + (sort-lines nil (point-min) (point-max))) (save-buffer))) (provide 'vc-cvs)