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: append, push, and add-to-list. Date: Sun, 4 Jul 2021 11:18:00 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23208"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 04 05:18:57 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 1lzsem-0005oQ-2O for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 05:18:56 +0200 Original-Received: from localhost ([::1]:57144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzsek-0001H1-F7 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Jul 2021 23:18:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzse8-0001Gq-Il for help-gnu-emacs@gnu.org; Sat, 03 Jul 2021 23:18:16 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:42531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzse6-0007fl-DE for help-gnu-emacs@gnu.org; Sat, 03 Jul 2021 23:18:16 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id r16so19498011ljk.9 for ; Sat, 03 Jul 2021 20:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=04hDGed7uJNefGt+sxurIxkoPfGGg4qkVtoM8uHxuz4=; b=vKZipi60Q4k/WZm+FP5fRoL9eJHKLore7Pl0h2q3Q97MhIJyFtf7r8aAcoMbSGXbaE SmA1zhHSKS1sv/3ctrSRHp9vE89DrbQhH4ZLcvPTdtf5IajRHvL14pdmJ5SLWfjJanto HAeDtVkSswvOJMdU1NHiRwfXFFWxSa3bRAzwLtJNzGXupvGeyiJdsTrReJEFuHoHfmdm spRBWUW49gOXmcVpaoBNDsMKtMkEoBijvOLlR6e2bR19I64xpIdOKzyGE2Bj7pBO+0V8 lLQvlIiJkvq6gVXQy3ynb/mT9+sNOzf6P8O0OziLW/q5/oC+1LCnih93xMHLETLP1civ oDKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=04hDGed7uJNefGt+sxurIxkoPfGGg4qkVtoM8uHxuz4=; b=m8lcqvl62a2vg3EXvOlE2QboqJ5FoU+nHGMGyzTOOAyboVbEV0cA8ePAkjrmbaDpdU h5WCHvfI/7CSjeN0H+2z4Omu5QhmawhvnBRiAzqSxzuLtwptPBHHb4FZjVHz24kXvhfU LlrRie35LsrkXm6yi7AHkzieS8KAK1pP7or1J0FvSdOI8napZxirtergte8viHN/mfHA kpbVdYInz6TxncnUYA6yJDwn8+qOt4OU4l7hEhmeskiNd432XXTR30fIwnURl74gAcqF T/E5c0WpS2ZSnum3edvLPSn8SpgT9fdT7tS79lWP72cmaglSqapEpS5MJnfVThsc0Lu/ QvSQ== X-Gm-Message-State: AOAM531mkOI9sUbZrsET9LU9+tSezMOUqV2rv7VqTHwn26rST9FNbm6x ddzz+iRG/UpX05UnwM/G/BiAL1hazddQEYrd24C4e3naO9do3AgMOSg= X-Google-Smtp-Source: ABdhPJwAZJYG3kueSbY1eQ2iL3yM+jMKNWoffF/7whvj44m/J0DvGC3XM9cw87qXw5vchKpdY8oiSGKG9TQ4kQ1dLfw= X-Received: by 2002:a2e:9652:: with SMTP id z18mr5627636ljh.413.1625368691620; Sat, 03 Jul 2021 20:18:11 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x235.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:131443 Archived-At: I've noticed there are some similar functions, i.e., append, push, and add-to-list, for revising/updating the content of a list. But I'm still not so clear on the specific use scenarios for them. Consider the following command [1]: (push '(company-capf company-ispell) company-backends) What's the equivalent representations using append and add-to-list? Which methods are preferable? [1] Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China