aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2018-03-06 20:16:52 -0500
committerGlenn Morris2018-03-06 20:16:52 -0500
commit501808ce690c93eac7df4b8f467ed940528d9229 (patch)
tree40e9df86131b9d81757a5505b5cdef2f86c6397b /lisp
parent19afff31c9340ba5c35504064fb0fadcc8a86aff (diff)
downloademacs-501808ce690c93eac7df4b8f467ed940528d9229.tar.gz
emacs-501808ce690c93eac7df4b8f467ed940528d9229.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emulation/viper.el2
-rw-r--r--lisp/epa-hook.el2
-rw-r--r--lisp/net/quickurl.el7
-rw-r--r--lisp/term/pc-win.el2
4 files changed, 9 insertions, 4 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index 13a88ad11fa..c8eca30e88b 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -902,7 +902,7 @@ Two differences:
902 (viper-setup-ESC-to-escape t) 902 (viper-setup-ESC-to-escape t)
903 903
904 (add-hook 'change-major-mode-hook #'viper-major-mode-change-sentinel) 904 (add-hook 'change-major-mode-hook #'viper-major-mode-change-sentinel)
905 (add-hook 'find-file-hooks #'set-viper-state-in-major-mode) 905 (add-hook 'find-file-hook #'set-viper-state-in-major-mode)
906 906
907 ;; keep this because many modes we don't know about use this hook 907 ;; keep this because many modes we don't know about use this hook
908 (defvar text-mode-hook) 908 (defvar text-mode-hook)
diff --git a/lisp/epa-hook.el b/lisp/epa-hook.el
index d99a3ef51a9..135c956c3f4 100644
--- a/lisp/epa-hook.el
+++ b/lisp/epa-hook.el
@@ -95,7 +95,7 @@ the mode if ARG is omitted or nil."
95 :initialize 'custom-initialize-delay 95 :initialize 'custom-initialize-delay
96 (setq file-name-handler-alist 96 (setq file-name-handler-alist
97 (delq epa-file-handler file-name-handler-alist)) 97 (delq epa-file-handler file-name-handler-alist))
98 (remove-hook 'find-file-hooks 'epa-file-find-file-hook) 98 (remove-hook 'find-file-hook 'epa-file-find-file-hook)
99 (setq auto-mode-alist (delq epa-file-auto-mode-alist-entry 99 (setq auto-mode-alist (delq epa-file-auto-mode-alist-entry
100 auto-mode-alist)) 100 auto-mode-alist))
101 (when auto-encryption-mode 101 (when auto-encryption-mode
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el
index 5321807cd6c..abfca383e09 100644
--- a/lisp/net/quickurl.el
+++ b/lisp/net/quickurl.el
@@ -116,8 +116,13 @@
116 :type 'function 116 :type 'function
117 :group 'quickurl) 117 :group 'quickurl)
118 118
119(defcustom quickurl-assoc-function #'assoc-ignore-case 119(defun quickurl--assoc-function (key alist)
120 "Default function for `quickurl-assoc-function'."
121 (assoc-string key alist t))
122
123(defcustom quickurl-assoc-function #'quickurl--assoc-function
120 "Function to use for alist lookup into `quickurl-urls'." 124 "Function to use for alist lookup into `quickurl-urls'."
125 :version "26.1" ; was the obsolete assoc-ignore-case
121 :type 'function 126 :type 'function
122 :group 'quickurl) 127 :group 'quickurl)
123 128
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el
index 83f5923ad59..62734d9cfe4 100644
--- a/lisp/term/pc-win.el
+++ b/lisp/term/pc-win.el
@@ -372,7 +372,7 @@ Consult the selection. Treat empty strings as if they were unset."
372(fset 'iconify-or-deiconify-frame 'ignore) 372(fset 'iconify-or-deiconify-frame 'ignore)
373 373
374;; From lisp/frame.el 374;; From lisp/frame.el
375(fset 'set-default-font 'ignore) 375(fset 'set-frame-font 'ignore)
376(fset 'set-mouse-color 'ignore) ; We cannot, I think. 376(fset 'set-mouse-color 'ignore) ; We cannot, I think.
377(fset 'set-cursor-color 'ignore) ; Hardware determined by char under. 377(fset 'set-cursor-color 'ignore) ; Hardware determined by char under.
378(fset 'set-border-color 'ignore) ; Not useful. 378(fset 'set-border-color 'ignore) ; Not useful.