[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [BUG] Unmatched #+end-src
From: |
Martyn Jago |
Subject: |
[O] [BUG] Unmatched #+end-src |
Date: |
Sat, 12 Mar 2011 16:56:03 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi
--8<---------------cut here---------------start------------->8---
* Unmatched #+end-src bug
#+end_src
--8<---------------cut here---------------end--------------->8---
With the above simple org file, placing the cursor at the end of
#+end_src and hitting return causes emacs to hang.
The bug can be replicated with the following simple test which also
causes emacs to hang...
--8<---------------cut here---------------start------------->8---
(ert-deftest test-headless-end-src ()
(with-temp-buffer
(insert "\n\n\n\n\n\n#+end_")
(should-not (org-in-item-p))))
--8<---------------cut here---------------end--------------->8---
It appears to be related to the following in 'org-in-item-p
(org-list.el)...
--8<---------------cut here---------------start------------->8---
((looking-at "^[ \t]*#\\+end_")
(re-search-backward "^[ \t]*#\\+begin_" nil t))
--8<---------------cut here---------------end--------------->8---
I've tried to pin down the bug but its left me perplexed, so I'm going
to defer to more experienced org lispers!
Regards
Martyn
---
Org-mode version 7.5 (release_7.5.32.gdf26.dirty)
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.0)
of 2011-02-25
- [O] [BUG] Unmatched #+end-src,
Martyn Jago <=
- Re: [O] [BUG] Unmatched #+end-src, Aankhen, 2011/03/12
- [O] Re: [BUG] Unmatched #+end-src, Nicolas, 2011/03/12
- [O] Re: [BUG] Unmatched #+end-src, Aankhen, 2011/03/12
- Re: [O] Re: [BUG] Unmatched #+end-src, Martyn Jago, 2011/03/12
- [O] Re: [BUG] Unmatched #+end-src, Nicolas, 2011/03/12
- Re: [O] Re: [BUG] Unmatched #+end-src, Eric Schulte, 2011/03/13
- [O] Re: [BUG] Unmatched #+end-src, Nicolas Goaziou, 2011/03/17
Re: [O] [BUG] Unmatched #+end-src, Martyn Jago, 2011/03/12
[O] Re: [BUG] Unmatched #+end-src, Nicolas, 2011/03/23