From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files Date: Tue, 13 Dec 2011 00:12:49 -0700 Message-ID: References: <8739deov0n.fsf@mail.jurta.org> <874nx8g28t.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323760436 19134 80.91.229.12 (13 Dec 2011 07:13:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 07:13:56 +0000 (UTC) To: 8615@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 08:13:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RaMYh-00071V-QR for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 08:13:52 +0100 Original-Received: from localhost ([::1]:57767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMYh-0003Q7-9h for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 02:13:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMYd-0003Pr-JA for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:13:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaMYb-0005LR-RZ for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:13:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMYb-0005L9-OZ for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:13:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RaMZq-0001ap-6I for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Rodgers Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2011 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13237604476043 (code B ref -1); Tue, 13 Dec 2011 07:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Dec 2011 07:14:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaMYx-0001ZQ-FH for submit@debbugs.gnu.org; Tue, 13 Dec 2011 02:14:07 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RaMYu-0001ZI-PV for submit@debbugs.gnu.org; Tue, 13 Dec 2011 02:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaMXf-00056M-DY for submit@debbugs.gnu.org; Tue, 13 Dec 2011 02:12:48 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:48767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMXf-00056I-9S for submit@debbugs.gnu.org; Tue, 13 Dec 2011 02:12:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMXe-0003N1-9o for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:12:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaMXb-00055e-BD for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:12:46 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:40992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaMXb-00055K-0t for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 02:12:43 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RaMXV-0006NK-Nx for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2011 08:12:37 +0100 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Dec 2011 08:12:37 +0100 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Dec 2011 08:12:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16 In-Reply-To: <874nx8g28t.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Dec 2011 02:15:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54912 Archived-At: On 12/10/11 3:17 AM, jidanni@jidanni.org wrote: > Erg... this is what I have so far, > > (eval-after-load "image-mode" > '(progn > (define-key image-mode-map "q" > (lambda () (interactive) (quit-window (not current-prefix-arg))))));bug#8615 > (eval-after-load "dired" > '(progn > (define-key dired-mode-map "q" > (lambda () (interactive) (quit-window (not current-prefix-arg)))))) > (eval-after-load "arc-mode" > '(progn > (define-key archive-mode-map "q";note the difference from the library name > (lambda () (interactive) (quit-window (not current-prefix-arg)))))) > > i.e., an ever growing list. OK, I give up, you win. I'll use > > (global-set-key [remap quit-window] > (lambda () (interactive) (quit-window (not current-prefix-arg)))) > > But please tell me how to then restore the virgin "q" behavior for one or two > modes, e.g., > > (eval-after-load "compile" > '(progn > (define-key compilation-mode-map ... ??? > > I tired several things but nothing worked. Perhaps the "remap" above > ruined it for everything. Just a guess, assuming that the original behavior is (quit-window current-prefix-arg): (defvar remap-quit-window-exceptions '() "List of `major-mode' symbols in which `quit-window' should not be remapped.") (global-set-key [remap quit-window] (lambda () (interactive) (if (memq major-mode remap-quit-window-exceptions) (quit-window current-prefix-arg) (quit-window (not current-prefix-arg))))) ;; (setq remap-quit-window-exceptions ;; (cons 'compilation-mode remap-quit-window-exceptions)) -- Kevin Rodgers Denver, Colorado, USA