unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz@dogan.se>
To: emacs-devel@gnu.org
Subject: wdired autoload instructions
Date: Sun, 08 May 2011 21:34:29 +0200	[thread overview]
Message-ID: <4DC6F045.50908@dogan.se> (raw)

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	other threads:[~2011-05-08 19:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-08 19:34 Deniz Dogan [this message]
2011-05-08 20:37 ` wdired autoload instructions Thien-Thi Nguyen
2011-05-08 20:45   ` Deniz Dogan
2011-05-09 14:00     ` Davis Herring
2011-05-09 14:24     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC6F045.50908@dogan.se \
    --to=deniz@dogan.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).