From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Executing part of the code instead of another Date: Wed, 07 Oct 2020 11:53:22 +0200 Message-ID: References: <87imbm3llg.fsf@ebih.ebihd> <87blhe3kxg.fsf@ebih.ebihd> <875z7m4bdx.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31194"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 07 11:53:59 2020 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 1kQ690-000807-CF for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 11:53:58 +0200 Original-Received: from localhost ([::1]:56220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ68z-0007cO-Em for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 05:53:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ68V-0007cI-U8 for help-gnu-emacs@gnu.org; Wed, 07 Oct 2020 05:53:27 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:50311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQ68U-0002SY-Ca for help-gnu-emacs@gnu.org; Wed, 07 Oct 2020 05:53:27 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id 13so1643292wmf.0 for ; Wed, 07 Oct 2020 02:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=HxRGivI1cYNvVCHTnvTmkrrBgB51NEMbQqNFnl05RwM=; b=dh9O3uhIijoFGaEA2cOVweocmvQQFkXu1FGn5JKvMSt+VPknK35WhexPI348AITAam UUqKqlNRV68KvBhY9g4PvRq171Qufj93pbRqxUnKfwmAq5SQ5AinrejY8sc/0T4WqEoo A+HWwk2SlxVrxTAymWuiqQ6Tu/JeRc4A4NzZ2LnPdlVbA1WRN6B76/rAxNNmTP7HOfN+ 1bNKMiv0krBox+g71Ng1Iz2zC8eqKuZmuCBdg1OXhF/5ZS9Jx6ls29KIU71EN48Ei4fU /2lNHMIO18+AP50+1y0UbVqrcfgKR5JsZrMhG+LeT0zpP2mpW4EaWlT6VMil+jRhsDYF KBOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=HxRGivI1cYNvVCHTnvTmkrrBgB51NEMbQqNFnl05RwM=; b=EhRuoR4qkTTq8AQFoHl/oL+y9O8r+hzS/SlcCRePUNACJMHlMRWG4Z8hCe95JOE43P mCHQpoOHtY2K0IArbd4HcG6c2HULyDGh9okST5i1B+GWkXBLkThubcO4uibGhJ5ucldp 7EkSMj18xaiaNCjGzihMrRKfH8j3iqzfsV+8PBdwzHX6m4jchtoDE6n0Y6ND7kLegAYi H877E5TeygP7CRhxrpvP88XKy2EYyRTZWydsI2aVUSNqISgl8rojc09+R9P4vYOSPG3/ ZejC54rJvGFKqQAYVvwPeum7RYQP0NvUeJod4PFcHFNHySbazMr/dUXnftFjN/ctyiQj qbyg== X-Gm-Message-State: AOAM530bG0PMobaqgSnkoQLQQo9LPbDCKHvpz5aaEsgVUpI24nPw49ev JdyqlzX1N07cf3uX7xGOfADN5KS7HCs= X-Google-Smtp-Source: ABdhPJy07YqMEuj76MAioCRAwqgloC5wyhXyefk93DmSi4vBNlSCjF8foTgt6qXZOYzgXqCFqP9vpw== X-Received: by 2002:a1c:40d5:: with SMTP id n204mr2326724wma.148.1602064404393; Wed, 07 Oct 2020 02:53:24 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:14a7:66ff:6962:a5ec]) by smtp.gmail.com with ESMTPSA id u5sm2448126wru.63.2020.10.07.02.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 02:53:23 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <875z7m4bdx.fsf@ebih.ebihd> (Emanuel Berg via Users list for the's message of "Wed, 07 Oct 2020 11:46:02 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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:124352 Archived-At: >>>>> On Wed, 07 Oct 2020 11:46:02 +0200, Emanuel Berg via Users list for the GNU Emacs text editor said: Emanuel> Gregory Heytings via Users list for the GNU Emacs text editor wrote: >> In general you can do: >> >> (if [condition] >> (progn >> [multiple statements of the "then" part]) >> [multiple statements of the "else" part"]) Emanuel> And the value returned, if condition, is the one of Emanuel> the last one in the "then" or progn part - the Emanuel> nth one! Emanuel> There is also a `prog1'! Emanuel> But no prog2 :( ? I see a prog2 macro in subr.el (it used to be a function, going back to at least 1994). Robert --