From: David Kastrup Date: Wed, 1 Dec 2010 14:08:03 +0000 (+0100) Subject: elisp/lilypond-mode.el: Emacs obsoleted `make-local-hook' eons ago X-Git-Tag: release/2.13.41-1~1^2~10 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=8b77fa05fa028bf78e4778cd58009a04d13d26bc elisp/lilypond-mode.el: Emacs obsoleted `make-local-hook' eons ago By now, it no longer exists, so use it only for XEmacs. --- 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