1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Replace some obsolete aliases in code

* lisp/emulation/viper.el (viper-set-hooks):
* lisp/epa-hook.el (auto-encryption-mode):
* lisp/term/pc-win.el (set-frame-font): Replace obsolete aliases.
* lisp/net/quickurl.el (quickurl--assoc-function): New.
(quickurl-assoc-function): Use it.
This commit is contained in:
Glenn Morris 2018-03-06 20:16:52 -05:00
parent 19afff31c9
commit 501808ce69
4 changed files with 9 additions and 4 deletions

View File

@ -902,7 +902,7 @@ Two differences:
(viper-setup-ESC-to-escape t)
(add-hook 'change-major-mode-hook #'viper-major-mode-change-sentinel)
(add-hook 'find-file-hooks #'set-viper-state-in-major-mode)
(add-hook 'find-file-hook #'set-viper-state-in-major-mode)
;; keep this because many modes we don't know about use this hook
(defvar text-mode-hook)

View File

@ -95,7 +95,7 @@ the mode if ARG is omitted or nil."
:initialize 'custom-initialize-delay
(setq file-name-handler-alist
(delq epa-file-handler file-name-handler-alist))
(remove-hook 'find-file-hooks 'epa-file-find-file-hook)
(remove-hook 'find-file-hook 'epa-file-find-file-hook)
(setq auto-mode-alist (delq epa-file-auto-mode-alist-entry
auto-mode-alist))
(when auto-encryption-mode

View File

@ -116,8 +116,13 @@
:type 'function
:group 'quickurl)
(defcustom quickurl-assoc-function #'assoc-ignore-case
(defun quickurl--assoc-function (key alist)
"Default function for `quickurl-assoc-function'."
(assoc-string key alist t))
(defcustom quickurl-assoc-function #'quickurl--assoc-function
"Function to use for alist lookup into `quickurl-urls'."
:version "26.1" ; was the obsolete assoc-ignore-case
:type 'function
:group 'quickurl)

View File

@ -372,7 +372,7 @@ Consult the selection. Treat empty strings as if they were unset."
(fset 'iconify-or-deiconify-frame 'ignore)
;; From lisp/frame.el
(fset 'set-default-font 'ignore)
(fset 'set-frame-font 'ignore)
(fset 'set-mouse-color 'ignore) ; We cannot, I think.
(fset 'set-cursor-color 'ignore) ; Hardware determined by char under.
(fset 'set-border-color 'ignore) ; Not useful.