From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Grothe Subject: Re: orgtbl export to latex :fmt() fails Date: Thu, 17 Jul 2014 23:54:37 +0200 Message-ID: <20140717235437.317c67c1@rudi> References: <20140717214645.78f5b484@rudi> <87oawn4rmm.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7tdX-0000yP-3k for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 17:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7tdQ-0002Gp-Pr for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 17:54:47 -0400 Received: from mx02.posteo.de ([89.146.194.165]:56111 helo=posteo.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7tdQ-0002GW-JR for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 17:54:40 -0400 In-Reply-To: <87oawn4rmm.fsf@alphaville.bos.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org, Nick Dokos Nick, > Nothing - there is a bug in org-table.el:org-table-clean-before-export > where the regexp that matches special chars in the first column (see > > (info "(org)Advanced features") > > for the details) inadvertently matches "| | | | 3900|" and deletes the > first column. The regexp is set like this: > > --8<---------------cut here---------------start------------->8--- > (let ((special (if maybe-quoted > "^[ \t]*| *\\\\?[\#!$*_^/ ] *|" > "^[ \t]*| *[\#!$*_^/ ] *|")) > --8<---------------cut here---------------end--------------->8--- > > and in each case I think that the space inside the second [...] is > spurious. > > So try this patch: > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/org-table.el b/lisp/org-table.el > index d7ef615..864493e 100644 > --- a/lisp/org-table.el > +++ b/lisp/org-table.el > @@ -447,8 +447,8 @@ available parameters." > "Check if the table has a marking column. > If yes remove the column and the special lines." > (let ((special (if maybe-quoted > - "^[ \t]*| *\\\\?[\#!$*_^/ ] *|" > - "^[ \t]*| *[\#!$*_^/ ] *|")) > + "^[ \t]*| *\\\\?[\#!$*_^/] *|" > + "^[ \t]*| *[\#!$*_^/] *|")) > (ignore (if maybe-quoted > "^[ \t]*| *\\\\?[!$_^/] *|" > "^[ \t]*| *[!$_^/] *|"))) > --8<---------------cut here---------------end--------------->8--- > > I think it's OK for the non-quoted case, but I'm not sure > about the quoted case (maybe-quotes is t). If there are no > objections, I'll push it later on tonight. > > Just to be sure: this is a bug, so it should be committed > to the maint branch and then a merge should be done onto master - > correct? thank you very much for your response, well I'm not an emacs guru, so my simple question is, how to apply this patch? I'm working with archlinux here and I installed orgmode systemwide not locally, I guess I should first install it in my local homedir and than patch it, but how? Sorry about this simple question :-) Regards Th. Grothe