emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2013-06-25 10:08 Nicolas Richard
  2013-06-25 15:39 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Richard @ 2013-06-25 10:08 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 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/)]
  2013-06-25 10:08 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 Richard
@ 2013-06-25 15:39 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-06-25 15:39 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: emacs-orgmode

Hello,

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> 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
> `----

This should be fixed. Thank you for reporting this.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-25 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 10:08 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 Richard
2013-06-25 15:39 ` Nicolas Goaziou

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).