From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: delete-selection-mode Date: Wed, 24 Mar 2010 09:34:18 -0400 Message-ID: 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> <877hp2jvdm.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269437678 614 80.91.229.12 (24 Mar 2010 13:34:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 13:34:38 +0000 (UTC) Cc: 'Chong Yidong' , Drew Adams , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 14:34:30 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 1NuQj7-0005Tl-KN for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 14:34:29 +0100 Original-Received: from localhost ([127.0.0.1]:49865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuQj6-0006nx-Kf for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 09:34:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuQj2-0006ns-0z for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:34:24 -0400 Original-Received: from [140.186.70.92] (port=56018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuQiz-0006nk-1w for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:34:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuQix-0004GP-Nq for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:34:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15378 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuQix-0004GJ-KJ for emacs-devel@gnu.org; Wed, 24 Mar 2010 09:34:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALKxqUvO+IPa/2dsb2JhbACbHHS/GoR+BIsc X-IronPort-AV: E=Sophos;i="4.51,301,1267419600"; d="scan'208";a="58951776" Original-Received: from 206-248-131-218.dsl.teksavvy.com (HELO ceviche.home) ([206.248.131.218]) by ironport2-out.pppoe.ca with ESMTP; 24 Mar 2010 09:34:18 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 977CB660BF; Wed, 24 Mar 2010 09:34:18 -0400 (EDT) In-Reply-To: <877hp2jvdm.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 24 Mar 2010 11:29:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:122605 Archived-At: > 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. Just as for shift-select-mode, I'd rather not use symbol properties to put this information, because it's a property of the command, not of its name. Stefan