From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: append, push, and add-to-list. Date: Mon, 5 Jul 2021 10:04:40 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21071"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 05 04:05:23 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Dz9-0005Jd-LO for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 04:05:23 +0200 Original-Received: from localhost ([::1]:34924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0Dz8-0001Xd-Jc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 22:05:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0Dyi-0001XS-EB for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 22:04:56 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:44812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0Dyg-0004TF-Hx for help-gnu-emacs@gnu.org; Sun, 04 Jul 2021 22:04:56 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id u25so22433035ljj.11 for ; Sun, 04 Jul 2021 19:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=1U3BqliH9imiMA9ng8YgBH3d6iF92sQFaZNwNzCSWO0=; b=V04MyKfKnhqljvIBgM0cvc3MI/+y8rGWSvTmv16St53TpHhw3renEM1QUTCbKv6gc6 2mg7IqlmMUdA1yK+NaIKTpuIX9+q/AJgHfPxut/SsduCmCugO3iuTYyRsm+A3cyQWSgb Spf33DE/crmpR21ykiusfFLqnEImRdPr+Xj6APQo+l72Lv8ky5iZtWSboNAK5uR3HdRQ VPb+YQttLaTwXaCVJWPAkrepKI1cBzdGn2x+vik87b1NH32oubFl/vV1hpVr9AztPCui +ere9Zxntx4uAh4oP4rjdHnSzhie7SEwydjruL1W/sPnCFSYdgCPvZzQPwSssraiq+iW x3dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=1U3BqliH9imiMA9ng8YgBH3d6iF92sQFaZNwNzCSWO0=; b=dNPnJ+8uWIEYqALknIbvrBIw687GaqU6x1tNrQu4QCYhmsCaEGgb3uUnv911QGp03+ kvWZ5R/RRQJ2Ux7r8MRWTMjmzb8ZPmOKclJ5fIRJTvWarufoAAkGTeT0NXJXxuleMEQ0 vSQ8s6pWGFJhNqVcv30IL9VvW5GWPUALixRRUSr3AHZTyIjiO6eC10/eDbqrHrzQQ0rs Oc7jLXPGeazcTZ/fdCxvfS1IENQD6rpT+44a7g3CR4RCUXXXBL2YTHyqojDFHZKt2TWD 79Al4zRm0evxGylJzQp1uaPZJBsDkcR630qjA92i+wLcDxWICEvNjoJnkab4WRLPmd9P nAuQ== X-Gm-Message-State: AOAM531sg8UmWJNfzvlPPFqWVabepWGcO8IRxbuTb2XnLaLvcwxA0+4B KrVNKfeCgZNcVqSesC9NkU473qQ//IgozIHVujs= X-Google-Smtp-Source: ABdhPJxhiiKxFdQl1AhprYtBHw2+FLXWlgeHbAb/kzQw8XLzKf/b628ZJOeiabHEoGFTPkDxHOdXdF/cALYBdtyidx8= X-Received: by 2002:a05:651c:b0d:: with SMTP id b13mr9268657ljr.481.1625450691969; Sun, 04 Jul 2021 19:04:51 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131465 Archived-At: On Mon, Jul 5, 2021 at 12:01 AM Jean Louis wrote: > > * Hongyi Zhao [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) =E2=87=92 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<=3D "26" emacs-version) (list 'company-nxml)) ,@(unless (version<=3D "26" emacs-version) (list 'company-css)) company-semantic company-cmake company-capf company-clang company-files (company-dabbrev-code company-gtags company-e= tags 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/ --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China