From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Newsgroups: gmane.emacs.help Subject: Re: cond construct for situation when a variable is t Date: Sun, 20 Aug 2023 00:43:03 +0200 Message-ID: References: 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="14363"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime , Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 00:43:55 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 1qXUfj-0003WM-7u for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 00:43:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXUfE-0004mo-AF; Sat, 19 Aug 2023 18:43:24 -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 1qXUfD-0004mf-2K for help-gnu-emacs@gnu.org; Sat, 19 Aug 2023 18:43:23 -0400 Original-Received: from pv50p00im-ztdg10011301.me.com ([17.58.6.40]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXUfA-0007qW-VL for help-gnu-emacs@gnu.org; Sat, 19 Aug 2023 18:43:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1692484996; bh=73STlinoWItbcto08wPB6yU0q25lX44aCPZSUlIrTqo=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=04riGYSo1LWK/jkCQFhMCeUCZHzLpkx07zVzdiraUabWBFCmgy/hW3CjcWz8JUfxd LTtmVd3qAZJlDkq2Szrut9TYfdjfTulZfC7LjpnenmVSc9wnD4KxNfUVsYXK3k1vxV k5EPcmKrnldjugz2zf8ZhUY4x+SD+DQ2pL/u1uPwzKoyD0UWijFN5IQy9gsU74pPxo 1NQifz9dxPEUUNAODnr5bnZfxemzVQscFa1LYix7+LFVMDzj6XsZQNS2OzT4/caWwd AAmvEAFoXfwETyZj+1YHToBYbwWlRmAC08Loy2l3PDsaNEa7rvShrUNHViyJORee4p ki4/w6Zbd/Irg== Original-Received: from Rudolfs-MacBook-Air.local (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011301.me.com (Postfix) with ESMTPSA id 503BD18018C; Sat, 19 Aug 2023 22:43:13 +0000 (UTC) In-Reply-To: X-Proofpoint-GUID: H9KQmy9KPYa-2NFjN7TN2MTZo6CZGJmB X-Proofpoint-ORIG-GUID: H9KQmy9KPYa-2NFjN7TN2MTZo6CZGJmB X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2022-02-23?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 clxscore=1011 spamscore=0 mlxlogscore=670 suspectscore=0 mlxscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2308190220 Received-SPF: pass client-ip=17.58.6.40; envelope-from=salutis@me.com; helo=pv50p00im-ztdg10011301.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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:144883 Archived-At: Heime writes: > How can I use the 'cond' construct for the > case when a variable is 't' ? (cond ((equal some-variable t) (message "true"))) For more information, see 'C-h f cond RET'. > I can set a variable to boolean true using > (setq var t), am I right ? Correct. Rudy --=20 "'Obvious' is all too often a synonym for 'wrong'." -- Jeff Erickson, Algorithms, 2019 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia