From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] [org-table] user-chosen separator in org-table-convert-region Date: Tue, 24 Sep 2013 15:08:10 +0200 Message-ID: <09BDF76D-7B88-45FB-B0B6-C587D2C3787B@gmail.com> References: <8aac63099d110d297d0ada9ff87cb93b@avalenn.eu> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_8EFD9E94-F400-4CA4-8561-921BFA351059"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOSLj-0007HZ-KH for emacs-orgmode@gnu.org; Tue, 24 Sep 2013 09:08:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOSLe-0003di-2I for emacs-orgmode@gnu.org; Tue, 24 Sep 2013 09:08:19 -0400 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:39893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOSLd-0003dZ-PE for emacs-orgmode@gnu.org; Tue, 24 Sep 2013 09:08:13 -0400 Received: by mail-ea0-f173.google.com with SMTP id g10so2456090eak.32 for ; Tue, 24 Sep 2013 06:08:13 -0700 (PDT) In-Reply-To: <8aac63099d110d297d0ada9ff87cb93b@avalenn.eu> 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: francois@avalenn.eu Cc: emacs-orgmode@gnu.org --Apple-Mail=_8EFD9E94-F400-4CA4-8561-921BFA351059 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Francois, could you please explain what this does and show an example on how this = should be used? Thank you. - Carsten On 3.9.2013, at 12:20, francois@avalenn.eu wrote: > Hello, >=20 > I made this patch to make easier conversion to > org-table from csv-like text with arbitrary separator. >=20 > --- > lisp/org-table.el | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) >=20 > diff --git a/lisp/org-table.el b/lisp/org-table.el > index c7e7eb8..c8c2462 100644 > --- a/lisp/org-table.el > +++ b/lisp/org-table.el > @@ -575,6 +575,8 @@ nil When nil, the command tries to be smart = and figure out the > (if (< separator 1) > (user-error "Number of spaces in separator must be = >=3D 1") > (format "^ *\\| *\t *\\| \\{%d,\\}" separator))) > + ((stringp separator) > + (format "^ *\\|%s" separator)) > (t (error "This should not happen")))) > (while (re-search-forward re end t) > (replace-match "| " t t))) > --=20 > 1.7.9 >=20 >=20 >=20 --Apple-Mail=_8EFD9E94-F400-4CA4-8561-921BFA351059 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSQY66AAoJEO+gg/nAZuwM4KAIAL6Z4TgMbjgUJ8Xn5zmdb/lB 5xh3ZNSWkP0o03r9jCvhWtIiwnCSMc1QpKVBBzqCmv3VMKLhPieD2EU9CuF6xqMO R0wsZyvGrNtlyPHurLg66EC2oCI3V2SclE05S62Jtha5oqR9D+CgvtezqoRRTLNi e/eBRt3pMK36RvjaugJLKw1b/MPZbXc/Kvdl4xHlIkZUoB3kXbQSN3vWqQO9+rlP mc34v+pBrAdq9Hl9/YZGvhH4x4wjU9bCvJ+FwS7pl1MsHM07K2x6bE5MgGh2U3Zx 1D+TtyAD0l01rf8ShoRanrUQ/antR3qUNNtFiFmJgxmDddBBWBWBUkrTmOm6JFE= =S0BD -----END PGP SIGNATURE----- --Apple-Mail=_8EFD9E94-F400-4CA4-8561-921BFA351059--