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

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

Re: Indenting with spaces rather than tabs


From: Emanuel Berg
Subject: Re: Indenting with spaces rather than tabs
Date: Sun, 31 Jan 2021 07:11:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Robert Thorpe wrote:

> I'm not sure what you're trying to do.

No... me neither? :O

> Also, I think that pcase always runs the case "_". I may be
> wrong, since I don't use it.

(defvar some-var)
(setq some-var 12)

(pcase some-var
  (12 (message "one two one two"))
  (_  (message "not always run")) ) ; one two one two

(pcase some-var
  (1  (message "oh, no!"))
  (_  (message "but sometimes it is")) ) ; but sometimes it is

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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