From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Table conversion problem Date: Thu, 03 Jan 2008 12:58:04 -0500 Message-ID: <87d4six043.fsf@gollum.intra.norang.ca> References: <87tzlux2p9.fsf@gollum.intra.norang.ca> <2F46226A-E136-4FF8-985D-88632CD0DD3A@gmail.com> 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 1JAUKa-0003vf-Ei for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 12:58:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAUKZ-0003vS-1k for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 12:58:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAUKY-0003vP-RT for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 12:58:10 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JAUKY-0002LV-JW for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 12:58:10 -0500 In-Reply-To: <2F46226A-E136-4FF8-985D-88632CD0DD3A@gmail.com> (Carsten Dominik's message of "Thu\, 3 Jan 2008 18\:44\:41 +0100") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > orgtbl-mode commands only work if there is already a table context, > and this is not the case for your application. However, you can bind > the command `org-table-convert-region' to a key and use it directly. > > If this is your only use of C-c | in orgtbl-mode, you can use to > orgtbl-mode hook and overwrite the standard (context-sensitive) binding: > > (add-hook 'orgtbl-mode-hook > (lambda () > (define-key orgtbl-mode-map 'org-table-convert-region "\C-c|"))) > Thanks! I tried finding the org-table-convert-region function but I failed miserably when looking for orgtbl-* functions :) doh! org-table-convert-region works great. I rarely need this function (so far) outside of org-mode so I'll just call it directly the next time I need it. Thanks again for all your great work! Bernt