Package: emacs-goodies-el
Version: 24.11-1
Severity: minor
Tags: patch
The emacs-goodies-el package doubles an entry in a Dired menu
("Immediate -> Edit File names") on Emacs 22 (aka emacs-snapshot).
This is because Emacs 22 already contains the wdired.el package and
has a Dired menu entry for it. The following patch gets rid of the
double entry:
------------------------------------------------------------
diff -u emacs-goodies-el.el~ emacs-goodies-el.el
--- emacs-goodies-el.el~ 2004-08-04 02:21:33.000000000 +0200
+++ emacs-goodies-el.el 2005-08-18 08:10:01.000000000 +0200
@@ -245,11 +245,15 @@
;; wdired.el
(add-hook
'dired-load-hook
- '(lambda ()
- (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode)
- (define-key dired-mode-map
- [menu-bar immediate wdired-change-to-wdired-mode]
- '("Edit File Names" . wdired-change-to-wdired-mode))))
+(if (and (>= emacs-major-version 22) ; Change these two lines if XEmacs
+ (not (fboundp 'xemacs))) ; contains the wdired package
+ '(lambda ()
+ (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode))
+ '(lambda ()
+ (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode)
+ (define-key dired-mode-map
+ [menu-bar immediate wdired-change-to-wdired-mode]
+ '("Edit File Names" . wdired-change-to-wdired-mode)))))
(provide 'emacs-goodies-el)
------------------------------------------------------------
Note that I have only tested this patch with GNU Emacs 21 and 22 and
don't have XEmacs installed (see the comment in the patch).
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
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 2.05b-26 The GNU Bourne Again SHell
ii emacs-snapshot [e 20050812140000-2 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.4-8 Perl documentation
ii wget 1.9.1-12 retrieves files from the web
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]