* Re: Indentation in emacs 21.2.1
[not found] <mailman.1030691768.25311.help-gnu-emacs@gnu.org>
@ 2002-08-30 8:37 ` Lute Kamstra
2002-08-30 13:00 ` Kai Großjohann
1 sibling, 0 replies; 3+ messages in thread
From: Lute Kamstra @ 2002-08-30 8:37 UTC (permalink / raw)
Jyri Seiger <jyri.seiger@genio.fi> writes:
> I've installed emacs 21.2.1 lately, and found that combination C-M-Q,
> which used to work in previous versions of emacs for code indentation
> doesn't work :( And if I call indent-sexp then indentation looks
> very weird i.e. first level is shifted by 20 spaces (I have set
> indent-tabs-mode to nil), second level is shifted by 18 spaces from
> the previous level, third level is shifted by 12 spaces. So my question
> is: is there something changed in the indentation in new emacs version?
Yes, GNU Emacs now conforms to the new GNU Coding Standards. Nesting
is considered bad. Sequential programs are much easier to understand
and maintain than programs with loops and conditional statements.
Hence the Standards prescribe an indentation depth of twenty for the
first level of nesting to discourage it. Subsequent nesting is
considered to be even worse, but after one level of nesting the
Standards more or less give up on you and don't punish you that much
anymore as for the first level.
Standards are good! So please use the GNU Coding Standards!
Lute.
--
(spook) => "argus computer terrorism Albanian"
(insert-file-contents "~/.signature") => (error "`~/.signature' too rude")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Indentation in emacs 21.2.1
[not found] <mailman.1030691768.25311.help-gnu-emacs@gnu.org>
2002-08-30 8:37 ` Indentation in emacs 21.2.1 Lute Kamstra
@ 2002-08-30 13:00 ` Kai Großjohann
1 sibling, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2002-08-30 13:00 UTC (permalink / raw)
Jyri Seiger <jyri.seiger@genio.fi> writes:
> I've installed emacs 21.2.1 lately, and found that combination C-M-Q,
> which used to work in previous versions of emacs for code indentation
> doesn't work :( And if I call indent-sexp then indentation looks
> very weird i.e. first level is shifted by 20 spaces (I have set
> indent-tabs-mode to nil)
Looks like a bug. Please tell us how to repeat the behavior,
starting with "emacs -q -no-site-file". At the very least, that
recipe is necessary for a bug report anyway. And if it's a
misconfiguration on your part, maybe it will help to see where the
problem is.
kai
--
A large number of young women don't trust men with beards. (BFBS Radio)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Indentation in emacs 21.2.1
@ 2002-08-30 7:16 Jyri Seiger
0 siblings, 0 replies; 3+ messages in thread
From: Jyri Seiger @ 2002-08-30 7:16 UTC (permalink / raw)
Hi!
I've installed emacs 21.2.1 lately, and found that combination C-M-Q,
which used to work in previous versions of emacs for code indentation
doesn't work :( And if I call indent-sexp then indentation looks
very weird i.e. first level is shifted by 20 spaces (I have set
indent-tabs-mode to nil), second level is shifted by 18 spaces from
the previous level, third level is shifted by 12 spaces. So my question
is: is there something changed in the indentation in new emacs version?
Or is it some kind of a bug? And how to get indent-sexp to work
properly i.e. indenting 4 spaces (by default) from previous level?
Thanks,
Jyri
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-30 13:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1030691768.25311.help-gnu-emacs@gnu.org>
2002-08-30 8:37 ` Indentation in emacs 21.2.1 Lute Kamstra
2002-08-30 13:00 ` Kai Großjohann
2002-08-30 7:16 Jyri Seiger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).