Package: emacs-goodies-el
Version: 35.2+nmu1
Severity: normal
Tags: upstream patch

egocentric.el (part of emacs-goodies-el) will not operate with my
installation of GNU Emacs.  It appears that make-local-hook is
obsolete, and has now been removed completely from emacs24.

(My emacs is: GNU Emacs 24.2.1 (i486-pc-linux-gnu, GTK+ Version
2.24.10) of 2012-09-10 on biber, modified by Debian)

Here is the offending code:

  (defun egocentric-mode-on ()
    "Turn Egocentric mode on."
    (interactive)
    (make-local-hook 'post-command-hook)      ; <-------- ERROR HERE ---
    (add-hook 'post-command-hook (function egocentric-post-command-hook) t t)
    (egocentric-update-regexp-list)
    (egocentric-insinuate egocentric-regexp-list)
    (run-hooks 'egocentric-mode-hook))

I would propose this:

  (defun egocentric-mode-on ()
    "Turn Egocentric mode on."
    (interactive)
    (if (featurep 'xemacs)
        (make-local-hook 'post-command-hook))
    (add-hook 'post-command-hook (function egocentric-post-command-hook) t t)
    (egocentric-update-regexp-list)
    (egocentric-insinuate egocentric-regexp-list)
    (run-hooks 'egocentric-mode-hook))


Please note I have no familiarity with XEmacs, so my proposed patch is
at best an educated guess.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

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

Versions of packages emacs-goodies-el depends on:
ii  bash               4.2-5
ii  dpkg               1.16.9
ii  emacs24 [emacsen]  24.2+1-1
ii  install-info       4.13a.dfsg.1-10

Versions of packages emacs-goodies-el recommends:
ii  dict      1.12.0+dfsg-5
ii  perl-doc  5.14.2-14
ii  wget      1.14-1

emacs-goodies-el suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to