From 8b77fa05fa028bf78e4778cd58009a04d13d26bc Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 1 Dec 2010 15:08:03 +0100 Subject: [PATCH] elisp/lilypond-mode.el: Emacs obsoleted `make-local-hook' eons ago By now, it no longer exists, so use it only for XEmacs. --- elisp/lilypond-mode.el | 5 +++-- 1 file 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 -- 2.39.2