emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Unmatched #+end-src
@ 2011-03-12 16:56 Martyn Jago
  2011-03-12 19:29 ` Aankhen
  2011-03-23 17:38 ` Nicolas
  0 siblings, 2 replies; 10+ messages in thread
From: Martyn Jago @ 2011-03-12 16:56 UTC (permalink / raw)
  To: emacs-orgmode


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 

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

end of thread, other threads:[~2011-03-23 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 16:56 [BUG] Unmatched #+end-src Martyn Jago
2011-03-12 19:29 ` Aankhen
2011-03-12 20:07   ` Nicolas
2011-03-12 20:20     ` Aankhen
2011-03-12 21:05     ` Martyn Jago
2011-03-13  0:31       ` Nicolas
2011-03-13 13:49         ` Eric Schulte
2011-03-17 12:09           ` Nicolas Goaziou
2011-03-12 20:43   ` Martyn Jago
2011-03-23 17:38 ` Nicolas

Code repositories for project(s) associated with this 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).