emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* can't press ret without error
@ 2016-07-10  4:52 Samuel Wales
  2016-07-17  9:59 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2016-07-10  4:52 UTC (permalink / raw)
  To: emacs-orgmode

in maint.

for a very long time, i have done (setq
org-element-use-cache nil) because i kept getting errors or
buffer corruption.

now, errors occur even with that setting.

all i did was press return.  this followed trying to comment
a blank line (which i wish emacs would just do).

i cannot do a thorough bug report or q/a at this time but
thought this might be useful.

Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
  re-search-forward("^\\(?:\\*+
\\|\\[\\(?:[0-9]+\\|fn:[-_[:word:]]+\\)\\]\\|%%(\\|[
	]*\\(?:$\\||\\|\\+\\(?:-+\\+\\)+[ 	]*$\\|#\\(?:
\\|$\\|\\+\\(?:BEGIN_\\S-+\\|\\S-+\\(?:\\[.*\\]\\)?:[
	]*\\)\\)\\|:\\(?: \\|$\\|[-_[:word:]]+:[ 	]*$\\)\\|-\\{5,\\}[
	]*$\\|\\\\begin{\\([A-Za-z0-9*]+\\)}\\|CLOCK:\\|\\(?:[-+*]\\|\\(?:[0-9]+\\)[.)]\\)\\(?:[
	]\\|$\\)\\)\\)" 422741 move)
  org-element-paragraph-parser(422741 (211182))
  org-element--current-element(422741 element nil nil)
  byte-code...
  org-element--parse-to(211350)
  org-element-at-point()
  byte-code...
  org-element-context()
  org-return()
  call-interactively(org-return nil nil)
  command-execute(org-return)


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.

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

* Re: can't press ret without error
  2016-07-10  4:52 can't press ret without error Samuel Wales
@ 2016-07-17  9:59 ` Nicolas Goaziou
  2016-07-17 19:24   ` Samuel Wales
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2016-07-17  9:59 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> all i did was press return.  this followed trying to comment
> a blank line (which i wish emacs would just do).
>
> i cannot do a thorough bug report or q/a at this time but
> thought this might be useful.
>
> Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
>   re-search-forward("^\\(?:\\*+
> \\|\\[\\(?:[0-9]+\\|fn:[-_[:word:]]+\\)\\]\\|%%(\\|[
> 	]*\\(?:$\\||\\|\\+\\(?:-+\\+\\)+[ 	]*$\\|#\\(?:
> \\|$\\|\\+\\(?:BEGIN_\\S-+\\|\\S-+\\(?:\\[.*\\]\\)?:[
> 	]*\\)\\)\\|:\\(?: \\|$\\|[-_[:word:]]+:[ 	]*$\\)\\|-\\{5,\\}[
> 	]*$\\|\\\\begin{\\([A-Za-z0-9*]+\\)}\\|CLOCK:\\|\\(?:[-+*]\\|\\(?:[0-9]+\\)[.)]\\)\\(?:[
> 	]\\|$\\)\\)\\)" 422741 move)
>   org-element-paragraph-parser(422741 (211182))

It seems you are using very long lines. 

In particular one of them is ambiguous and the parser has to match too
much (hence the stack overflow) to decide what is that line.

It would help to see that line. Could you make an ECM?

Thank you.


Regards,

-- 
Nicolas Goaziou

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

* Re: can't press ret without error
  2016-07-17  9:59 ` Nicolas Goaziou
@ 2016-07-17 19:24   ` Samuel Wales
  2016-07-17 20:09     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2016-07-17 19:24 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

thanks for your reply.  next time i will check for long lines.

On 7/17/16, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> It seems you are using very long lines.
>
> In particular one of them is ambiguous and the parser has to match too
> much (hence the stack overflow) to decide what is that line.

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

* Re: can't press ret without error
  2016-07-17 19:24   ` Samuel Wales
@ 2016-07-17 20:09     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2016-07-17 20:09 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> thanks for your reply.  next time i will check for long lines.
>
> On 7/17/16, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>> It seems you are using very long lines.
>>
>> In particular one of them is ambiguous and the parser has to match too
>> much (hence the stack overflow) to decide what is that line.

Thinking about it, trying to evaluate

  (re-search-forward org-element-paragraph-separate nil t)

in various places may give you a clue about the problematic line.

Regards,

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

end of thread, other threads:[~2016-07-17 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-10  4:52 can't press ret without error Samuel Wales
2016-07-17  9:59 ` Nicolas Goaziou
2016-07-17 19:24   ` Samuel Wales
2016-07-17 20:09     ` 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).