From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: emacs-orgmode@gnu.org
Subject: Bug: (bisected) org-meta-return makes an error at end of a buffer [8.0.3 (release_8.0.3-239-g269c5f @ /home/youngfrog/sources/org-mode/lisp/)]
Date: Tue, 25 Jun 2013 12:08:51 +0200 [thread overview]
Message-ID: <87r4fq8pu4.fsf@yahoo.fr> (raw)
Hello,
Evalling
(progn
(switch-to-buffer "org-test.org")
(org-mode)
(insert "* good day\n") ; no "\n" implies no error.
(setq debug-on-error t)
(org-meta-return))
makes an error
git bisect says:
,----
| 3c933adaf627bc8a58cfefb62ff0f2d5df640673 is the first bad commit
`----
That commit simply introduced (org-element-at-point) into
(org-at-property-p), so I also ran a git bisect session with
(org-element-at-point) instead of (org-meta-return) in the above because
I guess org-element-at-point shouldn't actually make an error. Here is
the result:
,----
| 94bcc7e2828a42d5448757ab28cadbf663c9ff6d is the first bad commit
| commit 94bcc7e2828a42d5448757ab28cadbf663c9ff6d
| Author: Nicolas Goaziou <n.goaziou@gmail.com>
| Date: Mon Feb 11 14:42:16 2013 +0100
|
| org-element: Fix parsing of orphaned keyword at the end of an element
|
| * lisp/org-element.el (org-element--current-element): Add a limit
| argument.
| (org-element--collect-affiliated-keywords): Fix parsing of orphaned
| keyword at the end of an element.
| * testing/lisp/test-org-element.el: Add test.
|
| :040000 040000 180072bc91d21e7c3c893792e9a162268068477e e0e8d22d8a06f0601a585010be45d40dbb91b866 M lisp
| :040000 040000 ce3fa869b4f17ed3b3edce74f38cfdce8e70d4f4 58c55594d5f851eb8a8a19eaf12b3a6bd6884cfe M testing
| bisect run success
`----
I don't know what the solution is because I don't understand the link
between affiliated keywords and the fact that (>= (point) limit) (this
is the clause which is entered in the cond in
org-element--current-element)
--
Nico.
next reply other threads:[~2013-06-25 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 10:08 Nicolas Richard [this message]
2013-06-25 15:39 ` Bug: (bisected) org-meta-return makes an error at end of a buffer [8.0.3 (release_8.0.3-239-g269c5f @ /home/youngfrog/sources/org-mode/lisp/)] Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r4fq8pu4.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).