From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: From formatted to table Date: Tue, 29 Sep 2009 14:21:02 -0400 Message-ID: <87ljjxeho1.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MshK2-0001sO-HB for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 14:21:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MshJy-0001n5-A3 for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 14:21:10 -0400 Received: from [199.232.76.173] (port=34508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MshJy-0001mf-4m for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 14:21:06 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:57834) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MshJx-00037b-G6 for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 14:21:05 -0400 In-Reply-To: (andrea Crotti's message of "Tue\, 29 Sep 2009 14\:48\:33 +0000 \(UTC\)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrea Crotti Cc: emacs-orgmode@gnu.org andrea Crotti writes: > I have for example a table where > > | one thing | dsjfls | > | two things | dslkjfls | > | three abc dej | dsf | > > And I would like to get > > | one | thing | dsjfls | > | two | things | dslkjfls | > | three | abc dej | dsf | > > I tried some simple substitutions but substituting all the spaces in > the region selected will cause problems elsewhere. I would need to > substitute " " only in one column, is that possible? Anything is possible in Emacs :) -- just look at org-mode! This sounds like a use for a keyboard macro to me... Position point on line 1 of the table C-x ( C-s SPC C-s RET | C-a C-n C-x e and repeat 'e' for every line in the table then C-p C-c C-c to realign. If you do this a lot you can save the macro or build a lisp function that does it - repeating for the entire table. HTH, -Bernt