From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Cc: 冯书 <tumashu@163.com>, "Stefan Monnier" <monnier@iro.umontreal.ca>
Subject: Re: elpa.gnu.org packages requiring external packages
Date: Fri, 02 Feb 2018 16:43:38 -0800 [thread overview]
Message-ID: <87y3ka6gxx.fsf@ericabrahamsen.net> (raw)
In-Reply-To: jwv1si4msk3.fsf-monnier+gmane.emacs.devel@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> AFAICT the pinyin table is only kept in the quail table: quail tables
>>> are somewhat similar to keymaps, so they work well to incrementally map
>>> a sequence of ASCII chars to the possible chinese characters, but for
>>> pyim-hanzi2pinyin we'll need to traverse this table to build a "reverse
>>> table" (most likely represented as a char-table).
>> Okay, I'll take a look.
>
> Thanks. I played a bit with quail tables in the past, so even though
> I don't understand them 100% I should be able to help if needed.
By dint of heroic grepping I found the simplest entrypoint to the
table:
(nth 2 (quail-package "chinese-py"))
But this value is already heavily processed in the *wrong* direction
(optimized for pinyin-to-character). It's built from the intermediate
file "lisp/leim/quail/PY.el", which is produced during `make' from
"leim/MISC-DIC/pinyin.map", which is the same source as Feng Shu uses
for the pyim package.
So the data is accessible in different formats at different stages:
build, compile, and load. Now I'm thinking that it might make sense to
build the reverse table earlier on -- anyway, I'll explore what's
possible there.
[...]
>>> I think it makes a lot of sense to fold helm-ebdb into the ebdb package,
>>> without adding `helm` as a dependency. This way, users of Helm and EBDB
>>> won't have to additionally install helm-ebdb to enjoy the combination of
>>> the two: just by installing `ebdb` and `helm` they'll get `helm-ebdb`.
>> Oh I'm all in favor, but I assumed it would be a no-no from a
>> dependency-graph point of view.
>
> Not at all (actually, back when we got EBDB into elpa.git I mentioned
> this possibility).
Wish I'd been paying closer attention!
>> If it doesn't matter, I can fold this back into ebdb and just use
>> `declare-function' with "ext:" to quiet the compiler?
>
> Yes.
>
>> In which case, I might as well just do the same for
>> `helm-marked-candidates' and leave it as-is?
>
> Yes.
>
>> I've also got these other silly little packages -- counsel-ebdb,
>> company-ebdb -- etc, should those all be reabsorbed? There are an awful
>> lot of counsel-* packages in there already.
>
> I don't have an opinion on counsel-ebdb, but for company-ebdb an even
> better option is to turn the company backend into
> a completion-at-point-function (so it works not only for company users
> but also for old-style TAB-completion users).
company primarily does popup-on-a-timer; I think calling it as an
explicit completion command (while supported) isn't how it's expected to
be used.
>> Sorry, I'm just trying to figure out best policy for managing this kind
>> of stuff.
>
> And overall, I really wish someone could sit down, take the ivy,
> company, helm, and completion-at-point-function APIs and design a new
> API which can be used by all of those UIs so you don't have to implement
> N different slight variations of the same thing.
But they do their things in such different ways. Some work on a timer
with a popup (company), others tie into the existing completion
mechanisms (helm and ivy), and others provide their own versions of
basic Emacs commands (helm and counsel). How much unification is
possible?
Eric
next prev parent reply other threads:[~2018-02-03 0:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-30 7:22 elpa.gnu.org packages requiring external packages Glenn Morris
2018-01-30 14:08 ` Richard Stallman
2018-01-30 14:28 ` Eric Abrahamsen
2018-01-30 16:13 ` Stefan Monnier
2018-01-31 17:50 ` Eric Abrahamsen
2018-01-31 23:11 ` Stefan Monnier
2018-02-01 17:54 ` Eric Abrahamsen
2018-02-01 19:23 ` Stefan Monnier
2018-02-03 0:43 ` Eric Abrahamsen [this message]
2018-02-04 20:16 ` Dmitry Gutov
2018-02-06 19:45 ` Eric Abrahamsen
2018-02-02 13:49 ` Feng Shu
2018-02-02 16:12 ` Stefan Monnier
2018-01-31 1:25 ` Richard Stallman
2018-01-30 19:04 ` 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=87y3ka6gxx.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tumashu@163.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 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.