From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: 8615@debbugs.gnu.org
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 [thread overview]
Message-ID: <jc6tsn$i2m$1@dough.gmane.org> (raw)
In-Reply-To: <874nx8g28t.fsf@jidanni.org>
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
next prev parent reply other threads:[~2011-12-13 7:12 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4E20C5DE.6070107@gmail.com>
2011-05-04 18:16 ` bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files jidanni
2011-07-04 14:31 ` Lars Magne Ingebrigtsen
2011-07-04 17:45 ` Chong Yidong
2011-07-05 1:47 ` jidanni
2011-07-05 3:44 ` Stefan Monnier
2011-07-05 3:58 ` jidanni
2011-07-05 13:35 ` Lars Magne Ingebrigtsen
2011-07-05 15:04 ` Chong Yidong
2011-07-05 15:07 ` Lars Magne Ingebrigtsen
2011-07-05 19:06 ` Stefan Monnier
2011-07-05 20:47 ` Lars Magne Ingebrigtsen
2011-07-06 0:58 ` Stefan Monnier
2011-07-14 13:53 ` Lars Magne Ingebrigtsen
2011-07-17 2:10 ` Stefan Monnier
2010-08-31 12:41 ` bug#6954: all viewed images left sitting in buffer-list jidanni
2011-07-16 12:24 ` bug#6954: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files jidanni
2011-07-17 2:27 ` jidanni
2011-07-20 15:40 ` jidanni
2011-07-17 2:23 ` Lars Magne Ingebrigtsen
2011-07-15 21:27 ` jidanni
2011-07-15 21:30 ` bug#6954: " Lars Magne Ingebrigtsen
2011-07-15 21:30 ` Lars Magne Ingebrigtsen
[not found] ` <m3ipr3b5av.fsf@quimbies.gnus.org>
2011-07-15 22:57 ` bug#6954: " Christoph Scholtes
2011-07-15 22:57 ` bug#8615: " Christoph Scholtes
2011-07-16 13:11 ` martin rudalics
2011-07-16 13:11 ` bug#6954: " martin rudalics
[not found] ` <4E218E0A.6050302@gmx.at>
2011-07-16 15:19 ` Christoph Scholtes
2011-07-16 15:19 ` Christoph Scholtes
2011-07-16 15:24 ` Lars Magne Ingebrigtsen
2011-07-18 14:42 ` Stefan Monnier
2011-07-19 15:03 ` Lars Magne Ingebrigtsen
2011-11-21 23:45 ` Juri Linkov
2011-11-22 0:46 ` Lars Magne Ingebrigtsen
2011-11-22 1:04 ` Juri Linkov
2011-07-15 23:22 ` bug#8615: bug#6954: " jidanni
2011-07-15 23:35 ` Christoph Scholtes
2011-07-15 23:35 ` bug#6954: " Christoph Scholtes
[not found] ` <4E20CED6.4070207@gmail.com>
2011-07-15 23:38 ` Lars Magne Ingebrigtsen
2011-07-15 23:38 ` bug#6954: " Lars Magne Ingebrigtsen
[not found] ` <m3r55rw1v3.fsf@quimbies.gnus.org>
2011-07-16 0:40 ` bug#8615: " Christoph Scholtes
2011-07-16 0:40 ` Christoph Scholtes
2011-11-22 5:44 ` jidanni
2011-11-22 16:27 ` Juri Linkov
2011-11-23 6:18 ` Chong Yidong
2011-11-23 7:20 ` Juri Linkov
2011-11-23 10:40 ` Lars Magne Ingebrigtsen
2011-11-23 14:10 ` Stefan Monnier
2011-11-23 19:51 ` Stefan Monnier
2011-11-23 20:00 ` Juri Linkov
2011-11-23 20:55 ` bug#8615: Please make sure v q removes the buffer for JPGs just likeit " Drew Adams
2011-11-23 21:18 ` Juri Linkov
2011-11-24 2:14 ` Stefan Monnier
2011-11-24 6:13 ` bug#8615: Please make sure v q removes the buffer for JPGs just like it " Chong Yidong
2011-11-24 7:10 ` Juri Linkov
[not found] ` <87ehwgm63b.fsf@jidanni.org>
2011-12-08 9:01 ` Juri Linkov
2011-11-22 22:39 ` Juri Linkov
2011-11-22 18:36 ` jidanni
2011-11-22 18:51 ` Juri Linkov
2011-11-22 19:02 ` jidanni
2011-11-22 23:35 ` jidanni
2011-12-10 10:17 ` jidanni
2011-12-13 7:12 ` Kevin Rodgers [this message]
2011-12-15 21:30 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jc6tsn$i2m$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=8615@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).