From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: pcase and minus-sign
Date: Mon, 5 Dec 2016 10:11:21 +0100 [thread overview]
Message-ID: <bf1e7a21-5acf-16b5-7f18-5b0d92895d05@easy-emacs.de> (raw)
In-Reply-To: <jwv60n1rpd6.fsf-monnier+Inbox@gnu.org>
On 03.12.2016 16:43, Stefan Monnier wrote:
>> Must confess some hardship of understanding. If an expression may evaluate
>> to a certain value or not, that depends resp. may depend on the state at
>> run-time.
> No: whether it *will* evaluate to that value depends on the state at
> run-time. But whether it *can* evaluate to it doesn't.
>
>
> Stefan
At any case permits a much nicer implementation of complement-char than
done via plain cond, thanks.
(defun general-close--return-complement-char-maybe (erg)
"For example return \"}\" for \"{\" but keep \"\\\"\". "
(pcase erg
(34 ?\")
(?' ?')
(?\( ?\))
(?\) ?\()
(?\] ?\[)
(?\[ ?\])
(?} ?{)
(?{ ?})))
prev parent reply other threads:[~2016-12-05 9:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 12:12 pcase and minus-sign Andreas Röhler
2016-11-30 12:38 ` Joost Kremers
2016-11-30 13:30 ` Andreas Röhler
2016-11-30 13:31 ` Michael Heerdegen
2016-11-30 13:39 ` tomas
2016-11-30 13:56 ` Joost Kremers
2016-11-30 15:23 ` Andreas Röhler
2016-11-30 15:34 ` Michael Heerdegen
2016-11-30 15:48 ` Joost Kremers
2016-12-01 13:59 ` Andreas Röhler
2016-12-02 2:30 ` Stefan Monnier
2016-12-03 8:04 ` Andreas Röhler
2016-12-03 15:43 ` Stefan Monnier
2016-12-05 9:11 ` Andreas Röhler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf1e7a21-5acf-16b5-7f18-5b0d92895d05@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.