aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorChong Yidong2012-09-24 20:23:25 +0800
committerChong Yidong2012-09-24 20:23:25 +0800
commita5f2b6ec3b678103c81e14375dd1a8d4bda268d8 (patch)
treec2231256ed896e6bd2ec00f17a9717f72c317503 /lisp/vc
parent6c27f0f80c4d521dca7b75dcc52a143106561820 (diff)
downloademacs-a5f2b6ec3b678103c81e14375dd1a8d4bda268d8.tar.gz
emacs-a5f2b6ec3b678103c81e14375dd1a8d4bda268d8.zip
Remove several obsolete vars and functions unlikely to be still in use.
* lisp/vc/log-edit.el (cvs-changelog-full-paragraphs) (cvs-commit-buffer-require-final-newline): Obsolete variables removed. * lisp/font-lock.el (font-lock-reference-face): Use define-obsolete-variable-alias. * lisp/international/mule.el (set-char-table-default): Remove. (set-coding-priority, make-coding-system, generic-char-p) (charset-list, charset-bytes, charset-id): Use declare to mark obsolete. * lisp/mail/supercite.el (sc-version): Remove obsolete function. (sc-describe): Don't mark as obsolete, since it is bound. (sc-submit-bug-report): Remove. * lisp/progmodes/compile.el (compile-internal): Remove obsolete function. (compilation-parse-errors-function): Fix typo. * lisp/vc/emerge.el (emerge-mode): Make it an obsolete alias. (emerge-version): Remove. * lisp/vc/pcvs-defs.el (cvs-buffer-name-alist) (cvs-invert-ignore-marks): Remove references to obsolete vars. * lisp/vc/vc-hooks.el (vc-default-registered): Don't use vc-master-templates. * lisp/vc/pcvs-defs.el (cvs-diff-buffer-name, cvs-diff-ignore-marks) * lisp/vc/vc-hooks.el (vc-ignore-vc-files, vc-master-templates) * lisp/vc/vc.el (vc-checkout-carefully): Likewise. * src/chartab.c (Fset_char_table_default): Obsolete function removed.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/emerge.el12
-rw-r--r--lisp/vc/log-edit.el10
-rw-r--r--lisp/vc/pcvs-defs.el14
-rw-r--r--lisp/vc/vc-hooks.el23
-rw-r--r--lisp/vc/vc.el10
5 files changed, 3 insertions, 66 deletions
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el
index f6942bc538d..0a1bd044125 100644
--- a/lisp/vc/emerge.el
+++ b/lisp/vc/emerge.el
@@ -76,18 +76,6 @@ Commands:
76Commands must be prefixed by \\<emerge-fast-keymap>\\[emerge-basic-keymap] in `edit' mode, 76Commands must be prefixed by \\<emerge-fast-keymap>\\[emerge-basic-keymap] in `edit' mode,
77but can be invoked directly in `fast' mode.") 77but can be invoked directly in `fast' mode.")
78 78
79(define-obsolete-variable-alias 'emerge-version 'emacs-version "23.2")
80
81(defun emerge-version ()
82 "Return string describing the version of Emerge.
83When called interactively, displays the version."
84 (interactive)
85 (if (called-interactively-p 'interactive)
86 (message "Emerge version %s" emacs-version)
87 emacs-version))
88
89(make-obsolete 'emerge-version 'emacs-version "23.2")
90
91;;; Emerge configuration variables 79;;; Emerge configuration variables
92 80
93(defgroup emerge nil 81(defgroup emerge nil
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el
index 7ee000a8aea..3b4eb4dae02 100644
--- a/lisp/vc/log-edit.el
+++ b/lisp/vc/log-edit.el
@@ -104,11 +104,6 @@ If 'changed, only request confirmation if the list of files has
104 :group 'log-edit 104 :group 'log-edit
105 :type 'boolean) 105 :type 'boolean)
106 106
107(defvar cvs-commit-buffer-require-final-newline t)
108(make-obsolete-variable 'cvs-commit-buffer-require-final-newline
109 'log-edit-require-final-newline
110 "21.1")
111
112(defcustom log-edit-require-final-newline 107(defcustom log-edit-require-final-newline
113 cvs-commit-buffer-require-final-newline 108 cvs-commit-buffer-require-final-newline
114 "Enforce a newline at the end of commit log messages. 109 "Enforce a newline at the end of commit log messages.
@@ -154,11 +149,6 @@ can be obtained from `log-edit-files'."
154 :group 'log-edit 149 :group 'log-edit
155 :version "24.1") 150 :version "24.1")
156 151
157(defvar cvs-changelog-full-paragraphs t)
158(make-obsolete-variable 'cvs-changelog-full-paragraphs
159 'log-edit-changelog-full-paragraphs
160 "21.1")
161
162(defvar log-edit-changelog-full-paragraphs cvs-changelog-full-paragraphs 152(defvar log-edit-changelog-full-paragraphs cvs-changelog-full-paragraphs
163 "If non-nil, include full ChangeLog paragraphs in the log. 153 "If non-nil, include full ChangeLog paragraphs in the log.
164This may be set in the ``local variables'' section of a ChangeLog, to 154This may be set in the ``local variables'' section of a ChangeLog, to
diff --git a/lisp/vc/pcvs-defs.el b/lisp/vc/pcvs-defs.el
index fc65d62c67d..b3c1f8c1343 100644
--- a/lisp/vc/pcvs-defs.el
+++ b/lisp/vc/pcvs-defs.el
@@ -133,14 +133,9 @@ current line. See also `cvs-invert-ignore-marks'"
133 :group 'pcl-cvs 133 :group 'pcl-cvs
134 :type '(boolean)) 134 :type '(boolean))
135 135
136(defvar cvs-diff-ignore-marks t)
137(make-obsolete-variable 'cvs-diff-ignore-marks
138 'cvs-invert-ignore-marks
139 "21.1")
140
141(defcustom cvs-invert-ignore-marks 136(defcustom cvs-invert-ignore-marks
142 (let ((l ())) 137 (let ((l ()))
143 (unless (equal cvs-diff-ignore-marks cvs-default-ignore-marks) 138 (unless (equal cvs-default-ignore-marks t)
144 (push "diff" l)) 139 (push "diff" l))
145 (when (and cvs-force-dir-tag (not cvs-default-ignore-marks)) 140 (when (and cvs-force-dir-tag (not cvs-default-ignore-marks))
146 (push "tag" l)) 141 (push "tag" l))
@@ -171,11 +166,6 @@ If set to nil, `cvs-mode-add' will always prompt for a message."
171 :type '(choice (const :tag "Prompt" nil) 166 :type '(choice (const :tag "Prompt" nil)
172 (string))) 167 (string)))
173 168
174(defvar cvs-diff-buffer-name "*cvs-diff*")
175(make-obsolete-variable 'cvs-diff-buffer-name
176 'cvs-buffer-name-alist
177 "21.1")
178
179(defcustom cvs-find-file-and-jump nil 169(defcustom cvs-find-file-and-jump nil
180 "Jump to the modified area when finding a file. 170 "Jump to the modified area when finding a file.
181If non-nil, `cvs-mode-find-file' will place the cursor at the beginning of 171If non-nil, `cvs-mode-find-file' will place the cursor at the beginning of
@@ -185,7 +175,7 @@ have no effect."
185 :type '(boolean)) 175 :type '(boolean))
186 176
187(defcustom cvs-buffer-name-alist 177(defcustom cvs-buffer-name-alist
188 '(("diff" cvs-diff-buffer-name diff-mode) 178 '(("diff" "*cvs-diff*" diff-mode)
189 ("status" "*cvs-info*" cvs-status-mode) 179 ("status" "*cvs-info*" cvs-status-mode)
190 ("tree" "*cvs-info*" cvs-status-mode) 180 ("tree" "*cvs-info*" cvs-status-mode)
191 ("message" "*cvs-commit*" nil log-edit) 181 ("message" "*cvs-commit*" nil log-edit)
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 54c33769267..cac3eb559a1 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -34,18 +34,6 @@
34 34
35;; Customization Variables (the rest is in vc.el) 35;; Customization Variables (the rest is in vc.el)
36 36
37(defvar vc-ignore-vc-files nil)
38(make-obsolete-variable 'vc-ignore-vc-files
39 "set `vc-handled-backends' to nil to disable VC."
40 "21.1")
41
42(defvar vc-master-templates ())
43(make-obsolete-variable 'vc-master-templates
44 "to define master templates for a given BACKEND, use
45vc-BACKEND-master-templates. To enable or disable VC for a given
46BACKEND, use `vc-handled-backends'."
47 "21.1")
48
49(defcustom vc-ignore-dir-regexp 37(defcustom vc-ignore-dir-regexp
50 ;; Stop SMB, automounter, AFS, and DFS host lookups. 38 ;; Stop SMB, automounter, AFS, and DFS host lookups.
51 locate-dominating-stop-dir-regexp 39 locate-dominating-stop-dir-regexp
@@ -586,16 +574,7 @@ If FILE is not registered, this function always returns nil."
586 "Check if FILE is registered in BACKEND using vc-BACKEND-master-templates." 574 "Check if FILE is registered in BACKEND using vc-BACKEND-master-templates."
587 (let ((sym (vc-make-backend-sym backend 'master-templates))) 575 (let ((sym (vc-make-backend-sym backend 'master-templates)))
588 (unless (get backend 'vc-templates-grabbed) 576 (unless (get backend 'vc-templates-grabbed)
589 (put backend 'vc-templates-grabbed t) 577 (put backend 'vc-templates-grabbed t))
590 (set sym (append (delq nil
591 (mapcar
592 (lambda (template)
593 (and (consp template)
594 (eq (cdr template) backend)
595 (car template)))
596 (with-no-warnings
597 vc-master-templates)))
598 (symbol-value sym))))
599 (let ((result (vc-check-master-templates file (symbol-value sym)))) 578 (let ((result (vc-check-master-templates file (symbol-value sym))))
600 (if (stringp result) 579 (if (stringp result)
601 (vc-file-setprop file 'vc-name result) 580 (vc-file-setprop file 'vc-name result)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 47800bd4aac..3657e221e6a 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -808,16 +808,6 @@ is sensitive to blank lines."
808 (string :tag "Comment End"))) 808 (string :tag "Comment End")))
809 :group 'vc) 809 :group 'vc)
810 810
811(defcustom vc-checkout-carefully (= (user-uid) 0)
812 "Non-nil means be extra-careful in checkout.
813Verify that the file really is not locked
814and that its contents match what the repository version says."
815 :type 'boolean
816 :group 'vc)
817(make-obsolete-variable 'vc-checkout-carefully
818 "the corresponding checks are always done now."
819 "21.1")
820
821 811
822;; Variables users don't need to see 812;; Variables users don't need to see
823 813