Package: emacs-goodies-el
Version: 24.15-1
Severity: normal
Tags: patch

The key binding for wdired-change-to-wdired-mode ("r" in Dired) is
never defined in emacs-snapshot, even if "wdired-enable" is customized
to "on".  The reason is an incompatible Lisp change in Emacs 22 in the
lookup-key function.  Now (lookup-key KEYMAP KEY) returns nil if KEY
is not defined in KEYMAP, while in Emacs 21 it returned undefined.

The following patch takes care of the problem:

----------------------------------------<-8-------------
diff -u /usr/share/emacs/site-lisp/emacs-goodies-el/emacs-goodies-el.el 
/home/sven/elisp/emacs-goodies-el.el
--- /usr/share/emacs/site-lisp/emacs-goodies-el/emacs-goodies-el.el     
2005-09-22 01:19:06.000000000 +0200
+++ /home/sven/elisp/emacs-goodies-el.el        2005-09-23 17:17:27.000000000 
+0200
@@ -250,9 +250,10 @@
   :set (lambda (symbol value)
          (set-default symbol value)
          (cond
-          (value
+          (value
            (require 'dired)
-           (if (equal 'undefined (lookup-key dired-mode-map "r"))
+           (if (or (equal 'nil (lookup-key dired-mode-map "r"))
+                   (equal 'undefined (lookup-key dired-mode-map "r")))
                (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode))
            ;; emacs-snapshot, v22,  already has a menu entry
            (if (and (< emacs-major-version 22)
----------------------------------------<-8-------------

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (3, 'testing'), (2, 
'unstable'), (1, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.31
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages emacs-goodies-el depends on:
ii  bash                   3.0-16            The GNU Bourne Again SHell
ii  emacs-snapshot [emacse 1:20050922-1      The GNU Emacs editor (development
ii  emacs21 [emacsen]      21.4a-1           The GNU Emacs editor

Versions of packages emacs-goodies-el recommends:
pn  dict                          <none>     (no description available)
ii  perl-doc                      5.8.7-4    Perl documentation
ii  wget                          1.10.1-1   retrieves files from the web

-- no debconf information





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to