From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13312: 24.3.50; delete selection mode not killing on overwrite Date: Sun, 20 Oct 2013 00:08:45 +0300 Organization: JURTA Message-ID: <87wql9c6jl.fsf@mail.jurta.org> References: <87wql9i8l5.fsf@mail.jurta.org> <761f4d61-cd53-4371-9744-70f08619c75b@default> <87vc0tfcn6.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382217196 16522 80.91.229.3 (19 Oct 2013 21:13:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2013 21:13:16 +0000 (UTC) Cc: 13312@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 23:13:19 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 1VXdpm-0000VC-EQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2013 23:13:18 +0200 Original-Received: from localhost ([::1]:34425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXdpl-0004XX-Tr for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2013 17:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXdpc-0004WB-Ag for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 17:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXdpW-00013y-BH for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 17:13:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXdpW-00013t-7t for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 17:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VXdpV-00075z-SK for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 17:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2013 21:13:01 +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.138221714227202 (code B ref 13312); Sat, 19 Oct 2013 21:13:01 +0000 Original-Received: (at 13312) by debbugs.gnu.org; 19 Oct 2013 21:12:22 +0000 Original-Received: from localhost ([127.0.0.1]:58274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXdos-00074b-7v for submit@debbugs.gnu.org; Sat, 19 Oct 2013 17:12:22 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:37416 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXdoq-00074R-64 for 13312@debbugs.gnu.org; Sat, 19 Oct 2013 17:12:20 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3AC8A258B9E936; Sat, 19 Oct 2013 14:12:18 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Sat, 19 Oct 2013 10:42:44 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:79403 Archived-At: > What was the reason for introducing > `self-insert-uses-region-functions'? It seems it was only for > `electric-pair-mode'. IIRC, I wasn't too happy with that hack when > it was done. Now it seems to be dirtying (complicating) `delsel.el'. > Isn't there a better way? I think (run-hook-with-args-until-success 'self-insert-uses-region-functions) could be moved to the body of `delete-selection-helper'. Then the users again will enjoy the simplicity of (put 'self-insert-command 'delete-selection t) and (put 'self-insert-command 'delete-selection 'kill) > Sorry, I cannot judge now whether this DTRT. But again, this seems > to reach beyond this bug. (Let me know if I'm missing something > and this is really specific to this bug.) The first hunk of my patch fixes the reported bug.