summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2010-12-01 15:08:03 +0100
committerDavid Kastrup <dak@gnu.org>2010-12-01 15:08:03 +0100
commit8b77fa05fa028bf78e4778cd58009a04d13d26bc (patch)
treec845ce52cc302110f99f9025af189cae0c7213a0 /elisp
parentbbd36fb0cb6b2d8249cbe628470c736747c330d0 (diff)
elisp/lilypond-mode.el: Emacs obsoleted `make-local-hook' eons ago
By now, it no longer exists, so use it only for XEmacs.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/lilypond-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/lilypond-mode.el b/elisp/lilypond-mode.el
index f014d1ca8b..b460c4a62b 100644
--- a/elisp/lilypond-mode.el
+++ b/elisp/lilypond-mode.el
@@ -1155,11 +1155,12 @@ LilyPond-command-alist\t\talist from name to command"
;; Use Command on Region even for inactive mark (region).
(if (string-match "XEmacs\\|Lucid" emacs-version)
- (setq zmacs-regions nil)
+ (progn
+ (setq zmacs-regions nil)
+ (make-local-hook 'post-command-hook)) ; XEmacs requires
(setq mark-even-if-inactive t))
;; Context dependent syntax tables in LilyPond-mode
- (make-local-hook 'post-command-hook) ; XEmacs requires
(add-hook 'post-command-hook 'LilyPond-mode-context-set-syntax-table nil t)
;; Turn on paren-mode buffer-locally, i.e., in LilyPond-mode