From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: `if' in Elisp (was: Re: title-case function) Date: Sun, 21 Apr 2019 12:34:55 +0000 (UTC) Message-ID: References: <868sw4lye1.fsf@zoho.eu> <86lg03lkep.fsf_-_@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="235245"; mail-complaints-to="usenet@blaine.gmane.org" To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 21 14:35:19 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIBgk-000z2j-Df for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Apr 2019 14:35:18 +0200 Original-Received: from localhost ([127.0.0.1]:52782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIBgj-0005r0-Cm for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Apr 2019 08:35:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIBgT-0005qN-OI for help-gnu-emacs@gnu.org; Sun, 21 Apr 2019 08:35:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIBgS-0005F6-N5 for help-gnu-emacs@gnu.org; Sun, 21 Apr 2019 08:35:01 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:45138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hIBgS-0005DS-DL for help-gnu-emacs@gnu.org; Sun, 21 Apr 2019 08:35:00 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3LCNZXf158191; Sun, 21 Apr 2019 12:34:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=CBHJT7P4SmeFuGKsqvx7JBT14FaLWW87srivO1Lg0mU=; b=y9UliVh0773Dh0iD7K9++kt+9r66mEh7D/0UUJ2eEm71z16rML1NO8LGxrmrh5S14ynd aBAjZFjULfmxrXyC7LVQ0P8uh56zB13XjQ2JAAeIgL1UJtNb3laMEi/GStfYKwJOVqfY 6f3/y5cYIfTnYLsaoazDEfiOciPp22t6DSfTCi2mYyaCDt7rRq2CvTdJPQvX0I918h8u 070g/4vpnIa066nkR21tpY3TwjmiCDtPGPpEnpEywG7JN4LeuepfFZR9Gqfz00gO+FxU d57RwqivABhmHAbIvWv7+X6dtVpxHAJZ5NHiMsJzhEYmWIxsZYVhqGqAWzOAYbOBLOyp ig== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2ryv2ptx75-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 21 Apr 2019 12:34:58 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3LCYHTM097276; Sun, 21 Apr 2019 12:34:57 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2s0f0ukm78-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 21 Apr 2019 12:34:57 +0000 Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3LCYuJT004364; Sun, 21 Apr 2019 12:34:56 GMT In-Reply-To: <86lg03lkep.fsf_-_@zoho.eu> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9233 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210096 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9233 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904210096 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120011 Archived-At: > >> Do you mean using progn for the ELSE in the > >> if expression? From the documentation on > >> `if': > >> (if COND THEN ELSE...) > >> THEN must be one expression, but ELSE... can > >> be zero or more expressions. > > So yeah, progn is unnecessary. >=20 > Unbelievable, when/how did this happen?! After Lisp 1.5 and before Common Lisp v1 - 1970s probably. For Emacs Lisp, it's been the case since Day One, I believe. http://www.softwarepreservation.org/projects/LISP/book/LISP%201.5%20Program= mers%20Manual.pdf https://en.wikipedia.org/wiki/Common_Lisp_the_Language http://www.math.utah.edu/docs/info/elisp_10.html#SEC110