1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00

(cperl-mode): Remove unnecessary call to obsolete function

make-local-hook.
This commit is contained in:
Glenn Morris 2007-04-10 04:05:00 +00:00
parent 51fc848bd5
commit 39234e3973
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,9 @@
* dframe.el (dframe-frame-mode): Do not set auto-show-mode, since
it is obsolete and has no effect.
* dos-w32.el (default-buffer-file-type): Add defvar to quieten
byte-compiler.
* progmodes/cperl-mode.el (cperl-mode): Remove unnecessary call to
obsolete function make-local-hook.

View File

@ -1871,9 +1871,7 @@ or as help on variables `cperl-tips', `cperl-problems',
(easy-menu-add cperl-menu)) ; A NOP in Emacs.
(run-mode-hooks 'cperl-mode-hook)
(if cperl-hook-after-change
(progn
(make-local-hook 'after-change-functions)
(add-hook 'after-change-functions 'cperl-after-change-function nil t)))
(add-hook 'after-change-functions 'cperl-after-change-function nil t))
;; After hooks since fontification will break this
(if cperl-pod-here-scan
(or cperl-syntaxify-by-font-lock