all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* undo C-_ and C-/: mention hex codes
@ 2008-04-16 14:49 jidanni
  2008-04-16 15:39 ` Jason Rumney
  2008-04-16 16:50 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: jidanni @ 2008-04-16 14:49 UTC (permalink / raw)
  To: bug-gnu-emacs

In the emacs manual at the several places where it talks about the
undo keys C-_ and C-/, please also mention what hex codes you are
talking about (0x1F) etc. Maybe you are just talking about the same
0x1F and 0x1F, or maybe two different codes. The user wants to know.

Or maybe there's a extra layer of abstraction involved. Mention that
too.

Anyways, mentioning it would help the user better understand
paragraphs like:

      The reason the `undo' command has three key bindings, `C-x u', `C-_'
   and `C-/', is that it is worthy of a single-character key, but `C-x u'
   is more straightforward for beginners to remember and type.  Meanwhile,
   `C--' on a text-only terminal is really `C-_', which makes it a natural
   and easily typed binding for undoing.




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

* Re: undo C-_ and C-/: mention hex codes
  2008-04-16 14:49 undo C-_ and C-/: mention hex codes jidanni
@ 2008-04-16 15:39 ` Jason Rumney
  2008-04-16 16:50 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Rumney @ 2008-04-16 15:39 UTC (permalink / raw)
  To: jidanni; +Cc: bug-gnu-emacs

jidanni@jidanni.org wrote:
> In the emacs manual at the several places where it talks about the
> undo keys C-_ and C-/, please also mention what hex codes you are
> talking about (0x1F) etc. Maybe you are just talking about the same
> 0x1F and 0x1F, or maybe two different codes. The user wants to know.
>   

I've yet to meet a user who thinks about keybindings in terms of "hex 
codes", whatever that means.

If you're talking about the ASCII control codes that happen to be 
produced by some control key sequences on text terminals, then I think 
it would just confuse users, the majority of whom these days are using 
graphical terminals that deal with key events, not ASCII character 
sequences.





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

* Re: undo C-_ and C-/: mention hex codes
  2008-04-16 14:49 undo C-_ and C-/: mention hex codes jidanni
  2008-04-16 15:39 ` Jason Rumney
@ 2008-04-16 16:50 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2008-04-16 16:50 UTC (permalink / raw)
  To: jidanni; +Cc: bug-gnu-emacs

> In the emacs manual at the several places where it talks about the
> undo keys C-_ and C-/, please also mention what hex codes you are
> talking about (0x1F) etc.

By "hex code" you mean "ascii char code", I guess.

> Maybe you are just talking about the same 0x1F and 0x1F, or maybe two
> different codes.  The user wants to know.

Patches welcome, but note that unless you're running Emacs on a tty, C-/
and C-_ are two different keys/events.  And I wouldn't be surprised if
some terminal emulator out there also sends different byte-sequences for
those two keys.

> Or maybe there's a extra layer of abstraction involved. Mention that
> too.

I don't see why, really.  My main concern is to make sure the user can
run the command bound to those keys, and that doc should be appropriate
since the user can then try C-x u, C-_, C-/, and C--, all of which
should work, whether or not they generate the same byte-sequence.


        Stefan




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

end of thread, other threads:[~2008-04-16 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16 14:49 undo C-_ and C-/: mention hex codes jidanni
2008-04-16 15:39 ` Jason Rumney
2008-04-16 16:50 ` Stefan Monnier

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.