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#16109: 24.3.50; doesn't delete region in delete-selection-mode Date: Thu, 12 Dec 2013 02:07:35 +0200 Organization: JURTA Message-ID: <8761qv3pa0.fsf@mail.jurta.org> References: <877gbc41ly.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386807314 29451 80.91.229.3 (12 Dec 2013 00:15:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2013 00:15:14 +0000 (UTC) Cc: 16109@debbugs.gnu.org, Andreas Schwab To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 12 01:15: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 1Vqtvy-0006je-F4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 01:15:18 +0100 Original-Received: from localhost ([::1]:60854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqtvx-0003vu-Tn for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 19:15:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqtvp-0003kO-Dl for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 19:15:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqtvj-0002e6-EZ for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 19:15:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqtvj-0002cu-BE for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 19:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vqtvi-0006qo-6P for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 19:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2013 00:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16109 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16109-submit@debbugs.gnu.org id=B16109.138680727926290 (code B ref 16109); Thu, 12 Dec 2013 00:15:02 +0000 Original-Received: (at 16109) by debbugs.gnu.org; 12 Dec 2013 00:14:39 +0000 Original-Received: from localhost ([127.0.0.1]:44459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqtvK-0006px-Lm for submit@debbugs.gnu.org; Wed, 11 Dec 2013 19:14:38 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:48019 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqtvH-0006ph-TG for 16109@debbugs.gnu.org; Wed, 11 Dec 2013 19:14:36 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id AB980258B9E936; Wed, 11 Dec 2013 16:14:34 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 11 Dec 2013 09:23:32 -0500") 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:81789 Archived-At: >>> Shouldn't `kp-delete' be remapped to `delete'? >> It is mapped to ?\C-d in local-function-key-map (if >> normal-erase-is-backspace). > > Oh, right, now I remember: we don't apply function-key-map repeatedly so > if we have a remapping from kp-delete to delete, it's not combined with > the mapping from delete to deletechar. Thanks. I discovered another case: in delete-selection-mode it's handy to select the region of unnecessary shell output and delete with (without putting to the kill ring). But now neither nor delete the active region in shell. comint.el has these lines: ;; The following two are standardly aliased to C-d, ;; but they should never do EOF, just delete. (define-key map [delete] 'delete-char) (define-key map [kp-delete] 'delete-char) It seems `delete-char' needs to be replaced with `delete-forward-char' like in their global bindings? The comment is also wrong because globally [delete] and [kp-delete] are not aliased to C-d now.