Package: lsdb / 0.11-10.1

lsdb-make-local-hook.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Subject: Conditionalize make-local-hook on XEmacs
Author: "Aaron M. Ucko" <ucko@debian.org>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680029

--- lsdb-0.11.orig/lsdb.el
+++ lsdb-0.11/lsdb.el
@@ -867,7 +867,8 @@
   (autoload 'migemo-get-pattern "migemo"))
 
 (defun lsdb-complete-name-highlight (start end)
-  (make-local-hook 'pre-command-hook)
+  (if (featurep 'xemacs)
+      (make-local-hook 'pre-command-hook))
   (add-hook 'pre-command-hook 'lsdb-complete-name-highlight-update nil t)
   (save-excursion
     (goto-char start)
@@ -1048,7 +1049,8 @@
       (font-lock-set-defaults)
     (set (make-local-variable 'font-lock-defaults)
 	 '(lsdb-font-lock-keywords t)))
-  (make-local-hook 'post-command-hook)
+  (if (featurep 'xemacs)
+      (make-local-hook 'post-command-hook))
   (add-hook 'post-command-hook 'lsdb-modeline-update nil t)
   (make-local-variable 'lsdb-modeline-string)
   (setq mode-line-buffer-identification