1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

* lisp/subr.el (make-local-hook): Remove function obsolete since 21.1.

* lisp/progmodes/cc-mode.el (make-local-hook): Don't do cc-bytecomp stuff.
(c-basic-common-init, c-font-lock-init): Only call make-local-hook on
XEmacs.
* lisp/progmodes/cc-styles.el (make-local-hook): Don't do cc-bytecomp stuff.
(c-make-styles-buffer-local): Only call make-local-hook on XEmacs.

* lisp/gnu/gnus-util.el (gnus-make-local-hook): Simplify.

* etc/NEWS: Mention above change.
This commit is contained in:
Glenn Morris 2010-10-02 18:53:04 -07:00
parent ef47f179dc
commit 922ad43e81
7 changed files with 22 additions and 44 deletions

View file

@ -149,11 +149,9 @@ This is a compatibility function for different Emacsen."
;; XEmacs. In Emacs we don't need to call `make-local-hook' first.
;; It's harmless, though, so the main purpose of this alias is to shut
;; up the byte compiler.
(defalias 'gnus-make-local-hook
(if (eq (get 'make-local-hook 'byte-compile)
'byte-compile-obsolete)
'ignore ; Emacs
'make-local-hook)) ; XEmacs
(defalias 'gnus-make-local-hook (if (featurep 'xemacs)
'make-local-hook
'ignore)
(defun gnus-delete-first (elt list)
"Delete by side effect the first occurrence of ELT as a member of LIST."