emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wdired autoload instructions


From: Deniz Dogan
Subject: wdired autoload instructions
Date: Sun, 08 May 2011 21:34:29 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

I read the following in wdired.el:

;; This is the recommended way for faster Emacs startup time and lower
;; memory consumption:
;;
;; (autoload 'wdired-change-to-wdired-mode "wdired")
;; (eval-after-load "dired"
;;           '(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))))

This is what I put in my init file:

(autoload 'wdired-change-to-wdired-mode "wdired")
(eval-after-load "dired"
  '(lambda ()
     (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode)))

Now when I start dired, "r" is still undefined and
`wdired-changeto-wdired-mode' is not recognized as a command (but is of course a function).

1. Is this a documentation bug?
2. Is the quoting of `lambda' necessary?


Thanks,
Deniz Dogan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]