diff options
| author | Glenn Morris <rgm@gnu.org> | 2010-10-02 18:53:04 -0700 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2010-10-02 18:53:04 -0700 |
| commit | 922ad43e819f6ec964ece3e8caa25be1bd8bac53 (patch) | |
| tree | 92dba85a2a3cef6de12294e4f4202d192195e251 /lisp/gnus | |
| parent | ef47f179dc29110301c38699eb0fdcf9a9539a75 (diff) | |
| download | emacs-922ad43e819f6ec964ece3e8caa25be1bd8bac53.tar.gz | |
* 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.
Diffstat (limited to 'lisp/gnus')
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8d227906aca..3a8f3dac83c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,7 @@ +2010-10-03 Glenn Morris <rgm@gnu.org> + + * gnus-util.el (gnus-make-local-hook): Simplify. + 2010-10-02 Julien Danjou <julien@danjou.info> * gnus-util.el (gnus-iswitchb-completing-read): New function. diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 0bf5b66a71d..8a6d9241f07 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -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." |
