help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: DWIM region


From: Stefan Monnier
Subject: Re: DWIM region
Date: Mon, 08 Jan 2018 21:30:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> (pcase justify
>>  ('(4)   'full)      ; C-u         -> justify
>>  ('(64)) 'center)))) ; C-u C-u C-u -> center
         ^^
Sorry there was an spurious extra paren here.
         
> `pcase' doesn't seem to do that?

What makes you think so?  It is not like CL's `case`.

> (pcase (car justify)
>    (4  'full)        ; C-u         -> justify
>    (64 'center) )))) ; C-u C-u C-u -> center

current-prefix-arg can also be a plain integer, so (car justify) can
crash and burn.


        Stefan




reply via email to

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