From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Function passing flag Date: Tue, 08 Mar 2022 19:00:56 +0000 Message-ID: References: <87pmmwpbni.fsf@zoho.eu> Reply-To: goncholden 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="26411"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 08 20:01:51 2022 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 1nRf5i-0006j8-47 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 20:01:50 +0100 Original-Received: from localhost ([::1]:47808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRf5h-0001ZA-17 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 14:01:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRf54-0001Yk-QP for help-gnu-emacs@gnu.org; Tue, 08 Mar 2022 14:01:10 -0500 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:32447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRf4x-0001ni-VN for help-gnu-emacs@gnu.org; Tue, 08 Mar 2022 14:01:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1646766058; bh=DiLWqyMd1W4wrutFDleycyX3qGXYGazUSFEuyyyOJcs=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=oSZwnqg9fv5/1mR2zYnePeR37UPb8lf8v4J4BrXYo2dJihyZJVYEmRQFG+OGKdXQa pk0lImdxi8qAka8zQjlqVFGw5+7boE60SQmsxdu452aVbozhHmDo1w2hbmX9tM6QoC FJdm2ZMd8MzeLt15gyrbG57Iie5xZ1uTNwkHFY25Ts4aKMvfQr+EG22BqnmRIfA+sR 36z5zL/o2da/1um7yOdVPRhyODwQT+wDzaBM5q4U1WrvDZqeVY03TNMNkAbrZxEjbn 3++r5Vg49mGOsowtFo0NKhYxREsEGz1YhvBRJFyCLaNgwyPZ7QpNfmLEBQZrO3sv9g 6wrIXUBzYG2kQ== In-Reply-To: <87pmmwpbni.fsf@zoho.eu> Received-SPF: pass client-ip=185.70.43.19; envelope-from=goncholden@protonmail.com; helo=mail-4319.protonmail.ch 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_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:136402 Archived-At: ------- Original Message ------- On Wednesday, March 9th, 2022 at 6:00 AM, Emanuel Berg via Users list for t= he GNU Emacs text editor wrote: > goncholden via Users list for the GNU Emacs text editor wrote: > > > I want to use a switch for two pieces of code, but want to > > > > use a flag passed through the function argument. How is this > > > > customarily achieved ? > > What is it that you want to do? Want to use an if-then conditional, but based on a parameter passed to the = function as argument. > -- > > underground experts united > > https://dataswamp.org/~incal