From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: List Argument followed by &rest Date: Thu, 12 Dec 2024 22:09:06 +1100 Message-ID: <86ttb9ma3x.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26038"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 12:09:53 2024 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 1tLh4r-0006at-J7 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 12:09:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLh4P-00035t-QP; Thu, 12 Dec 2024 06:09:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLh4G-00033F-FX for help-gnu-emacs@gnu.org; Thu, 12 Dec 2024 06:09:19 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLh4E-0004GL-03 for help-gnu-emacs@gnu.org; Thu, 12 Dec 2024 06:09:16 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-2166651f752so4521265ad.3 for ; Thu, 12 Dec 2024 03:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734001752; x=1734606552; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=TnJTX7HmpNXygnqPk8IVfmw+uuKKeXr/FM6INm+8ReE=; b=Hn7hkgvefGjcrgI/wv8JD5aCqOKJm1NN1Rrdb6KVUaY7H5UQXaR7rmb1GfdhlSBdXk ai5yBgAf1slNkP63IMcfNxdKUGy13qPUgByMKyCmNfN6zvDDNmuIG3r4QfMJmDZwMB3h kN2wZPEvdXnUbi48NOGTGUHjCBwg7zTU6ggArx2Mg4lmQB3GVCl4w8p1rC68fNbPEwD5 8HJBNyo8eOE9oIij0z92X9UV7jE+uF4IpFa0KdhSNvfsFzkS09mrS+BnPCkkpkV9hdjA Qdybq6AAUMUkpqiGxewyqwiaCHq+u3gP4TyJtIk0tbll+tOCXeX3bXIq5sJRJ4EoT2oP gN/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734001752; x=1734606552; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TnJTX7HmpNXygnqPk8IVfmw+uuKKeXr/FM6INm+8ReE=; b=aCjBV/hRgGNS8QT7NdP271gj2+NX8gqODByu9kMwgYGIlplwSgGQKG5NzCxbczbNJo 5PxI6NEQfKTlJOf7IOzxu8vNd9do3KCAZbVnHmXT4OM3qod127mlqFFY7oq6f38Xnx1S 7HCEmxBDVX+P3sIxpvTxFZaRipNso6+sX7Zs6GFj1SWYWd+Pe/69eaLMKEAAv12T4cbB lyC81DiXUrEYdps7pTAQQwfxZuisVip8RdShkacDTlraxbV4X7Dz00q9AhLjTvkggTFJ bQkEXQBm31KsKyxzbX6QtyPUZXknoD7nG0JpQITv+dfO+b9Nj80aUEcudBWWlvLtLA9G heLQ== X-Gm-Message-State: AOJu0Yw2hroRhoiP0hoyQoxukLx9+VnLeGYDLvfrn0QrFrWXqiiXgl7p KcuhcK+ifEKNqRGIKEBXzp59TrvzGbPViUO4r/VD5+ViQ8k6T4j9 X-Gm-Gg: ASbGnctMa/c6NbcGfxBKUo39zCqiSmm3xV9Crc6mOCv/ebDjJLXKsN78jaCVm0Yg6Xf J/eai5ni7uznW93HLKzJAFmEfCYD6vOlNrG3UekweIEPPfA+1mK+NFxRIExcUkJCt4e2aeall5R C7EaQYDQnTHxJDVmK7I0UtxCTkTE1FNA2eXc+kA7TpXfEDkrB5AZwKigYQaccxi7yw63oAZgzXY 0k0HnsleJhKeaA1qn59W9uAJA00up3ZdNKG/SugutOzqOfdqgS4gt+faTTWuL64Lvjp11wNZ2KQ bKv8e4p5AwBTguTGq7N86if1PZJUKPBRNM/rDIR/E1aB X-Google-Smtp-Source: AGHT+IFap1LeDHG87DtnaH+VCybi6lm2deU5EpT//0sBJ69wLtbFp8hUlkLzcyLxu8AJt9s3bS1Ahg== X-Received: by 2002:a17:903:1211:b0:215:5625:885b with SMTP id d9443c01a7336-2178af04744mr50215835ad.52.1734001751881; Thu, 12 Dec 2024 03:09:11 -0800 (PST) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-216669077f7sm55054355ad.161.2024.12.12.03.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 03:09:11 -0800 (PST) In-Reply-To: (Heime via Users list for the's message of "Sun, 08 Dec 2024 00:12:14 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=joel.reicher@gmail.com; helo=mail-pl1-x636.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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148772 Archived-At: Heime via Users list for the GNU Emacs text editor writes: > Consider the following function with an argument and with > &rest. > > The first argument is a list (if single element is provided, it > is converted to a list). > > Thus I can write > > (medha-kntlr 'armg basic substring) > > and > > (medha-kntlr '(armg go) basic substring) > > And styles can also be considered as a list of arguments, am I > right? Is this how it works? > > (defun medha-kntlr (seqr &rest styles) Doesn't the "a b c d e" example at "(elisp) Argument List" answer this? Is the documentation unclear? Regards, - Joel