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/progmodes/cc-styles.el | |
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/progmodes/cc-styles.el')
-rw-r--r-- | lisp/progmodes/cc-styles.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el index 48120563b29..15d44f6538a 100644 --- a/lisp/progmodes/cc-styles.el +++ b/lisp/progmodes/cc-styles.el @@ -50,7 +50,6 @@ ;; Silence the compiler. (cc-bytecomp-defvar adaptive-fill-first-line-regexp) ; Emacs -(cc-bytecomp-obsolete-fun make-local-hook) ; Marked obsolete in Emacs 21.1. (defvar c-style-alist @@ -649,7 +648,7 @@ any reason to call this function directly." (mapc func varsyms) ;; Hooks must be handled specially (if this-buf-only-p - (make-local-hook 'c-special-indent-hook) + (if (featurep 'xemacs) (make-local-hook 'c-special-indent-hook)) (with-no-warnings (make-variable-buffer-local 'c-special-indent-hook)) (setq c-style-variables-are-local-p t)) )) |