From: Glenn Morris <rgm@gnu.org>
To: "WANG Denny" <Denny.Wang@alcatel-lucent.com>
Cc: 7630@debbugs.gnu.org
Subject: bug#7630: 23.2; cannot use view-mode-map in emacs23.2
Date: Mon, 13 Dec 2010 13:47:30 -0500 [thread overview]
Message-ID: <h64oahik71.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <F0B0DC23891DED40980E6977D12342A80315A5C2@CNSHGSMBS05.ad4.ad.alcatel.com> (WANG Denny's message of "Mon\, 13 Dec 2010 13\:13\:45 +0800")
"WANG Denny" wrote:
> i found i cannot use view-mode-map to define any key to emacs, when
> emacs start up, it always show the invalid view-mode-map error, but this
> .emacs.el file is really working well on my another machine, the
> difference between these two machine is now what i'm reporting error for
> is a windows OS, and the emacs version is 23.2, and the other which
> works well is a nuix OS, and emacs version is 23.1
I don't think this is an Emacs bug. view-mode-map is not defined at
startup in Emacs 23.1 either. You can test this by doing
emacs-23.1 -Q
then immediately evaluating view-mode-map. Many things, including
doing C-h v on a variable will load view.el, so probably something
happens on one system to load it.
If you want to change view-mode-map in your .emacs, you can do it
in various ways:
1)
(eval-after-load "view"
'(progn
(define-key view-mode-map ...)
...)))
2)
(require 'view)
(define-key view-mode-map ...)
...
3)
(add-hook 'view-mode-hook (lambda ()
(define-key view-mode-map ...)
...))
prev parent reply other threads:[~2010-12-13 18:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-13 5:13 bug#7630: 23.2; cannot use view-mode-map in emacs23.2 WANG Denny
2010-12-13 18:47 ` Glenn Morris [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=h64oahik71.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=7630@debbugs.gnu.org \
--cc=Denny.Wang@alcatel-lucent.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.