emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Stack overflow in regexp matcher
Date: Sat, 20 Nov 2010 17:03:32 +0100	[thread overview]
Message-ID: <AANLkTikCds0VC-GyDk7xkqWZ2UHSuN92sEQOSEhigx0R@mail.gmail.com> (raw)

Hi all

Here is an issue for the quite common work flow of copy pasting some
table columns in a whole from a spreadsheet application into Org
table. For this situation I suggest to provide a better user
information than only the current error message "Stack overflow in
regexp matcher". Reproduce like this:

in a spreadsheet application like OpenOffice.org Calc or Excel:
- create a 1x2 table with two columns A and B
- fill out the fields A1 and B1 with some simple content
- select the columns A and B and copy to clipboard

in a new Org buffer:
- paste from clipboard
- select the line with A1 and B1
- convert the selection to Org table: C-c |
- change A1 to the assignment `=1'
- try to update Org table: C-c C-c

This will produce the above mentioned error message. The reason are
the 65535 lines with a TAB following the Org table that have been
copied when selecting the two first columns A and B in the spreadsheet
application. It can be quite annoying to find this out with only the
current error message and with TABs not made visible so I thought it
would be helpful to point this out in the hope of someone finding a
better user guidance. I'd like to provide a patch by myself but in
this case I don't understand more than to find out that the many TABs
are the problem and have to be removed or to be not copied.

Michael

             reply	other threads:[~2010-11-20 16:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-20 16:03 Michael Brand [this message]
2010-11-28 20:08 ` Matt Lundin
2014-10-24  6:41 Alan Schmitt
2014-10-24 19:02 ` Charles Berry
2014-10-24 19:51   ` Gregor Zattler
2014-10-25 17:00     ` Charles C. Berry
2014-10-25 18:34       ` Charles C. Berry
2014-11-28 18:33         ` Alan Schmitt
2014-10-26 11:11       ` Alan Schmitt
2014-10-25  9:24   ` Alan Schmitt

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=AANLkTikCds0VC-GyDk7xkqWZ2UHSuN92sEQOSEhigx0R@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Stack overflow in regexp matcher' \
    /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

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