From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Leo Liu <sdl.web@gmail.com>
Cc: 16617@debbugs.gnu.org
Subject: bug#16617: 24.3.50; REGRESSION: `C-q ?' pops up annoying *Char Help* buffer
Date: Thu, 3 Apr 2014 11:38:15 -0700 (PDT) [thread overview]
Message-ID: <f87a9a1b-9378-4755-bbac-c88209ed8297@default> (raw)
In-Reply-To: <<831txebg2x.fsf@gnu.org>>
> FWIW, I don't think this is the right fix. The problem is not that
> '?' pops up the help text -- I disagree with Drew about that, as '?'
> is a normal way to ask Emacs for guidance. The problem is that the
> help text is not really displayed -- it flashes for a fraction of a
> second and disappears without a trace. Your suggestion doesn't fix
> that part. Even if it is eventually decided that '?' should not
> invoke help in this case, the problem with momentarily flashing the
> help text should be solved, because it actually renders the whole
> help-form feature useless.
No, what you describe is one problem - a problem for the
`pop-up-frames' = nil case (or equivalent). But that is not the
problem that concerns my context, which I care about at least as
much as the `pop-up-frames' = nil case.
The only problem you are apparently concerned about is the one
I referred to as "This alone is a regression wrt previous Emacs
releases." "This alone" means that this is one regression - an
additional regression, but it is NOT the regression that is the
main reason for my bug report.
What problem did I report? "`C-q ?' pops up an annoying
"*Char Help*" buffer." What part of that is not clear?
It is true that I also I reported, in passing, some additional
problems - problems with that annoying help display. See the
original report. They include minor ones such as <f1> inserting
a character and lack of formatting (filling) in the help buffer.
For my case (non-nil `pop-up-frames'), the major annoyance about
the help buffer display is this:
"(b) It can remain shown, requiring the user to remove it.
(c) That can even involve requiring the user to change buffers
and delete a frame.
(d) It can require that you hit `?' again, to insert the `?'
char (after moving back to the right frame)."
But again, NONE of that is the real bug that this report is about.
THIS bug has nothing to do with these particular negative
qualities of the help display as implemented. THIS bug is
that the help display is shown at all! (See the subject line.)
Why should `C-q ?' show any "help"? Why doesn't it just insert
the character `?'? `C-q w' inserts the character `w'. Why
should `C-q ?' act differently? It does some pretty weird things:
(1) It does not insert `?' (which is all that it should do).
(2) It pops up an incomprehensible (in this context) "help"
buffer that is no help at all. Totally inappropriate.
(3) If you try `C-h ?' again in the same buffer while *Char
Help* is already displayed (e.g., in the separate, popped-up
frame, which remains until the user deletes it), then buffer
*Help* is popped up, with the content you normally see from
`C-h C-h':
This is the Emacs `help-command', accessible via `C-h'.
Type a help option (below) now, for help on a particular
topic.
...
[52 lines of help]
Also totally inappropriate.
(I did not report #3 originally - I discovered it now. It is
just one more problem with the help-display implementation.
But again - NOT the real bug reported, which is that `C-h ?'
should not display "help" at all.)
The FIX for this bug is to treat `?' like the ordinary printable,
self-inserting character that it is in such contexts: `C-q'
should simply insert `?'. End of story. Hard to believe there
is so much attention paid to everything but the obvious here.
If you also want to fix the additional problems with the *Char
Help* display which I mentioned, please do. But they have
nothing to do with THIS bug, which is that `C-h ?' should simply
insert `?', at least whenever `?' is self-inserting.
> I don't know why '?' should also be excluded
It is an ordinary, printable, self-inserting character in the
context I reported. `<f1>' is not - it is not comparable to `?'
(or even to ^H, which `C-q' handles correctly, BTW, inserting ^H).
> -- it's not like someone needs C-q to insert '?' in most
> situations
It is not about "need". `C-q' is SUPPOSED to insert ordinary,
self-inserting characters. For such characters its "quoting"
is SUPPOSED to just be the identity (a no-op). That should be
true for ALL self-inserting chars, including `?'.
> -- but in any case it's one of the help characters,
No, it is definitely not "one of the help characters".
Not in the reported context, and not in MOST buffers.
> and many commands show help when user presses '?'. I
> don't see why this command should not.
No, when the user presses `?' in the context I reported,
no "commands show help". Pressing `?' just inserts it.
Let me say again, in no uncertain terms, what THIS bug is about:
At least whenever `?' is self-inserting - i.e., bound to
`self-insert-command' or another command that inserts it, `C-q'
should just insert it. A self-inserting character should not
be treated as a "help" command!
I will go further and say that UNLESS `?' is a help character
(i.e., bound to a help command), `C-q ?' should insert `?'.
So for example, if `?' is bound to `end-of-line' or
`complete-symbol', `C-q ?' should insert `?'.
I would even argue that `C-q ?' should always insert `?' - even
when it is a help character. That's what quoting is about.
And you will note that that is what `C-q C-h' does: it inserts
the Control-H character. Even though it is "one of the help
characters".
But I won't insist on that last degree here (for THIS bug) -
we can save that for another discussion, perhaps. What you
say might constitute a reasonable argument in a buffer where
`?' is in fact "one of the help characters". I don't agree
with that argument, and it conflicts with what `C-q' does for
`C-h', but it is arguable.
The point here is that that case (where `?' is a help char) is
a tiny minority of the contexts where users actually insert
characters (using `C-q' or otherwise). In most editable
buffers, `?' just self-inserts - it is certainly not a "help
character", and at least in these (common) contexts, `C-q'
should stay out of the way.
next parent reply other threads:[~2014-04-03 18:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<891cf052-6085-4ad4-b03b-83379a85ff0f@default>
[not found] ` <<7367bf77-7602-4a02-82ce-804c2f88bf25@default>
[not found] ` <<m3sipuv8og.fsf@gmail.com>
[not found] ` <<831txebg2x.fsf@gnu.org>
2014-04-03 18:38 ` Drew Adams [this message]
2014-04-03 19:24 ` bug#16617: 24.3.50; REGRESSION: `C-q ?' pops up annoying *Char Help* buffer Eli Zaretskii
2014-04-03 19:32 ` Daniel Colascione
2014-04-04 7:44 ` Eli Zaretskii
[not found] <<f842dbc1-09a3-4601-9f98-e580906762c7@default>
[not found] ` <<83r45c98yb.fsf@gnu.org>
2014-04-04 20:20 ` Drew Adams
[not found] <<f87a9a1b-9378-4755-bbac-c88209ed8297@default>
[not found] ` <<83ppky9pyn.fsf@gnu.org>
2014-04-03 20:58 ` Drew Adams
2014-04-04 8:02 ` Eli Zaretskii
[not found] ` <<533DB732.70704@dancol.org>
[not found] ` <<83k3b5a69r.fsf@gnu.org>
2014-04-04 16:25 ` Drew Adams
2014-04-04 19:43 ` Eli Zaretskii
2014-02-01 19:15 Drew Adams
2014-04-02 17:11 ` Drew Adams
2014-04-03 11:04 ` Dmitry Gutov
2014-04-03 14:32 ` Drew Adams
2014-04-03 15:16 ` Eli Zaretskii
2014-04-03 15:23 ` Dmitry Gutov
2014-04-03 13:34 ` Leo Liu
2014-04-03 15:14 ` Eli Zaretskii
2014-04-03 15:39 ` Leo Liu
2014-04-03 15:51 ` Eli Zaretskii
2014-06-19 15:43 ` Stefan Monnier
2014-06-20 0:16 ` Leo Liu
2014-04-03 16:24 ` Eli Zaretskii
2014-04-06 19:33 ` Stefan Monnier
2014-04-07 2:43 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f87a9a1b-9378-4755-bbac-c88209ed8297@default \
--to=drew.adams@oracle.com \
--cc=16617@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=sdl.web@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).