unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* wdired autoload instructions
@ 2011-05-08 19:34 Deniz Dogan
  2011-05-08 20:37 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 5+ messages in thread
From: Deniz Dogan @ 2011-05-08 19:34 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-09 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-08 19:34 wdired autoload instructions Deniz Dogan
2011-05-08 20:37 ` Thien-Thi Nguyen
2011-05-08 20:45   ` Deniz Dogan
2011-05-09 14:00     ` Davis Herring
2011-05-09 14:24     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).