From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: `when' vs. `and' / `unless' vs `or' Date: Tue, 16 Oct 2018 17:16:14 -0700 (PDT) Message-ID: References: <87o9btob5k.fsf@portable.galex-713.eu> <99393ed6-6947-4246-ad8e-b4984c776a53@default> <87zhvdldoh.fsf@portable.galex-713.eu> <871s8pl9t7.fsf@portable.galex-713.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539735305 17103 195.159.176.226 (17 Oct 2018 00:15:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 00:15:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Garreau, Alexandre" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 02:15:01 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCZUK-0004L3-Uh for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 02:15:01 +0200 Original-Received: from localhost ([::1]:60686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCZWR-0005DR-IE for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Oct 2018 20:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCZVq-0005Cu-RR for help-gnu-emacs@gnu.org; Tue, 16 Oct 2018 20:16:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCZVk-00074V-KR for help-gnu-emacs@gnu.org; Tue, 16 Oct 2018 20:16:32 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:44728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCZVi-0006sa-N5 for help-gnu-emacs@gnu.org; Tue, 16 Oct 2018 20:16:28 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9H0E4PA077109; Wed, 17 Oct 2018 00:16:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=eC/HuNM9JfAV5oIYz+DXqA82F5CuIwvv5hqTXNVm4fE=; b=T23nLaz4uaqetIto+XDJXQDmio/JbCaF1v7JcRcSy6zTIiFvNrzn9oeiMxsWni6kmPBf j0HOJD32/Jl6C4QLYDomRZQgl5P+FtS4gK1+o3/7bL3iLrFY1+zDFDKTlljs1ei0h0Cm r8QmwmraS68mpNqYVDgapCz33m5xmP8zkDzH2QXmbo0egUa7qe99vSeyGNxI2w3HaaKR thwoWxHcCeFUG7fu+5bAFbwrNrgpl/SzsQ/MRKlwRHMj1U9WFtBjpm8tOuhh+tpCrQxX 3aVWZtYToIKLR5Ad9N9ODW0EmqtfkV2koooLjFIu4Brz1ylEeEIc/lwhHsPYRUJroZIn zw== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2n39brbsch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Oct 2018 00:16:17 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9H0GGvj010262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Oct 2018 00:16:16 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9H0GFnL031062; Wed, 17 Oct 2018 00:16:15 GMT In-Reply-To: <871s8pl9t7.fsf@portable.galex-713.eu> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9048 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=474 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810170001 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:118289 Archived-At: > (if (or cond cond) then else) than, canonically (and (not (and (or cond > cond) then)) else) (not sure about a simplified version), which is the > way to write it without an `if', as you said you didn=E2=80=99t use it if= the > condition was more than a single sexp. As I (think I) said, I use (if (or cond cond) then else), if THEN is a sing= le sexp. If THEN is not a single step I don't bother to use (if (or cond cond) (progn THEN1 THEN2...)) else). --- BTW, for transforming sexps with `not', `and', and `or', for readability or for performance reasons, I sometimes use `notandor.el'. https://www.emacswiki.org/emacs/NotAndOr Also, package `el-search.el' has similar possibilities (and many other good things).