[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: append, push, and add-to-list.
From: |
Hongyi Zhao |
Subject: |
Re: append, push, and add-to-list. |
Date: |
Mon, 5 Jul 2021 10:04:40 +0800 |
On Mon, Jul 5, 2021 at 12:01 AM Jean Louis <bugs@gnu.support> wrote:
>
> * Hongyi Zhao <hongyi.zhao@gmail.com> [2021-07-04 16:52]:
> > I'm curious why `add-to-list' must take 'company-backends, i.e.,
> > (quote company-backends) as one of its argument, while the other
> > functions can directly use the unquoted form.
>
> It must not. But add-to-list is by tradition older and more used
> function. And it will not require cl library such as `cl-pushnew'.
>
> I am verifying:
>
> (type-of company-backends) ⇒ cons
>
> (company-bbdb company-eclim company-semantic company-clang
> company-xcode company-cmake company-capf company-files
> (company-dabbrev-code company-gtags company-etags
> company-keywords) company-oddmuse company-dabbrev)
See my results obtained by putting `(type-of company-backends)' in
scratch buffer, and with the point on any part of `company-backends',
then hit `M-.':
(defcustom company-backends `(company-bbdb
,@(unless (version<= "26" emacs-version)
(list 'company-nxml))
,@(unless (version<= "26" emacs-version)
(list 'company-css))
company-semantic
company-cmake
company-capf
company-clang
company-files
(company-dabbrev-code company-gtags company-etags
company-keywords)
company-oddmuse company-dabbrev)
>
> This is the list, so you may use any method you wish to put elements
> in the list.
>
> --
> Jean
>
> Take action in Free Software Foundation campaigns:
> https://www.fsf.org/campaigns
>
> In support of Richard M. Stallman
> https://stallmansupport.org/
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China
- append, push, and add-to-list., Hongyi Zhao, 2021/07/03
- Re: append, push, and add-to-list., Jean Louis, 2021/07/04
- Re: append, push, and add-to-list., Hongyi Zhao, 2021/07/04
- Re: append, push, and add-to-list., Jean Louis, 2021/07/04
- Re: append, push, and add-to-list., Hongyi Zhao, 2021/07/04
- Re: append, push, and add-to-list., Jean Louis, 2021/07/04
- Re: append, push, and add-to-list.,
Hongyi Zhao <=
- RE: [External] : Re: append, push, and add-to-list., Drew Adams, 2021/07/04
- Re: append, push, and add-to-list., Emanuel Berg, 2021/07/04
Re: append, push, and add-to-list., Emanuel Berg, 2021/07/04
- Re: append, push, and add-to-list., Hongyi Zhao, 2021/07/04
- Re: append, push, and add-to-list., Emanuel Berg, 2021/07/04
- Re: append, push, and add-to-list., Emanuel Berg, 2021/07/05
- Re: append, push, and add-to-list., Hongyi Zhao, 2021/07/05
- Re: append, push, and add-to-list., Emanuel Berg, 2021/07/05
- Re: append, push, and add-to-list., Hongyi Zhao, 2021/07/05
Re: append, push, and add-to-list., Jean Louis, 2021/07/05