]> git.eshelyaron.com Git - emacs.git/commitdiff
Replace some obsolete aliases in code
authorGlenn Morris <rgm@gnu.org>
Wed, 7 Mar 2018 01:16:52 +0000 (20:16 -0500)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:14:00 +0000 (14:14 +0800)
* 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.

lisp/emulation/viper.el
lisp/epa-hook.el
lisp/net/quickurl.el
lisp/term/pc-win.el

index 13a88ad11fac3c350ba32445b1e0d9c633cdd472..c8eca30e88b0906d71845f0ddcdea8f322334fa1 100644 (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)
index d99a3ef51a952c903e224c7547347fcdc7f71377..135c956c3f4f3ae164ec6b555bc11aff6f271c9b 100644 (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
index 5321807cd6cbc3a7a3c34db13a1236cac95d4f24..abfca383e09da77b57c85083832308c809ceb7b4 100644 (file)
   :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)
 
index 9c1b471d484005e469b0beb317d38d320bf742cb..e0e412e1626bb383bc1025f7fdbf77f7ec641738 100644 (file)
@@ -272,7 +272,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.