From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Keywords as function arguments for control flow Date: Sat, 30 Nov 2024 17:37:29 +0300 Message-ID: <0FC5124D-DF6B-47C9-B70F-E64D88557C75@gnu.support> References: <555DCC6F-72A4-428F-8AF3-1839FC1EB734@gnu.support> <8CHE2YXGxUmNQ6T0h8fwer42k9A2kWZtekFLSjo1iUh6YQWFRFlAgF75LJ5U4stImz_1yEfNwmDrVJPEpR6QJ_1mnMS0VWKKpxFyr3oGiMo=@protonmail.com> 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="15394"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android To: Heime , 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 Sat Nov 30 15:38:23 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 1tHOc2-0003vP-MT for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 15:38:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHObO-0003KH-2B; Sat, 30 Nov 2024 09:37:42 -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 1tHObM-0003Ju-MC for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:37:40 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHObL-0000E3-05 for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 09:37:40 -0500 Original-Received: from [127.0.0.1] ([::ffff:197.239.10.196]) (AUTH: PLAIN admin, TLS: TLS1.3,128bits,ECDHE_RSA_AES_128_GCM_SHA256) by stw1.rcdrun.com with ESMTPSA id 0000000000081FE0.00000000674B232F.002F48BB; Sat, 30 Nov 2024 07:37:35 -0700 In-Reply-To: <8CHE2YXGxUmNQ6T0h8fwer42k9A2kWZtekFLSjo1iUh6YQWFRFlAgF75LJ5U4stImz_1yEfNwmDrVJPEpR6QJ_1mnMS0VWKKpxFyr3oGiMo=@protonmail.com> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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:148464 Archived-At: (defun cuprat (args) (let ((seqr (plist-get args :seqr))) (cond ((eq seqr 'global) (global-whitespace-mode 1)) ;; if seqr is 'global (t (whitespace-mode 1))))) ;; default case for o= ther values (cuprat '(:seqr global)) ;; Pass the :seqr keyword as part of the plist (cuprat '(:seqr other)) ;; Pass the :seqr keyword with a different value Jean