From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Bind `q' to `quit-window' or similar in *Messages* Date: Tue, 16 Feb 2010 08:42:06 -0800 (PST) Message-ID: <35786.130.55.118.19.1266338526.squirrel@webmail.lanl.gov> References: <7b501d5c1002030148j2df7b01eu92eb0729eb6cc28f@mail.gmail.com> <7b501d5c1002150546y2249fe3eqdf956dcbadd791b6@mail.gmail.com> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1266338567 12720 80.91.229.12 (16 Feb 2010 16:42:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2010 16:42:47 +0000 (UTC) Cc: Emacs-Devel devel To: "Deniz Dogan" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 16 17:42:45 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NhQVX-0006Oq-7w for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2010 17:42:43 +0100 Original-Received: from localhost ([127.0.0.1]:55871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhQVW-00057V-Pv for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2010 11:42:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhQVS-00056l-7I for emacs-devel@gnu.org; Tue, 16 Feb 2010 11:42:38 -0500 Original-Received: from [140.186.70.92] (port=34727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhQVQ-00055Z-M2 for emacs-devel@gnu.org; Tue, 16 Feb 2010 11:42:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhQVP-00054e-Ui for emacs-devel@gnu.org; Tue, 16 Feb 2010 11:42:36 -0500 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:45138) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhQVP-00054Y-JL for emacs-devel@gnu.org; Tue, 16 Feb 2010 11:42:35 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id o1GGg77e009753; Tue, 16 Feb 2010 09:42:29 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 1184E15FAE4B; Tue, 16 Feb 2010 09:42:07 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (Postfix) with ESMTP id F26A015FAE41; Tue, 16 Feb 2010 09:42:06 -0700 (MST) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id F0DCC1DE0126; Tue, 16 Feb 2010 09:42:06 -0700 (MST) Original-Received: from 130.55.118.19 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 16 Feb 2010 08:42:06 -0800 (PST) In-Reply-To: <7b501d5c1002150546y2249fe3eqdf956dcbadd791b6@mail.gmail.com> User-Agent: SquirrelMail/1.4.8-5.7.lanl7 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-16_08:2010-02-06, 2010-02-16, 2010-02-16 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:121145 Archived-At: > Inspired by this proposal I set off to write a function which binds > `q' to `quit-window' in any read-only buffer. However, I was unable to > find a suitable hook to call the function from. > > Any ideas? `diff-mode' achieves a similar effect by adding an element to `minor-mode-map-alist' with the variable `buffer-read-only' as the key. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.