unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-q some-number
@ 2023-02-22 13:49 Andreas Röhler
  2023-02-22 14:00 ` Thibaut Verron
  2023-02-22 14:01 ` Anders Munch
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Röhler @ 2023-02-22 13:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

while "C-q some-char" inserts that char as expected, not so when typing 
any number from 0-9.

Any explanation?

Thanks,

Andreas

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, 
cairo version 1.16.0) of 2023-02-01





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

* Re: C-q some-number
  2023-02-22 13:49 C-q some-number Andreas Röhler
@ 2023-02-22 14:00 ` Thibaut Verron
  2023-02-22 14:01 ` Anders Munch
  1 sibling, 0 replies; 3+ messages in thread
From: Thibaut Verron @ 2023-02-22 14:00 UTC (permalink / raw)
  To: Andreas Röhler, help-gnu-emacs

Hi,

> while "C-q some-char" inserts that char as expected, not so when 
> typing any number from 0-9.

That's actually inexact, the numbers 8 and 9 are inserted like other 
chars. :)

Numbers below 8 are interpreted as the octal code of a character, 
terminated by the first non-digit character.

This behavior is described in more details in the docstring of the bound 
function quoted-insert, accessible with C-h k C-q.

Best wishes,

Thibaut




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

* Re: C-q some-number
  2023-02-22 13:49 C-q some-number Andreas Röhler
  2023-02-22 14:00 ` Thibaut Verron
@ 2023-02-22 14:01 ` Anders Munch
  1 sibling, 0 replies; 3+ messages in thread
From: Anders Munch @ 2023-02-22 14:01 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

> while "C-q some-char" inserts that char as expected, not so when typing any number from 0-9.
> Any explanation?

None that is better than what
    C-h k C-q
would have told you.

regards, Anders


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

end of thread, other threads:[~2023-02-22 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 13:49 C-q some-number Andreas Röhler
2023-02-22 14:00 ` Thibaut Verron
2023-02-22 14:01 ` Anders Munch

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).