From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 17247@debbugs.gnu.org
Subject: bug#17247: 24.4.50; end-of-defun bug in elisp
Date: Tue, 20 May 2014 14:56:15 -0400 [thread overview]
Message-ID: <jwvfvk4jo0m.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <537B8395.2000109@yandex.ru> (Dmitry Gutov's message of "Tue, 20 May 2014 19:32:21 +0300")
>> As Andreas mentioned, the end-of-line is there to make sure
>> we "stay put" in case `pos' is already at a beginning of defun.
> Is the current bug invalid, then?
> If we "stay put" in the current defun (which starts right after point), then
> when passed an argument of -1, shouldn't `end-of-defun' go to the end of the
> previous defun, which happens to be the same position?
In that case, we're both at "beginning of defun" and at "end of defun",
so we have conflicting requirements. But I think it's clear that
(end-of-defun -1) should move backward if possible, so it's more
important to consider that the position is "at end of defun" than "at
beginning of defun".
IOW, yes, we have a bug.
I installed a brute force patch for it,
Stefan
next prev parent reply other threads:[~2014-05-20 18:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-12 6:04 bug#17247: 24.4.50; end-of-defun bug in elisp Leo Liu
2014-04-23 7:19 ` Andreas Röhler
2014-05-20 4:01 ` Dmitry Gutov
2014-05-20 7:59 ` Andreas Röhler
2014-05-20 12:12 ` Dmitry Gutov
2014-05-20 15:59 ` Andreas Röhler
2014-05-20 16:39 ` Dmitry Gutov
2014-05-20 14:18 ` Stefan Monnier
2014-05-20 16:33 ` Andreas Röhler
2014-05-20 14:20 ` Stefan Monnier
2014-05-20 16:32 ` Dmitry Gutov
2014-05-20 18:56 ` Stefan Monnier [this message]
2014-05-21 2:47 ` Dmitry Gutov
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=jwvfvk4jo0m.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=17247@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/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.