]> git.donarmstrong.com Git - lilypond.git/commitdiff
elisp/lilypond-mode.el: Emacs obsoleted `make-local-hook' eons ago
authorDavid Kastrup <dak@gnu.org>
Wed, 1 Dec 2010 14:08:03 +0000 (15:08 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 1 Dec 2010 14:08:03 +0000 (15:08 +0100)
By now, it no longer exists, so use it only for XEmacs.

elisp/lilypond-mode.el

index f014d1ca8bab7f89b5f8f8cc8b01777fd4072b57..b460c4a62bca370598c2728e28db0512b1b989ca 100644 (file)
@@ -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