[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: woman.el broken?
From: |
Stefan Kangas |
Subject: |
Re: woman.el broken? |
Date: |
Wed, 3 Mar 2021 08:19:44 -0600 |
Eli Zaretskii <eliz@gnu.org> writes:
> If this is performant enough, I don't at the moment see any reason to
> have it in C. Of course, the few places that call Flookup_key from C
> will need to be analyzed whether they need to call the internal
> function or the Lisp wrapper, and modified accordingly.
OK. I will write up the patch and do some benchmarks.
>> (defun lookup-key (keymap key accept-default)
>> (or (lookup-key-internal keymap key accept-default)
>> (and (vectorp key)
>> (let ((lc-key `[,@(mapcar
>> (lambda (s)
>> (intern (downcase (symbol-name s))))
>> key)]))
>> (when (not (equal lc-key key))
>> (lookup-key-internal keymap lc-key accept-default))))))
>
> This is not the only transformation we should apply, IMO: we should
> also convert "Foo Bar Baz" into "foo-bar-baz". See the Dired menus
> for examples.
Yes, I will add that too.
For "Foo Bar Baz", is it enough to look for "foo-bar-baz" or would we
need to look for both "Foo-Bar-Baz" as well?
- Re: woman.el broken?, (continued)
- Re: woman.el broken?, Lars Ingebrigtsen, 2021/03/01
- Re: woman.el broken?, Eli Zaretskii, 2021/03/01
- Re: woman.el broken?, Eli Zaretskii, 2021/03/01
- Re: woman.el broken?, Stefan Monnier, 2021/03/01
- Re: woman.el broken?, Eli Zaretskii, 2021/03/02
- Re: woman.el broken?, Lars Ingebrigtsen, 2021/03/01
- Re: woman.el broken?, Lars Ingebrigtsen, 2021/03/01
- Re: woman.el broken?, Lars Ingebrigtsen, 2021/03/01
- Re: woman.el broken?, Stefan Kangas, 2021/03/02
- Re: woman.el broken?, Eli Zaretskii, 2021/03/03
- Re: woman.el broken?,
Stefan Kangas <=
- Re: woman.el broken?, Eli Zaretskii, 2021/03/03
- Re: woman.el broken?, Stefan Kangas, 2021/03/03
- Re: woman.el broken?, Stefan Kangas, 2021/03/05
- Re: woman.el broken?, Eli Zaretskii, 2021/03/06