1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-17 11:20:39 -08:00

Delete some compat code for very old Emacs versions

* lisp/apropos.el (apropos-local-value):
* lisp/ido.el (ido-buffer-internal):
* lisp/leim/quail/ipa.el (ipa-x-sampa-prepend-to-keymap-entry):
* lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
* lisp/speedbar.el (speedbar-create-tag-hierarchy): Delete compat code
for very old versions of Emacs.
* lisp/gnus/nnmail.el (nnmail-fancy-expiry-target): Avoid using
obsolete name.
This commit is contained in:
Stefan Kangas 2022-05-14 22:33:07 +02:00
parent b65a905edf
commit b5621dbe2f
6 changed files with 6 additions and 12 deletions

View file

@ -874,7 +874,7 @@ Optional arg BUFFER (default: current buffer) is the buffer to check."
apropos-all-words apropos-accumulator)) apropos-all-words apropos-accumulator))
(setq var (apropos-value-internal #'local-variable-if-set-p symb (setq var (apropos-value-internal #'local-variable-if-set-p symb
#'symbol-value))) #'symbol-value)))
(when (and (fboundp 'apropos-false-hit-str) (apropos-false-hit-str var)) (when (apropos-false-hit-str var)
(setq var nil)) (setq var nil))
(when var (when var
(setq apropos-accumulator (cons (list symb (apropos-score-str var) nil var) (setq apropos-accumulator (cons (list symb (apropos-score-str var) nil var)

View file

@ -1937,9 +1937,7 @@ If TIME is nil, then return the cutoff time for oldness instead."
(and (string-match (cadr regexp-target-pair) to) (and (string-match (cadr regexp-target-pair) to)
(let ((mail-dont-reply-to-names (let ((mail-dont-reply-to-names
(message-dont-reply-to-names))) (message-dont-reply-to-names)))
(equal (if (fboundp 'rmail-dont-reply-to) (equal (mail-dont-reply-to from) "")))))
(rmail-dont-reply-to from)
(mail-dont-reply-to from)) "")))))
(setq target (format-time-string (caddr regexp-target-pair) date))) (setq target (format-time-string (caddr regexp-target-pair) date)))
((and (not (equal header 'to-from)) ((and (not (equal header 'to-from))
(string-match (cadr regexp-target-pair) (string-match (cadr regexp-target-pair)

View file

@ -2238,8 +2238,7 @@ If cursor is not at the end of the user input, move to end of input."
(t (t
(add-to-history 'buffer-name-history buf) (add-to-history 'buffer-name-history buf)
(setq buf (get-buffer-create buf)) (setq buf (get-buffer-create buf))
(if (fboundp 'set-buffer-major-mode) (set-buffer-major-mode buf)
(set-buffer-major-mode buf))
(ido-visit-buffer buf method t)))))) (ido-visit-buffer buf method t))))))
(defun ido-record-work-directory (&optional dir) (defun ido-record-work-directory (&optional dir)

View file

@ -269,7 +269,7 @@ QUAIL-KEYMAP is a cons that satisfies `quail-map-p'; TO-PREPEND is a
string." string."
(when (consp quail-keymap) (setq quail-keymap (cdr quail-keymap))) (when (consp quail-keymap) (setq quail-keymap (cdr quail-keymap)))
(if (or (integerp quail-keymap) (if (or (integerp quail-keymap)
(and (fboundp 'characterp) (characterp quail-keymap))) (characterp quail-keymap))
(setq quail-keymap (list (string quail-keymap))) (setq quail-keymap (list (string quail-keymap)))
(if (stringp quail-keymap) (if (stringp quail-keymap)
(setq quail-keymap (list quail-keymap)) (setq quail-keymap (list quail-keymap))

View file

@ -1064,8 +1064,7 @@ Return the modified list with the last element prepended to it."
;; then create a new buffer ;; then create a new buffer
(progn (progn
(setq newbufcreated (get-buffer-create buf)) (setq newbufcreated (get-buffer-create buf))
(if (fboundp 'set-buffer-major-mode) (set-buffer-major-mode newbufcreated)
(set-buffer-major-mode newbufcreated))
(iswitchb-visit-buffer newbufcreated)) (iswitchb-visit-buffer newbufcreated))
;; else won't create new buffer ;; else won't create new buffer
(message "no buffer matching `%s'" buf)))) (message "no buffer matching `%s'" buf))))

View file

@ -2276,9 +2276,7 @@ the list."
(with-current-buffer (get-file-buffer f) (with-current-buffer (get-file-buffer f)
speedbar-tag-hierarchy-method) speedbar-tag-hierarchy-method)
speedbar-tag-hierarchy-method)) speedbar-tag-hierarchy-method))
(lst (if (fboundp 'copy-tree) (lst (copy-tree lst)))
(copy-tree lst)
lst)))
(while methods (while methods
(setq lst (funcall (car methods) lst) (setq lst (funcall (car methods) lst)
methods (cdr methods))) methods (cdr methods)))