From: David Kastrup <dak@gnu.org>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: beginning-of-defun (again)
Date: Sat, 31 Oct 2015 13:24:19 +0100 [thread overview]
Message-ID: <87pozv2pl8.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <56347561.2010900@online.de> ("Andreas Röhler"'s message of "Sat, 31 Oct 2015 09:01:37 +0100")
Andreas Röhler <andreas.roehler@online.de> writes:
> On 31.10.2015 00:14, Richard Stallman wrote:
>> [[[ To any NSA and FBI agents reading my email: please consider ]]]
>> [[[ whether defending the US Constitution against all enemies, ]]]
>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>>
>> > With emacs -Q, C-M-a from behind example below, stops at "(bar)",
>> > missing the beginning of function.
>>
>> > (defun foo ()
>> > (insert "
>> > (bar)"))
>>
>> Our convention is that you should write it this way:
>>
>> (defun foo ()
>> (insert "
>> \(bar)"))
>>
>
> A convention which probably predates Aristoteles :)
> Working-by-convention is rather a social thing...
>
> That design was a real nuisance when generating and writing functions
> on the fly.
> Sure, it's possible to live with it. But why not remove that
> constraint, if possible?
Because reparsing every file from its beginning in order to indent the
current line is too expensive for large files?
The meaning of every Lisp file can be changed by putting
(setq everything "
at its beginning. There really is no correct way to determine current
state apart from parsing from the start. So we have a convention for an
"incorrect way" of avoiding parsing from the start.
--
David Kastrup
next prev parent reply other threads:[~2015-10-31 12:24 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 11:24 beginning-of-defun (again) Andreas Röhler
2015-10-29 11:52 ` Oleh Krehel
2015-10-29 12:03 ` David Kastrup
2015-10-29 13:07 ` Oleh Krehel
2015-10-29 13:28 ` David Kastrup
2015-10-29 13:47 ` David Kastrup
2015-10-29 17:39 ` Andreas Röhler
2015-10-29 12:11 ` Andreas Röhler
2015-10-29 12:16 ` Kaushal Modi
2015-10-29 17:56 ` John Wiegley
2015-10-30 1:35 ` Richard Stallman
2015-10-30 2:20 ` John Wiegley
2015-10-30 9:29 ` Oleh Krehel
2015-10-30 18:17 ` John Wiegley
2015-10-30 23:13 ` Richard Stallman
2015-10-30 23:29 ` Alan Mackenzie
2015-10-30 23:34 ` John Wiegley
2015-11-01 1:05 ` Richard Stallman
2015-10-29 12:46 ` Alan Mackenzie
2015-10-29 12:56 ` Andreas Röhler
2015-10-29 13:31 ` David Kastrup
2015-10-29 14:46 ` Andreas Röhler
2015-10-29 14:57 ` David Kastrup
2015-10-29 14:14 ` Alan Mackenzie
2015-10-30 1:34 ` Richard Stallman
2015-10-30 6:47 ` Andreas Röhler
2015-10-30 23:14 ` Richard Stallman
2015-10-31 8:01 ` Andreas Röhler
2015-10-31 12:24 ` David Kastrup [this message]
2015-10-31 15:55 ` Andreas Röhler
2015-11-01 1:06 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pozv2pl8.fsf@fencepost.gnu.org \
--to=dak@gnu.org \
--cc=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.