Package: lsdb
Version: 0.11-10+amu1
Severity: important
Tags: upstream patch

lsdb.el contains two calls to make-local-hook, which GNU Emacs
deprecated years ago (in version 21) and has retired altogether as of
version 24.  Could you please conditionalize them on XEmacs, per the
attached patch?

Thanks!

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lsdb depends on:
ii  emacs [emacsen]            23.4+1-3
ii  emacs23 [emacsen]          23.4+1-3
ii  emacs24 [emacsen]          24.1+1-1
ii  flim                       1:1.14.9+0.20110516-1
ii  xemacs21-mule [emacsen]    21.4.22-3.2+b1
ii  xemacs21-nomule [emacsen]  21.4.22-3.2+b1

lsdb recommends no packages.

Versions of packages lsdb suggests:
pn  gnus | wl-beta | wl | t-gnus | mew | mew-beta  <none>
ii  mu-cite                                        8.1+0.20120227-1

-- no debconf information
--- 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

Reply via email to