From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.devel Subject: Setting key bindings in view-mode-hook Date: Sat, 26 Nov 2005 19:26:27 -0800 Organization: Newt Software Message-ID: <18382.1133061987@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1133062095 23740 80.91.229.2 (27 Nov 2005 03:28:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2005 03:28:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 27 04:28:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgDC0-0003gO-08 for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 04:27:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgDBz-0003oX-FM for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2005 22:27:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgDBq-0003mG-4J for emacs-devel@gnu.org; Sat, 26 Nov 2005 22:26:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgDBo-0003lC-Jd for emacs-devel@gnu.org; Sat, 26 Nov 2005 22:26:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgDBo-0003kt-Bx for emacs-devel@gnu.org; Sat, 26 Nov 2005 22:26:56 -0500 Original-Received: from [207.69.195.68] (helo=pop-cowbird.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgDBo-0003Cd-Ee for emacs-devel@gnu.org; Sat, 26 Nov 2005 22:26:56 -0500 Original-Received: from h-68-166-189-106.snvacaid.dynamic.covad.net ([68.166.189.106] helo=olgas.newt.com) by pop-cowbird.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1EgDBm-0005ke-00 for emacs-devel@gnu.org; Sat, 26 Nov 2005 22:26:54 -0500 Original-Received: by olgas.newt.com (Postfix, from userid 1000) id F212216FD8; Sat, 26 Nov 2005 19:26:27 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id EE78416FAC for ; Sat, 26 Nov 2005 19:26:27 -0800 (PST) Original-To: emacs-devel@gnu.org X-Mailer: MH-E 7.85+cvs; nmh 1.1; GNU Emacs 22.0.50.5 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46639 Archived-At: I'd like to bind "q" in `view-mode' to `View-kill-and-leave'. I customized view-mode-hook with (lambda nil (local-set-key "q" (quote View-kill-and-leave))) However, "C-h c q" in a buffer in view mode still shows View-quit. What gives? How come my setting isn't honored? This is in recent CVS snapshot of Emacs 22, but a quick check reveals that this Emacs 21 shows the same behavior. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.