From: martin rudalics <rudalics@gmx.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 1319@emacsbugs.donarmstrong.com, Geoff Gole <geoffgole@gmail.com>
Subject: bug#1319: Change in where-is-internal causing describe-key problems
Date: Wed, 12 Nov 2008 19:32:26 +0100 [thread overview]
Message-ID: <491B213A.3080001@gmx.at> (raw)
In-Reply-To: <jwvy6zplkd5.fsf-monnier+emacsbugreports@gnu.org>
>>> 22.2 => ([491520] [458752] [442368] [425984] [409600]...)
>>> CVS => ([(128 . 4194303)])
>
> The 22.2 answer lists generic chars (these are chars that stand for
> a whole charset). In Emacs-23, generic chars have been dropped in favor
> of using char-ranges, represented a a cons cell (START . END).
This would deserve a NEWS entry.
Anyway, we can either replace
(if (and (eq function 'self-insert-command)
(eq (key-binding "a") 'self-insert-command)
(eq (key-binding "b") 'self-insert-command)
(eq (key-binding "c") 'self-insert-command))
(princ "It is bound to many ordinary text characters.\n")
...
by something like
(if (and (eq function 'self-insert-command)
(catch 'plenty
(let ((count 0))
(dolist (item (where-is-internal 'self-insert-command))
(when (vectorp item)
(let ((range (elt item 0)))
(when (consp range)
(setq count (+ count (- (cdr range) (car range))))
(when (> count 100)
(throw 'plenty count)))))))))
(princ "It is bound to many ordinary text characters.\n")
...
or drop that "It is bound to many ordinary text characters" stuff.
martin, who'd drop it unless someone finds a better solution.
next prev parent reply other threads:[~2008-11-12 18:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87y6zljyos.fsf@cyd.mit.edu>
2008-11-09 3:19 ` bug#1319: Change in where-is-internal causing describe-key problems Geoff Gole
2008-11-11 9:50 ` martin rudalics
[not found] ` <f5bc73230811110314i86b57f3la079f8c1d17f8513@mail.gmail.com>
2008-11-11 12:40 ` martin rudalics
2008-11-11 14:12 ` Geoff Gole
2008-11-11 19:05 ` martin rudalics
2008-11-12 3:01 ` Stefan Monnier
2008-11-12 18:32 ` martin rudalics [this message]
2008-11-15 6:30 ` bug#1319: marked as done (Change in where-is-internal causing describe-key problems) Emacs bug Tracking System
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=491B213A.3080001@gmx.at \
--to=rudalics@gmx.at \
--cc=1319@emacsbugs.donarmstrong.com \
--cc=geoffgole@gmail.com \
--cc=monnier@iro.umontreal.ca \
/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.