all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bind `q' to `quit-window' or similar in *Messages*
@ 2010-02-03  9:48 Deniz Dogan
  2010-02-03 10:27 ` Tassilo Horn
  2010-02-15 13:46 ` Deniz Dogan
  0 siblings, 2 replies; 20+ messages in thread
From: Deniz Dogan @ 2010-02-03  9:48 UTC (permalink / raw)
  To: Emacs-Devel devel

In a lot of buffers that are not associated with files, such as
*Occur*, *Help*, etc.,  `q' is bound to `quit-window', `View-quit', or
similar.

Why is this not the case in *Messages*?

-- 
Deniz Dogan




^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Bind `q' to `quit-window' or similar in *Messages*
@ 2010-02-04  1:28 Roland Winkler
  2010-02-04  1:41 ` Drew Adams
  2010-02-04  2:32 ` Miles Bader
  0 siblings, 2 replies; 20+ messages in thread
From: Roland Winkler @ 2010-02-04  1:28 UTC (permalink / raw)
  To: drew.adams; +Cc: emacs-devel

> Absolutely I want that. I want to be able to write in *Messages*.
> Yes, I can toggle read-only, but if `q' quits, then that defeats
> the purpose.
> 
> I sometimes find myself with tons of messages being logged, and
> when I make several successive tests I sometimes type stuff in
> Messages to distinguish test sequences etc. And I kill sections of
> text there, or copy text (including text I've added) to other
> buffers, and so on.

I understand your point. Yet my typing in this buffer is purely
accidental / unintentional. And I find it annoying that the
*Messages* buffer does not have an undo history. So from that
perspective, it appears to me that the original design did not have
in mind the possibility of editing this buffer. So I want to suggest
two things:

- *Messages* should not have buffer-undo-list set to t

  (Of course, I do not know whether this would collide with anything
  else.)

- Some customization that allows one to toggle between a read-only
  *Messages* buffer (with q bound to quit-window) and an edit mode
  where one can do whatever one likes to do. 

  (How do the normal entries in *Messages* find their way into this
  buffer? Does this mechanism care whether this buffer is read-only
  or not? I just tried it and it appears to gives no errors.)

Roland




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Bind `q' to `quit-window' or similar in *Messages*
@ 2010-02-04  3:24 Roland Winkler
  2010-02-04  4:27 ` Miles Bader
  0 siblings, 1 reply; 20+ messages in thread
From: Roland Winkler @ 2010-02-04  3:24 UTC (permalink / raw)
  To: miles; +Cc: emacs-devel

> It's set to t to avoid generating zillions of useless undo entries.
> 
> That's pretty reasonable given that 99.99% of the time, people
> _don't_ edit *Messages*, and yet it changes a lot.
> 
> It's silly to start changing *Messages* with the idea that people
> are editing it, because that's almost never the case.
 
...which brings us back to the original request: most often it is
used for viewing what is happening, so that most people probably
were happy if `q' had the same quit-window binding it has in other
buffers that are not intended for editing.




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-02-16 16:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03  9:48 Bind `q' to `quit-window' or similar in *Messages* Deniz Dogan
2010-02-03 10:27 ` Tassilo Horn
2010-02-03 15:48   ` Drew Adams
2010-02-03 15:54     ` Lennart Borgman
2010-02-03 15:59     ` Tassilo Horn
2010-02-03 17:03     ` Drew Adams
2010-02-04 15:30       ` Drew Adams
2010-02-04 16:23         ` Tassilo Horn
2010-02-04 18:01           ` Thierry Volpiatto
2010-02-15 13:46 ` Deniz Dogan
2010-02-16 16:42   ` Davis Herring
  -- strict thread matches above, loose matches on Subject: below --
2010-02-04  1:28 Roland Winkler
2010-02-04  1:41 ` Drew Adams
2010-02-04  2:32 ` Miles Bader
2010-02-04  3:24 Roland Winkler
2010-02-04  4:27 ` Miles Bader
2010-02-04  8:15   ` Tassilo Horn
2010-02-04  8:24     ` Tassilo Horn
2010-02-04 15:33   ` Stefan Monnier
2010-02-04 23:40     ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.