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 09:20:12 +0200 Message-ID: References: <87imbm3llg.fsf@ebih.ebihd> <87blhe3kxg.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="2268"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 07 09:21:03 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 1kQ3l0-0000UU-Lk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 09:21:02 +0200 Original-Received: from localhost ([::1]:56156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ3kz-00040A-NG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 03:21:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ3kM-0003x7-VB for help-gnu-emacs@gnu.org; Wed, 07 Oct 2020 03:20:22 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:40412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQ3kH-0000qB-Go for help-gnu-emacs@gnu.org; Wed, 07 Oct 2020 03:20:22 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id k18so1158329wmj.5 for ; Wed, 07 Oct 2020 00:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=psHMQA20JgNA4ubIWV4whodq+mBIC4N9WuOUAxg7M+o=; b=f1IGEZaOmlb2AQOyEPkJWK1TodSKKqflvIGYPSO9NebUPZBK4mheXqsyCtRvvHg5Rt W9/GmlGgEWEaQcxYkYCRkrXkLAQgAjEVK8iqlOl5FblT1Ys8yx9/ubS988On6DkRZYq7 4SCCWRIygfD4XK+HVuGqnFlxzO3o9rtll/DnkLZoT2Ocacrp6LQ5Fqdu0i3sLjhiYwJa A5EdaUrmM9RisgUubtVAQq0iI4t6YmbfYPLxTxa3+3OoAFjmMRJBm06Nd03HwuF3Abe3 IlYDeApwnOLMM5qMBGahoyXKAcqBbPalOQrqMGgkwTuDJn+R6VxOc+a3PcbzQRVEobMs NdcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=psHMQA20JgNA4ubIWV4whodq+mBIC4N9WuOUAxg7M+o=; b=AbevMurtzBs3XQ6NVccfEvxvWbwzh2rCMDPhyVAppVBZJGqzafrbwI0r0wSLg7Oto3 rcpJF6gKYKcCpJXUzZM28RV43IOOcak00Iux2r+pVVOOo2dQH2X2GR26Alc8IrhODKZj /O14yQX3AGtZFiQ/pRqIzREAD1nMWXUQKCcVfF3i2odziXH7Yieo5fiDO4HOxve40NvL aSV+cIzho791a4RWIh9O5B1q2duVYYzkGHXaU9DBANH1mQn/0ph1ZkDhu9FYs1tHUEX9 d55uhCSkmWrncSyABEfSOxEWJZVnxfYE915ntAtgNgXcGxAuD85XgB5TsAoZG7n6UZyR L0+Q== X-Gm-Message-State: AOAM530oAhlG97niUL6yy23t76YbCL0Fv1ywORdW0GNADVxmtX6UCn/+ jbqXL5SvPiCA1IbPcPL8BFbaWT8Uw6k= X-Google-Smtp-Source: ABdhPJxrW+xHRjJo0WpDjc/Kl+CxS2sOMVtUwR+WqP7Ymyk1yxP8mX3KN7ENL5+adJiMIwrypYy84g== X-Received: by 2002:a1c:2681:: with SMTP id m123mr1657517wmm.138.1602055215070; Wed, 07 Oct 2020 00:20:15 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:7146:9ce2:bfee:706c]) by smtp.gmail.com with ESMTPSA id f189sm1374741wmf.16.2020.10.07.00.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 00:20:13 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: (Christopher Dimech's message of "Wed, 7 Oct 2020 09:01:00 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=rpluim@gmail.com; helo=mail-wm1-x336.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:124347 Archived-At: >>>>> On Wed, 7 Oct 2020 09:01:00 +0200, Christopher Dimech said: Christopher> What can one use if there is an else branch with multiple commands, as I would Christopher> like to use it. >From 'C-h f if' if is a special form in `C source code'. (if COND THEN ELSE...) Probably introduced at or before Emacs version 1.1. If COND yields non-nil, do THEN, else do ELSE... Returns the value of THEN or the value of the last of the ELSE's. => THEN must be one expression, but ELSE... can be zero or more expressions. If COND yields nil, and there are no ELSE's, the value is nil. Robert --