From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tony Day Newsgroups: gmane.emacs.bugs Subject: bug#13312: 24.3.50; delete selection mode not killing on overwrite Date: Tue, 1 Jan 2013 11:06:04 +1100 Message-ID: References: <3hpq1rm2l5.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074d7f859aae104d22ee539 X-Trace: ger.gmane.org 1356998816 8723 80.91.229.3 (1 Jan 2013 00:06:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2013 00:06:56 +0000 (UTC) Cc: 13312@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 01 01:07:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TppNu-0006lI-UV for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jan 2013 01:07:11 +0100 Original-Received: from localhost ([::1]:35578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TppNf-0000mS-Sj for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Dec 2012 19:06:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TppNc-0000mL-5S for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2012 19:06:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TppNb-0005LR-2d for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2012 19:06:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TppNa-0005LH-Vz for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2012 19:06:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TppOk-0002NW-H5 for bug-gnu-emacs@gnu.org; Mon, 31 Dec 2012 19:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tony Day Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jan 2013 00:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 13312-submit@debbugs.gnu.org id=B13312.13569988439092 (code B ref 13312); Tue, 01 Jan 2013 00:08:02 +0000 Original-Received: (at 13312) by debbugs.gnu.org; 1 Jan 2013 00:07:23 +0000 Original-Received: from localhost ([127.0.0.1]:38523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TppO6-0002Ma-Sj for submit@debbugs.gnu.org; Mon, 31 Dec 2012 19:07:23 -0500 Original-Received: from mail-qc0-f182.google.com ([209.85.216.182]:63225) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TppO2-0002MR-Ty for 13312@debbugs.gnu.org; Mon, 31 Dec 2012 19:07:20 -0500 Original-Received: by mail-qc0-f182.google.com with SMTP id k19so6719698qcs.13 for <13312@debbugs.gnu.org>; Mon, 31 Dec 2012 16:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vhc5o1gAvZLpx29w2VQ2VWusNPGHVr6nL+zIjdnj220=; b=OkNB5dXRJhpns85TEi37mxq8uZ6vf/HQsmWjJnqmRiaDmlTXWdL0wgI1YaIgNflwqM TNkYBFYLfi2LldKb00wy1LtGXN/PQ2IRp3GIADnRqzmRRa7rQqixbdLvTvh5goJyXLGJ gkJ7fhl8/6PV+6nvaIzW7Rcw5N5PUGcsRWun4DraLN+0JQ9+wtIuNnH/WhPtFj8go0be KUXmF6MxtkQxoryusL3ws2Hiv5McWUP+Yyjd0/G20E+pjmiCkzms4nMtz6z29FbrQ8MA XtCRBS12RW7MD6Q4fPvic+ySidSPIW7pmxYaTSyZEArnauO4TMC50Cr8ZNoRlxwSoTzy O0ug== Original-Received: by 10.224.73.6 with SMTP id o6mr19033057qaj.26.1356998765029; Mon, 31 Dec 2012 16:06:05 -0800 (PST) Original-Received: by 10.49.96.66 with HTTP; Mon, 31 Dec 2012 16:06:04 -0800 (PST) In-Reply-To: <3hpq1rm2l5.fsf@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69263 Archived-At: --20cf3074d7f859aae104d22ee539 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 31, 2012 at 12:29 PM, Glenn Morris wrote: > Why did you expect `delete-selection-mode' to kill rather than delete? I asked on stack exchange for how to change the behaviour and someone suggested it was a bug. I figured delete-selection-mode was less of a mouthful than maybe-delete-or-kill-selection-mode ;) The critical code lines were was also ambiguous and beyond my powers of comprehension: (put 'self-insert-command 'delete-selection (lambda () (not (run-hook-with-args-until-success 'self-insert-uses-region-functions)))) Thanks for confirming the default behaviour. On changing to kill rather than delete with: (put 'self-insert-command 'delete-selection 'kill) I get no self-inserted key, and an extra blank item in the kill ring. Regardless, why don't we call this a hack and not a bug. Tony --20cf3074d7f859aae104d22ee539 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Dec 31, 2012 at 12:29 PM, Glenn Morris <rgm@gnu.org> wrote= :
Why did you expect `delete-selection-mode' to kill rather than delete?<= /blockquote>

I asked on stack exchange for how to change the = behaviour and someone suggested it was a bug. =A0I figured delete-selection= -mode was less of a mouthful than maybe-delete-or-kill-selection-mode ;)

The critical code lines were was also ambiguous and bey= ond my powers of comprehension:

(put 'sel= f-insert-command 'delete-selection
=A0 =A0 =A0(lambda ()
=A0 =A0 =A0 =A0(not (run-hook-with-args-until-success
=A0 =A0 =A0= =A0 =A0 =A0 =A0'self-insert-uses-region-functions))))
=
Thanks for confirming the default behaviour. =A0On changing = to kill rather than delete with:

(put 'self-insert-command 'delete-selectio= n 'kill)

I get no self-inserted key, and= an extra blank item in the kill ring.

Regardless,= why don't we call this a hack and not a bug.

Tony



=

--20cf3074d7f859aae104d22ee539--