[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ELPA] New package: transient
From: |
Drew Adams |
Subject: |
RE: [ELPA] New package: transient |
Date: |
Sat, 2 May 2020 10:33:12 -0700 (PDT) |
> My original use case is: I want to copy an association list,
> I know the function will probably have "copy" in its name
> and "alist",
Maybe, maybe not. Yep, there's a function named
`copy-alist'. A win.
But in general the function you want might have
"copy" and something more general than "alist"
in its name.
What's an alist? It's a list. What's a (true)
list? It's a sequence.
`copy-sequence' (aka `copy-seq') also copies an
alist.
So yeah, it's sometimes about things, not just
their names.
If `copy-alist' didn't exist, then no reasonable
naming scheme would have gotten you there.
You'd have to have some understanding that an
alist is a list is a sequence. And _then_, sure,
good naming can help.
And in this case, just `C-h f copy TAB' gives you
a list of 41 function names, and it's pretty easy
to see find `copy-alist', `copy-sequence', and
`copy-seq'.
(If it weren't easy, it would at least be easy to
match others and remove those other matches,
assuming you have a way to do that.)
- Re: Use elisp--xref-backend in *Apropos* and *Help* (Was Re: [ELPA] New package: transient), (continued)
- Re: Use elisp--xref-backend in *Apropos* and *Help* (Was Re: [ELPA] New package: transient), Stefan Monnier, 2020/05/02
- Re: Use elisp--xref-backend in *Apropos* and *Help* (Was Re: [ELPA] New package: transient), Dmitry Gutov, 2020/05/02
- Re: [ELPA] New package: transient, Eli Zaretskii, 2020/05/02
- Re: [ELPA] New package: transient, Philippe Vaucher, 2020/05/02
- Re: [ELPA] New package: transient, Eli Zaretskii, 2020/05/02
- Re: [ELPA] New package: transient, 조성빈, 2020/05/02
- Re: [ELPA] New package: transient, Eli Zaretskii, 2020/05/02
- Re: [ELPA] New package: transient, 조성빈, 2020/05/02
- Re: [ELPA] New package: transient, Eli Zaretskii, 2020/05/02
- RE: [ELPA] New package: transient, Drew Adams, 2020/05/02
- RE: [ELPA] New package: transient,
Drew Adams <=
- Re: [ELPA] New package: transient, Richard Stallman, 2020/05/03
- RE: [ELPA] New package: transient, Drew Adams, 2020/05/04
- Re: [ELPA] New package: transient, Philippe Vaucher, 2020/05/02
- Re: [ELPA] New package: transient, João Távora, 2020/05/02
- Re: [ELPA] New package: transient, Philippe Vaucher, 2020/05/02
- Re: [ELPA] New package: transient, João Távora, 2020/05/02
- Re: [ELPA] New package: transient, Philippe Vaucher, 2020/05/02
- Re: [ELPA] New package: transient, João Távora, 2020/05/02
- Re: [ELPA] New package: transient, 조성빈, 2020/05/02
- Re: [ELPA] New package: transient, João Távora, 2020/05/02