From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: =?UTF-8?B?UmU6IOKAmCh2dGVybSBsb2NhbCnigJkgaXMgYSBtYWxmb3JtZWQgZnVuY3Rpb24=?= Date: Fri, 4 Aug 2023 12:26:14 +0700 Message-ID: References: <80031dc033efbe0ac0e8b337f33712d46970d221.camel@adminart.net> 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="31932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: hw Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 04 07:27:14 2023 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 1qRnLF-00084O-Rx for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Aug 2023 07:27:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRnKg-0007gJ-Nb; Fri, 04 Aug 2023 01:26:38 -0400 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 1qRnKY-0007d7-Ak for help-gnu-emacs@gnu.org; Fri, 04 Aug 2023 01:26:30 -0400 Original-Received: from mail-vk1-xa2c.google.com ([2607:f8b0:4864:20::a2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRnKV-0002UW-PW for help-gnu-emacs@gnu.org; Fri, 04 Aug 2023 01:26:30 -0400 Original-Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-48642c1607bso717034e0c.0 for ; Thu, 03 Aug 2023 22:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691126786; x=1691731586; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=X1JtNe1d4HR4JTXsSC837UjgJFt5G9JvzJp/Mz3xdhg=; b=ScQwMX0sKcVRhAwzKItMzLLGYu9L7MNaXn0rTyzKQFc8RWF0PNDEXkYGjXfdScRUBN 8KYhjvV5TELeCmI8KEReeCsvEYQ6D+VlEc+j4VYWmLOqRQrl3duuxd1gBXySrD6JvHFg u0kWOiH9unDrOYWkep40WIAbnEbAKUebpL453bbC5Hn039hBw7KBiia2FmtT1BIXhxk1 4EXRPGEja6iaFvg8ls09l9nBxPyM3QEa94w5Q6rv5iyN+v6rhlG7ogkdYd+IDjvycB6T 1yUYU3mlXl+i9kX+6ii+0PyjidWemBE5KBiUoe/Ib68x3r/e48N54zdg/krnSOVdEQk6 +PoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691126786; x=1691731586; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X1JtNe1d4HR4JTXsSC837UjgJFt5G9JvzJp/Mz3xdhg=; b=QFkh4HTEhhR3QkBSGHowoe9OYVrhGsBZQdwFOXo21yL50HSPrt7MgWtY0bUNbPHBla DFoREfTNwftY26HVyddUv3Dk9pXVdJsTd5DFm09m9Vvs8boOxoFWdqMLSyIrI5fFOY+N Rrb+zJtNKL9bZyoOz2pNPXgkRqXULDY6JeQRLrCeVcmdOReS4DdO4GyZZcAj8M7ZBk8j Gkf04WGkrXRWbAIRG70q4OlerDBOWEZoeIdInZgqwJSk2yDU2YV/u6uy++NyDbakVNvU LU6cyGgPLBFPljfzIZpy3Jx24WC2LnskSvAAvmcXwkyAbLd17zcYdGLclDhzXJlzkdea sPvw== X-Gm-Message-State: AOJu0YzwwIhY53/kheIYNigoJPltiyQ3p0n3WC+e2gBm+H0Scuhatvag Qd3S1kTQefU8EQwpodk+8BpirbEyf3cxLHuhJhZurstRQL0= X-Google-Smtp-Source: AGHT+IFkI7jydMmnnYQhQUsexVbvxKgC7NYrpU6QHoX1HU+etZ9VFqSi00DPXK4WtEtVaTz1O1lx/y8OJDNJ//FsmTU= X-Received: by 2002:a67:fc46:0:b0:443:7e49:c023 with SMTP id p6-20020a67fc46000000b004437e49c023mr523427vsq.6.1691126785955; Thu, 03 Aug 2023 22:26:25 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2c; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2c.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, 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144584 Archived-At: On Fri, 4 Aug 2023 at 02:26, hw wrote: > Hm, this warning message seems quite misleading. I'm not sure what it > could better say instead though. > > When I look at the desription of if, it says that it'll "do THEN, else > do ELSE". To me, that means that it'll will *do* (like evaluate) what > I say, like (vterm "local") --- not that it would treat THEN and ELSE > sometimes as a parameter of if and sometimes not (i. e. not when > "else"). What else is "do" supposed to mean here? What does it "do" > with 5 in '(if (eq 1 1) 5 6)' other than returning 5 --- or 6 if 1 > wasn't equal to 1? > > And if (vterm "local") can not be treated as a parameter of if, maybe > the warning message could say exactly that. It cannot say that. =E2=80=98if=E2=80=99 does not see (vterm "local") as a = THEN form. It sees the whole ((vterm "local") (vterm-send-string "cd") (vterm-send-return)) and that looks like a function call but with a weird thing in place of the function. So it complains at that. > And perhaps the > description of if could point out that "do THEN" means something else > than "do ELSE". Both are called "expression", and they're not the > same because one gets evaluted and the other doesn't (What actually > happens to it?). The description does point it out, very explicitly and clearly. if is a special form in =E2=80=98C source code=E2=80=99. (if COND THEN ELSE...) If COND yields non-nil, do THEN, else do ELSE... Returns the value of THEN or the value of the last of the ELSE=E2=80=99= s. THEN must be one expression, but ELSE... can be zero or more expression= s. ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^= ^ If COND yields nil, and there are no ELSE=E2=80=99s, the value is nil.