emacs-devel
[Top][All Lists]
Advanced

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

Re: beginning-of-defun (again)


From: Oleh Krehel
Subject: Re: beginning-of-defun (again)
Date: Thu, 29 Oct 2015 12:52:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hi Andreas,

Andreas Röhler <address@hidden> writes:

> maybe it's time to have a reasonable default-behavior of
> beginning-of-defun in Emacs Lisp.

I think it works pretty well as is.

> open-paren-in-column-0-is-defun-start

It's a strange variable that doesn't seem to do anything.  The only
relevant setting is 0 or non-zero (the default). Setting it to 0 seems
to do nothing. Maybe someone could explain what it actually does.

> A function resp. top-level-form starts if the beginning of a list is
> followed by a respective keyword.
> The list of keywords being customizable seems a plus :)

There's no reason for a defun to not start on a newline.  And there's
nothing else that makes "(" be on a new line, except for rare cases in
docstrings, where it can be escaped.  So it seems that the problem is
already solved in a good way, without having to customize anything.

    Oleh



reply via email to

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