From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cond* Date: Sun, 07 Jan 2024 22:47:23 -0500 Message-ID: References: <87frzuae9n.fsf@posteo.net> <871qbatqc8.fsf@posteo.net> <87wmsz7lzn.fsf@posteo.net> <87edf1m7lq.fsf@localhost> <87frze76wc.fsf@localhost> <87y1d2vc49.fsf@localhost> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6339"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 08 04:48:23 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rMgch-0001Ni-4W for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jan 2024 04:48:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMgbl-0001cx-1y; Sun, 07 Jan 2024 22:47:25 -0500 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 1rMgbj-0001cS-GW for emacs-devel@gnu.org; Sun, 07 Jan 2024 22:47:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMgbj-00045h-7e; Sun, 07 Jan 2024 22:47:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=XQZsanXDqaSXOrqL3pczPVD8MDrg1198hRKH674CG/M=; b=ofGgMvmzRU4s XirCGN71/W74DwZ1/tTUKrkMaZH3kcnoccINg2JZkH/8HW8qjAej3ef64FmA1yIahinBYRPE+/LlG WSQ9cv8Yn+w3aq6i8hAkJPApRFj/DbytCg84W5kHySBhBHWbn0hMQxU9bc3iv9HIdl+sT/m/Ym9ZD V/PW1B3BYg5k2ookDvz7imu2sxwcdAiIzmmLJpe+ZWluvSeA9vrHw3gPc9sgyDq1nleb7DjHiDrU8 NwxWddmrI6kYDDgqPwCujO9R6y/qpHQQIlTPyoCiDcMjxiE4UCYzWcNyYodLGVpWFxOZX/Po3SMX0 qcrY8E1IhAId1VXV05d3Kw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rMgbj-0002mV-04; Sun, 07 Jan 2024 22:47:23 -0500 In-Reply-To: <87y1d2vc49.fsf@localhost> (message from Ihor Radchenko on Sat, 06 Jan 2024 13:13:10 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314731 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Since the idea is pattern-matching, I think that a regexp is natural > > as well as more general. Why not do this? > It is not very clear then how to match plain strings for equality. 1. Instead of writing the string as a literal, write a regexp to match only that string. This is not hard. 2. Use this constrained variable patern: (equal foo "xyz") It will bind the variable `foo', but you are not required to use it. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)