[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: beginning-of-defun (again)
From: |
John Wiegley |
Subject: |
Re: beginning-of-defun (again) |
Date: |
Fri, 30 Oct 2015 11:17:26 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
>>>>> Oleh Krehel <address@hidden> writes:
> If they are within macros, they're data and not defuns in my mind. For me, a
> defun is a top-level expression with "(" at column 0. It doesn't even need
> to define something callable (like `defun' or `defmacro'), so a `defcustom'
> statement is a defun for purposes of `beginning-of-defun'.
I realize you think this, Oleh; what I'm saying is that not everyone does.
As I mentioned, I'm fine with using column 0 as a heuristic. However, there
are use cases where it is confusing (I *still* hit C-M-x on nested defun's,
and find myself surprised that it does something else; and this despite
knowing the nature of the beast full well, and after many years of experience
of it not working).
Some people see "defun" and think this establishes a sort of syntactic entity
with regard to Emacs commands relating to defuns. What we're talking about is
a technical distinction that makes life easier for us -- and not about users
who find it confusing.
Since the decision is to go with the status quo, is there anything to discuss?
John
- Re: beginning-of-defun (again), (continued)
Re: beginning-of-defun (again), John Wiegley, 2015/10/29
Re: beginning-of-defun (again), Richard Stallman, 2015/10/30
Re: beginning-of-defun (again), Alan Mackenzie, 2015/10/30
Re: beginning-of-defun (again), John Wiegley, 2015/10/30
Re: beginning-of-defun (again), Richard Stallman, 2015/10/31
Re: beginning-of-defun (again), Alan Mackenzie, 2015/10/29
Re: beginning-of-defun (again), Alan Mackenzie, 2015/10/29