GNU bug report logs - #7630
23.2; cannot use view-mode-map in emacs23.2

Previous Next

Package: emacs;

Reported by: "WANG Denny" <Denny.Wang <at> alcatel-lucent.com>

Date: Mon, 13 Dec 2010 05:36:02 UTC

Severity: normal

Found in version 23.2

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 7630 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "WANG Denny" <Denny.Wang <at> alcatel-lucent.com>
Cc: 7630 <at> debbugs.gnu.org
Subject: Re: bug#7630: 23.2; cannot use view-mode-map in emacs23.2
Date: Mon, 13 Dec 2010 13:47:30 -0500
"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 ...)
     ...))




This bug report was last modified 14 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.