all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Genovese <genovese.cr@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 10191@debbugs.gnu.org
Subject: bug#10191: dired-query (in dired-aux.el) fails for certain help-char's, Emacs 23 and 24
Date: Fri, 2 Dec 2011 08:22:43 -0500	[thread overview]
Message-ID: <CAPum5Fh=R35FxcAH3wT-x5OhjThR3-RQ--OpUmB93pxTPqsELg@mail.gmail.com> (raw)
In-Reply-To: <m3y5uvwet1.fsf@hase.home>

[-- Attachment #1: Type: text/plain, Size: 2362 bytes --]

Hi Andreas,

    I understand that and tried to specifically address that point in my
report.
But I could have been clearer.

    I think that a change in this regard, even the minimal one I proposed,
is
worthwhile for at least two reasons. First, because setting help-char to
?\M-\C-h works
in terms of its main functionality (acting as a help character), it seems
unnecessary for
it to break a dired operation because of the formatting of a string.
Second, if the function
is going to be doctrinaire about help-char's type, then it has an
obligation, I think, to recognize
that not everyone uses a help "char" and might use help-event-list instead.
It should
then still do a characterp to avoid an error in those cases, possibly using
the car of
help-event-list for the error message when the characterp call returns
false.
This is not that different from my proposed change, and I'd be happy with
that.

     On the broader question, I would also argue that help-char should be
"help-event"
or "help-keyboard-event".  This is an example of one of the things in emacs
that are
IMHO too closely tied to the default keymap.  I set C-h to
delete-backward-char,
M-h to backward-kill-word, and C-M-h to help char. This is a quite
efficient arrangement
and should not cause breakage in simple services just because it deviates
from
the default. This is Emacs after all. (Also, from the naive user's
viewpoint, there
is not that much difference between specifying ?\M-\C-h and ?\C-h.  They
both *look*
like characters.)

    -- Chris


On Fri, Dec 2, 2011 at 03:36, Andreas Schwab <schwab@linux-m68k.org> wrote:

> Christopher Genovese <genovese.cr@gmail.com> writes:
>
> > For example, I set my help-char to ?\M-\C-h, which works fine in general.
> > But despite looking like a character, ?\M-\C-h does not satisfy
> > #'characterp, which causes
> > the problem. Technically perhaps, help-char should be a character but
> from
> > the user's point
> > of view, both of these should qualify.
>
> ?\M-\C-h isn't a character, it is a character with modifiers, and as
> such does not qualify.  A character is something which can be inserted
> in a buffer or string as-is, for example.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>

[-- Attachment #2: Type: text/html, Size: 2964 bytes --]

  reply	other threads:[~2011-12-02 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02  6:27 bug#10191: dired-query (in dired-aux.el) fails for certain help-char's, Emacs 23 and 24 Christopher Genovese
2011-12-02  8:36 ` Andreas Schwab
2011-12-02 13:22   ` Christopher Genovese [this message]
2011-12-02 14:18 ` Stefan Monnier
2011-12-02 16:37   ` Andreas Schwab
2011-12-02 17:26     ` Glenn Morris

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='CAPum5Fh=R35FxcAH3wT-x5OhjThR3-RQ--OpUmB93pxTPqsELg@mail.gmail.com' \
    --to=genovese.cr@gmail.com \
    --cc=10191@debbugs.gnu.org \
    --cc=schwab@linux-m68k.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.