From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#16795: 24.3.50; Ctrl-D doesn't delete active region with delete-selection-mode on Date: Tue, 18 Feb 2014 13:15:27 -0500 Message-ID: References: <87wqgspthk.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392747377 30957 80.91.229.3 (18 Feb 2014 18:16:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2014 18:16:17 +0000 (UTC) Cc: 16795@debbugs.gnu.org To: yynyygy@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 18 19:16:23 2014 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 1WFpDT-0004FC-0m for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 19:16:23 +0100 Original-Received: from localhost ([::1]:52658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpDS-0003jD-Hk for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Feb 2014 13:16:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpDG-0003Sy-Ne for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 13:16:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFpD8-0004TT-5X for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 13:16:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFpD8-0004TP-2o for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 13:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WFpD7-0007k9-Rk for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2014 13:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2014 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16795-submit@debbugs.gnu.org id=B16795.139274735529750 (code B ref 16795); Tue, 18 Feb 2014 18:16:01 +0000 Original-Received: (at 16795) by debbugs.gnu.org; 18 Feb 2014 18:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:58803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpD0-0007jm-SX for submit@debbugs.gnu.org; Tue, 18 Feb 2014 13:15:55 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:53585) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WFpCy-0007jW-AG for 16795@debbugs.gnu.org; Tue, 18 Feb 2014 13:15:52 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D223984D86; Tue, 18 Feb 2014 13:15:50 -0500 (EST) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 48E031E5913; Tue, 18 Feb 2014 13:15:27 -0500 (EST) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 20B00B40FE; Tue, 18 Feb 2014 13:15:27 -0500 (EST) In-Reply-To: <87wqgspthk.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> (yynyygy@gmail.com's message of "Tue, 18 Feb 2014 19:09:43 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:85848 Archived-At: > When delete-selection-mode is on and the region is active, Ctrl-D simply > deletes the char under cursor while the expected behavior is deleting > the whole region as in Emacs 24.3. Indeed, good catch. I install the patch below which should fix it. Stefan === modified file 'lisp/delsel.el' --- lisp/delsel.el 2014-02-10 01:34:22 +0000 +++ lisp/delsel.el 2014-02-18 18:11:58 +0000 @@ -181,6 +181,9 @@ (put 'yank 'delete-selection 'yank) (put 'clipboard-yank 'delete-selection 'yank) (put 'insert-register 'delete-selection t) +;; delete-backward-char and delete-forward-char already delete the selection by +;; default, but not delete-char. +(put 'delete-char 'delete-selection 'supersede) (put 'reindent-then-newline-and-indent 'delete-selection t) (put 'newline-and-indent 'delete-selection t)