From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Wittmann Subject: =?UTF-8?B?b3JndGJsLWluc2VydC1yYWRpby10YWJsZcKgZm9yYmlkIGJsYW5r?= =?UTF-8?B?cyBpbiB0aGUgdGFibGUgbmFtZQ==?= Date: Tue, 09 Oct 2012 09:05:01 +0200 Message-ID: <5073CC9D.8030100@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig496AB518C784BD074185506D" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLTsP-0004Cr-LE for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 03:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLTsK-0005P3-Nr for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 03:05:13 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:46099) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TLTsK-0005KA-EI for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 03:05:08 -0400 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 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig496AB518C784BD074185506D Content-Type: multipart/mixed; boundary="------------050707070308060802010601" This is a multi-part message in MIME format. --------------050707070308060802010601 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I noticed that its possible to enter a name containing blanks when calling orgtbl-insert-radio-table. I don't think that this is intended, because blanks are used as separators in the "#+ORGTBL" line. Entering a the name "first table" will result in the following error message: "No such transformation function table" For me (as a novice) it was at first not obvious what I did wrong. My suggestion is to chose an other input method that forbids blanks. I fixed this locally with the attached patch, but I'm sure there are better solutions (I find it unintuitive that blanks terminate the input).= Best Regards Pascal --------------050707070308060802010601 Content-Type: text/x-patch; name="orgtbl-insert-radio-table-no-blanks.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="orgtbl-insert-radio-table-no-blanks.diff" diff --git a/lisp/org-table.el b/lisp/org-table.el index 0555041..a8d2826 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -4437,7 +4437,7 @@ First element has index 0, or I0 if given." (txt (nth 1 e)) name pos) (unless e (error "No radio table setup defined for %s" major-mode)) - (setq name (read-string "Table name: ")) + (setq name (read-no-blanks-input "Table name: ")) (while (string-match "%n" txt) (setq txt (replace-match name t t txt))) (or (bolp) (insert "\n")) --------------050707070308060802010601-- --------------enig496AB518C784BD074185506D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEAREKAAYFAlBzzKEACgkQyJms5+IyKFIYqACcCj8u13TlUro4MZgOLbH5K0I5 P2gAnRqBer59/VkIj4WZxY6+HKjnvhEz =TfcH -----END PGP SIGNATURE----- --------------enig496AB518C784BD074185506D--