emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cond*


From: Richard Stallman
Subject: Re: cond*
Date: Sun, 07 Jan 2024 22:47:23 -0500

[[[ 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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]