all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 17983@debbugs.gnu.org
Subject: bug#17983: 24.4.50; digit keys in *Messages* unhelpful, hang Emacs, etc.
Date: Thu, 10 Jul 2014 09:25:50 -0700 (PDT)	[thread overview]
Message-ID: <5b50c416-76e8-4221-895b-386d8a192d2b@default> (raw)
In-Reply-To: <<83y4w1b6s2.fsf@gnu.org>>

> > C-q 7 C-q 7 C-q 7.  You see ^G inserted each time (except the first)
> > that you hit C-q (not when you hit 7), because 7 acts as a prefix arg
> > for the following ^Q.  Wunderbar.  A feature, no doubt.
> 
> As Glenn points out, this is normal (and very old) behavior of C-q,
> which is well documented.

Yes, for inserting a char via an octal sequence.  And yes, any number
of octal digits can be used.  I had forgotten that this single 7 fell
into that use case.

So the behavior is normal: each C-q after the first ends the octal
sequence, so it is just 7, which is the code for ^G.  Thanks for the
reminder that this is what I was seeing here.

It would be good, IMO, if there were some echo-area feedback when
you hit an octal digit after C-q.  Please consider that enhancement
request.

> > C-q 7 7 7.  Now Emacs is hosed - in Neverneverland.  ESC ESC ESC no
> > good; C-g no good.  No mouse, no keys, nada.  And no CPU use.  Just
> > hosed.
> 
> Not here, it isn't.  After "C-q 7 7 7", any key gets something
> inserted, and there's no hang.  None.

As I said before, sometimes it happens and sometimes it does not.
I was not able to determine just when or why.  Each time, I started
with emacs -Q, and the result was sometimes a hang and sometimes not.
I reproduced the hang several times, including several times in a
row (always from emacs -Q), but the same recipe sometimes did not
result in a hang.

> > Regardless of whether it freezes each time, if you hit C-q and then
> > 7 one or more times there is no feedback - already a no-no (bug).
> 
> That's indeed a bug, worthy of a separate bug report.

See above.  There should be no need for a separate report.  This was
part of this report, from the beginning.  If you want to create a
separate report for it or rename the subject to better reflect this,
feel free to do so.

I feel that I've reported the problem and asked that it be fixed.
If you find that part of what I reported is not a bug, and because
of that you want to ignore other parts and not fix them, that's
your prerogative.

> But everything else you describe isn't, or is not reproducible here.

See above.

> > C-q should simply quote the 7, as it should quote other characters you
> > type (including ^U, BTW).
> 
> No, numeric characters after C-q behave specially.

(Only octal digits, to be specific - or whatever is specified by
`read-quoted-char-radix'.)

Yes, thanks for that reminder.  I did not realize that that's what
I was seeing here (even though I have long used C-q to input an octal
sequence.)





       reply	other threads:[~2014-07-10 16:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<f55d790b-64ff-46a1-a051-55e9f9306599@default>
     [not found] ` <<83y4w1b6s2.fsf@gnu.org>
2014-07-10 16:25   ` Drew Adams [this message]
2014-07-10 16:42     ` bug#17983: 24.4.50; digit keys in *Messages* unhelpful, hang Emacs, etc Eli Zaretskii
     [not found]   ` <<83lhs1b5b9.fsf@gnu.org>
2014-07-10 16:26     ` Drew Adams
2014-07-10  2:35 Drew Adams
2014-07-10  2:42 ` Drew Adams
2014-07-10  7:10   ` Glenn Morris
2014-07-10 13:55     ` Drew Adams
2014-07-10 15:12       ` Eli Zaretskii
2014-07-10 14:57 ` Eli Zaretskii
2014-07-10 15:29   ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b50c416-76e8-4221-895b-386d8a192d2b@default \
    --to=drew.adams@oracle.com \
    --cc=17983@debbugs.gnu.org \
    --cc=eliz@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 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.