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: The cons syntax format used by use-package. Date: Sun, 19 Sep 2021 12:14:28 +0800 Message-ID: References: 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="3327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Daniel Fleischer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 06:15:53 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 1mRoF6-0000ke-Rj for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 06:15:52 +0200 Original-Received: from localhost ([::1]:45028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRoF3-0004JA-3U for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 00:15:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRoDz-0004Iw-K6 for help-gnu-emacs@gnu.org; Sun, 19 Sep 2021 00:14:43 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:34404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRoDy-0003qL-82 for help-gnu-emacs@gnu.org; Sun, 19 Sep 2021 00:14:43 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id g41so18258570lfv.1 for ; Sat, 18 Sep 2021 21:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RaPSYsv+pljo1ISys6UxzTIgYT8kRMXnFL4xr56ME54=; b=D13N/8j0HxXpAjugFkue3TKVXApd7R6m4moxOGZAsi4wQHNwj8J3I3NIIO9UEFJeJ4 e5Vl/WKUMIvlYG+/OaTc8zyP51hl6F+LM/z1D77I6Idoab/72qNiytsJNdeCIB8GVuNl QZc+9Q4CGgcBhQIMgb7FUjqZns4uVE0ou80w2fp1CkumFEJMLoaZCDfT5GWicuiZ0b2A n0pYRJKBmZKLudoJl0OgAH/FuqHXBhSMubNaT161jGb9vjXLpWwv7GORA4R7HgHgW99S o9XRtffzov0ZAOXDD/RNtVTOPEXULddGw4iotd9cvJpEAnUALWJtvNqdMd77Vfxr3xVN mXxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RaPSYsv+pljo1ISys6UxzTIgYT8kRMXnFL4xr56ME54=; b=pQcY53mJBdSJg2+qNGkeCfQWE5EAl4Z9Tr62Iz2m/ll60GiFmYPFo9Z/RMXryCL2s6 lv9sGeps66MorzeOEa82yp0c1TJORAjQWITPExTAj9j2/2nVtV6eU01uGu8FbkDklPsT uMFL2OugpLWpLjD3tNMK1XPvjza8PM7tEOsupBgucBMk/V2yCBAWpgatvFuQCb4iUfzc rBOjPOI0oacPLFIshzgG8h955O9EMEz4LnGd1L4dI9O721c+mFfJdZ5H3S05gEx5AOPu DZvnj08EWL8gWVcV4hDCsAMtzpZZHZBfM9MpHiE8WiufiaxL6EUTc1gy4zebBOOUZUeH 4o8Q== X-Gm-Message-State: AOAM531fd9jn6KL9XYTtAD2QNrY+Xuu4rzq8Uo24aJtlj4zhb4QzL+Eg xfhP0p8j8ZB2UafqUUjw8X6nFRmr/Fq/eJSx2jY= X-Google-Smtp-Source: ABdhPJy0yljnNc/7Y8Da+4gCaMu5rxEZYHwfZJULzqelk/+iNtk2v6558qggkUzNNVrxgpBPV+apCPeDDia0Ww8sZWQ= X-Received: by 2002:a05:6512:33c3:: with SMTP id d3mr14017002lfg.194.1632024880611; Sat, 18 Sep 2021 21:14:40 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x133.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:133097 Archived-At: On Sat, Sep 18, 2021 at 9:21 PM Daniel Fleischer wrote: > > Hongyi Zhao [2021-09-18 Sat 21:15] wrote: > > > (use-package ace-jump-mode > > :hook ((prog-mode text-mode) . ace-jump-mode)) > > > > If I wanted to extend the above example with more hooks, which of the > > following would be correct: > > The 2nd one, but why not > > (use-package ace-jump-mode > :hook ((prog-mode text-mode latex-mode) . ace-jump-mode)) This leads me to the following conclusion: Any number of pared nested parentheses is equivalent in this case, i.e., all the following forms are valid and equivalent: :hook ((prog-mode text-mode latex-mode) . ace-jump-mode)) :hook (((prog-mode text-mode latex-mode) . ace-jump-mode))) :hook ((((prog-mode text-mode latex-mode) . ace-jump-mode)))) But according to my tries, all the above three forms work, but the following ones don't: :hook (((((prog-mode text-mode latex-mode) . ace-jump-mode))))) :hook ((((((prog-mode text-mode latex-mode) . ace-jump-mode)))))) [...] Any hints for this phenomenon? Regards, HZ