emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation of cond forms in (Emacs) Lisp mode


From: Bozhidar Batsov
Subject: Re: Indentation of cond forms in (Emacs) Lisp mode
Date: Thu, 05 Jun 2014 10:07:39 +0300

On 3 Jun 2014, at 17:22, Andreas Schwab wrote:

"Bozhidar Batsov" <address@hidden> writes:

I noticed that `cond' forms in Emacs Lisp mode and Lisp mode are indented
with just one space, unlike most other "control" structures:

(cond
((x) (y))
(t (z))

Why is that?

The intention is that you do not break after cond, so it isn't treated
specially, ie. like a normal function call.

Andreas.

Still, it seems a bit arbitrary. Are there are constructs treated in the same manner?

Also, how is this any different from a macro like `with-temp-buffer`, which has regular indentation (2 spaces)?

(with-temp-buffer
  (do-something)
  (do-something-else))


--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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