[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Elisp: don't call `make-local-hook' unconditionally.
From: |
stepnem |
Subject: |
[PATCH] Elisp: don't call `make-local-hook' unconditionally. |
Date: |
Sun, 10 Oct 2010 12:25:09 +0200 |
From: Štěpán Němec <address@hidden>
The function has been obsoleted for a long time, and recently removed
from the development version of GNU Emacs. Wrapping it in an `fboundp'
test solves the problem.
---
elisp/lilypond-mode.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/elisp/lilypond-mode.el b/elisp/lilypond-mode.el
index f014d1c..afa3265 100644
--- a/elisp/lilypond-mode.el
+++ b/elisp/lilypond-mode.el
@@ -1159,7 +1159,8 @@ (defun LilyPond-mode ()
(setq mark-even-if-inactive t))
;; Context dependent syntax tables in LilyPond-mode
- (make-local-hook 'post-command-hook) ; XEmacs requires
+ (when (fboundp 'make-local-hook)
+ (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
--
1.7.3.rc2.221.gbf93f.dirty
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Elisp: don't call `make-local-hook' unconditionally.,
stepnem <=