From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode Date: Wed, 24 Mar 2010 11:29:33 +0200 Organization: JURTA Message-ID: <877hp2jvdm.fsf@mail.jurta.org> References: <22603146-A346-4FC2-8D74-5D6047865C3A@mit.edu> <87r5nf8s7q.fsf@siart.de> <87pr2ygbii.fsf@lola.goethe.zz> <87tys9180s.fsf@catnip.gol.com> <87ocih158i.fsf@catnip.gol.com> <874ok7bhse.fsf@lola.goethe.zz> <87fx3r10ec.fsf@stupidchicken.com> <87d3yv7zzy.fsf@lola.goethe.zz> <87634n0xnn.fsf@stupidchicken.com> <87fx3rc5p0.fsf@mail.jurta.org> <9C89B664FF0146C087C358EB51E0DE4C@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269424050 15231 80.91.229.12 (24 Mar 2010 09:47:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 09:47:30 +0000 (UTC) Cc: 'Chong Yidong' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 10:47:25 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuNBM-0000SU-3W for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 10:47:24 +0100 Original-Received: from localhost ([127.0.0.1]:53896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuNBL-0000Pr-4e for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 05:47:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuN5H-0006XM-Q3 for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:08 -0400 Original-Received: from [140.186.70.92] (port=52304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN5F-0006MW-R1 for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuN0I-00025Q-SU for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:36:00 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:59744 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN0I-000253-Mf for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:35:58 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.29.143.cable.starman.ee [82.131.29.143]) by mx1.starman.ee (Postfix) with ESMTP id 62C223F40A2; Wed, 24 Mar 2010 11:35:51 +0200 (EET) In-Reply-To: <9C89B664FF0146C087C358EB51E0DE4C@us.oracle.com> (Drew Adams's message of "Tue, 23 Mar 2010 11:09:06 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122600 Archived-At: > The possible values of property `delete-selection' are: > > kill - kill region > yank - delete region; adjust kill-ring for the yank > supersede - delete region only (ignore current command) > t (non-nil) - delete region (current command inserts text) Maybe these settings should be moved to simple.el: (put 'self-insert-command 'delete-selection t) (put 'self-insert-iso 'delete-selection t) (put 'yank 'delete-selection 'yank) (put 'clipboard-yank 'delete-selection 'yank) (put 'insert-register 'delete-selection t) (put 'delete-backward-char 'delete-selection 'supersede) (put 'backward-delete-char-untabify 'delete-selection 'supersede) (put 'delete-char 'delete-selection 'supersede) (put 'newline-and-indent 'delete-selection t) (put 'newline 'delete-selection t) (put 'open-line 'delete-selection 'kill) so `handle-delete-region' could use them. -- Juri Linkov http://www.jurta.org/emacs/