# HG changeset patch # User Glenn Morris # Date 1228290304 0 # Node ID e518f14b0bdaf5d291bc14481ca07209ca89a513 # Parent c9d564389052f901d2a5175e1e79d4dbd1975440 (vc-diff-switches): Doc fix. diff -r c9d564389052 -r e518f14b0bda lisp/ChangeLog --- a/lisp/ChangeLog Wed Dec 03 07:43:33 2008 +0000 +++ b/lisp/ChangeLog Wed Dec 03 07:45:04 2008 +0000 @@ -1,3 +1,25 @@ +2008-12-03 Glenn Morris + + * vc.el (vc-diff-switches): Doc fix. + * vc-bzr.el (vc-bzr-diff-switches): Doc fix. Add t as option. + (vc-bzr-log-switches): Doc fix. + * vc-cvs.el (vc-cvs-diff-switches): Doc fix. Add t as option. + * vc-git.el (vc-git-diff-switches): Doc fix. + * vc-hg.el (vc-hg-diff-switches): Doc fix. + * vc-mcvs.el (vc-mcvs-diff-switches): Doc fix. + * vc-mtn.el (vc-mtn-diff-switches): Doc fix. + * vc-rcs.el (vc-rcs-diff-switches): Doc fix. Add t as option. + * vc-sccs.el (vc-sccs-diff-switches): Doc fix. Add t as option. + + * vc-arch.el (vc-arch-diff-switches): New option, for consistency with + other backends. + (vc-arch-diff): Apply switches. + + * vc-cvs.el (vc-cvs-diff): Use vc-diff-switches or diff-switches rather + than appending. + + * vc-sccs.el (vc-sccs-register-switches): Remove leading * from doc. + 2008-12-03 Daiki Ueno * epa.el (epa--show-key): Use past tense of "expire" if the key diff -r c9d564389052 -r e518f14b0bda lisp/vc.el --- a/lisp/vc.el Wed Dec 03 07:43:33 2008 +0000 +++ b/lisp/vc.el Wed Dec 03 07:45:04 2008 +0000 @@ -697,16 +697,17 @@ (defcustom vc-diff-switches nil "A string or list of strings specifying switches for diff under VC. -When running diff under a given BACKEND, VC concatenates the values of -`diff-switches', `vc-diff-switches', and `vc-BACKEND-diff-switches' to -get the switches for that command. Thus, `vc-diff-switches' should -contain switches that are specific to version control, but not -specific to any particular backend." - :type '(choice (const :tag "None" nil) +When running diff under a given BACKEND, VC uses the first +non-nil value of `vc-BACKEND-diff-switches', `vc-diff-switches', +and `diff-switches', in that order. Since nil means to check the +next variable in the sequence, either of the first two may use +the value t to mean no switches at all. `vc-diff-switches' +should contain switches that are specific to version control, but +not specific to any particular backend." + :type '(choice (const :tag "Unspecified" nil) + (const :tag "None" t) (string :tag "Argument String") - (repeat :tag "Argument List" - :value ("") - string)) + (repeat :tag "Argument List" :value ("") string)) :group 'vc :version "21.1")