From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: feature request: delete-selection-mode Date: Wed, 18 Oct 2006 09:53:26 +0200 Message-ID: References: <878xjeim9o.fsf@earthlink.net> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ga6F4-0002Lt-HA for emacs-orgmode@gnu.org; Wed, 18 Oct 2006 03:53:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ga6F3-0002J8-5n for emacs-orgmode@gnu.org; Wed, 18 Oct 2006 03:53:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga6F2-0002Il-Tr for emacs-orgmode@gnu.org; Wed, 18 Oct 2006 03:53:32 -0400 Received: from [146.50.4.51] (helo=imap.science.uva.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ga6F2-00053G-S4 for emacs-orgmode@gnu.org; Wed, 18 Oct 2006 03:53:33 -0400 In-Reply-To: <878xjeim9o.fsf@earthlink.net> 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: John J Foerch Cc: emacs-orgmode@gnu.org On Oct 18, 2006, at 0:57, John J Foerch wrote: > Hi, > > I am using org-mode 4.44, and I wish it would work with > delete-selection-mode. There are two ways to handle this. 1) Either you stop org-mode from taking over all the commands inserting letters and deleting single characters. This means not using the optimized version of the table editor: (setq org-enable-table-editor t) The disadvantage is that in tables, each letter typed now dis-aligns the table and you need to wait for the next align (triggered by TAB, for example) for things to look nice again. 2) Or you make delete-selection-mode aware of org-mode's special commands: (eval-after-load "delsel" '(progn (put 'org-self-insert-command 'delete-selection t) (put 'orgtbl-self-insert-command 'delete-selection t) (put 'org-delete-char 'delete-selection 'supersede) (put 'org-delete-backward-char 'delete-selection 'supersede))) Hope this helps. - Carsten