GNU bug report logs - #8615
Please make sure v q removes the buffer for JPGs just like it does for other files

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Wed, 4 May 2011 18:18:01 UTC

Severity: minor

Tags: fixed

Merged with 6954

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 8615 <at> debbugs.gnu.org
Subject: Re: bug#8615: Please make sure v q removes the buffer for JPGs just
	like it does for other files
Date: Thu, 15 Dec 2011 23:30:55 +0200
> (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.

You could try:

(define-key special-mode-map "q"
  (lambda () (interactive) (quit-window (not current-prefix-arg))))

(eval-after-load "compile"
  '(progn
     (define-key compilation-mode-map "q" 'quit-window)))

PS:
This means that in 24.2 we should add two customizable options:
one with a list of modes to remap, and one with a list of modes
to exclude from remapping.




This bug report was last modified 13 years and 243 days ago.

Previous Next


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