* Re: Tex-mode binding of C-return
2005-05-03 8:02 ` Kim F. Storm
@ 2005-05-03 15:42 ` Stefan Monnier
2005-05-04 2:38 ` Luc Teirlinck
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2005-05-03 15:42 UTC (permalink / raw)
Cc: emacs-devel
>>> C-return is such a "good command", analogue to C-SPC for the
>>> normal mark.
>> I don't find C-return a particularly good choice (especially since it
>> doesn't work on ttys).
> Neither does S-return...
Indeed, so it's not a good choice either.
> Does C-space work on ttys?
Yes and no: it typically isn't recognized as C-SPC but as C-@ (aka ASCII
NUL). Luckily (well it's actually done on purpose) C-@ has the
same binding, so it does DTRT.
In contrast on most tty C-return just sends a RET and we can't put that
special binding on RET as well.
I'm not saying C-return can't be used, but it would be good to also find
a key that works on ttys (just like we have undo bound to C-x u for "works
everywhere" as well as to C-_ and C-/ for more convenient alternatives
that don't always work). Maybe we could just use C-x r (except it would
hide the register commands ;-( ).
>> Is the idea that to kill a rectangle you could do
>> C-RET C-SPC .... M-w
> Just do:
> C-RET ... M-w
Hmmm... OK. I was thinking it would be good to make it work like a general
prefix command so you could also do C-return M-C-SPC, but after thinking
about it, I see it's not that important as long as M-C-SPC C-return works
as well.
>> or equivalently
>>
>> C-SPC ... C-RET ... M-w
> That works, yes, changing the normal mark to
> a rectangle mark.
Good. I assume it only works if you use transient-mark-mode, otherwise it
has no way to know whether you're "in the middle of marking" or not.
> I'm suggesting to use C-return instead of S-return to toggle the
> rectangle mark, just like C-space toggles the normal mark.
Fine with me, C-return is no worse than S-return.
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tex-mode binding of C-return
2005-05-03 8:02 ` Kim F. Storm
2005-05-03 15:42 ` Stefan Monnier
@ 2005-05-04 2:38 ` Luc Teirlinck
2005-05-04 8:18 ` Kim F. Storm
2005-05-04 2:53 ` Luc Teirlinck
2005-05-04 9:20 ` Andreas Schwab
3 siblings, 1 reply; 11+ messages in thread
From: Luc Teirlinck @ 2005-05-04 2:38 UTC (permalink / raw)
Cc: monnier, emacs-devel
Kim Storm wrote:
Neither does S-return... Does C-space work on ttys?
Yes. But S-TAB does not and S-TAB is unfortunately used for TAB in
the inverse direction in tons of spaces in Emacs, which is a nuisance.
On ttys S-TAB is normally the same as TAB. You can make tty's
recognize these things but how to do it depends on the tty. Not stuff
for newbies.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tex-mode binding of C-return
2005-05-04 2:38 ` Luc Teirlinck
@ 2005-05-04 8:18 ` Kim F. Storm
2005-05-04 15:24 ` Luc Teirlinck
0 siblings, 1 reply; 11+ messages in thread
From: Kim F. Storm @ 2005-05-04 8:18 UTC (permalink / raw)
Cc: monnier, emacs-devel
Luc Teirlinck <teirllm@dms.auburn.edu> writes:
> Kim Storm wrote:
>
> Neither does S-return... Does C-space work on ttys?
>
> Yes. But S-TAB does not and S-TAB is unfortunately used for TAB in
> the inverse direction in tons of spaces in Emacs, which is a nuisance.
If I hit S-TAB (GNU/Linux + X), I get this message:
<backtab> (translated from <S-iso-lefttab>) is undefined
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tex-mode binding of C-return
2005-05-04 8:18 ` Kim F. Storm
@ 2005-05-04 15:24 ` Luc Teirlinck
0 siblings, 0 replies; 11+ messages in thread
From: Luc Teirlinck @ 2005-05-04 15:24 UTC (permalink / raw)
Cc: monnier, emacs-devel
Kim Storm wrote:
> Yes. But S-TAB does not and S-TAB is unfortunately used for TAB in
> the inverse direction in tons of spaces in Emacs, which is a nuisance.
If I hit S-TAB (GNU/Linux + X), I get this message:
<backtab> (translated from <S-iso-lefttab>) is undefined
It is only bound in certain modes. For instance, Info-prev-reference
is a rather important command in Info, but it is, by default, not
bound to any key on a tty. Strictly speaking, it is bound to
<backtab> or <S-tab>, but on a tty, that gets translated to <tab>, so
if you press S-tab, you go to the _next_ reference instead of the
previous one. Same for widget-backward in Custom, but there at least
you can use `p' if you know about it.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tex-mode binding of C-return
2005-05-03 8:02 ` Kim F. Storm
2005-05-03 15:42 ` Stefan Monnier
2005-05-04 2:38 ` Luc Teirlinck
@ 2005-05-04 2:53 ` Luc Teirlinck
2005-05-04 9:20 ` Andreas Schwab
3 siblings, 0 replies; 11+ messages in thread
From: Luc Teirlinck @ 2005-05-04 2:53 UTC (permalink / raw)
Cc: monnier, emacs-devel
Kim Storm wrote:
Does C-space work on ttys?
To correct my previous answer: strictly speaking no, but
_in practice_, yes.
>From `(emacs)Setting Mark':
There is no such character as `C-<SPC>' in ASCII; when you type
<SPC> while holding down <CTRL> on a text terminal, what you get is the
character `C-@'. This key is also bound to `set-mark-command'-so
unless you are unlucky enough to have a text terminal where typing
`C-<SPC>' does not produce `C-@', you might as well think of this
character as `C-<SPC>'.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tex-mode binding of C-return
2005-05-03 8:02 ` Kim F. Storm
` (2 preceding siblings ...)
2005-05-04 2:53 ` Luc Teirlinck
@ 2005-05-04 9:20 ` Andreas Schwab
3 siblings, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2005-05-04 9:20 UTC (permalink / raw)
Cc: Stefan Monnier, emacs-devel
storm@cua.dk (Kim F. Storm) writes:
> Does C-space work on ttys?
It's usually the same as C-@, ie. NUL, but AFAIK not all terminals support
that.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread