all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 16109@debbugs.gnu.org, Andreas Schwab <schwab@suse.de>
Subject: bug#16109: 24.3.50; <kp-delete> doesn't delete region in delete-selection-mode
Date: Thu, 12 Dec 2013 02:07:35 +0200	[thread overview]
Message-ID: <8761qv3pa0.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvtxefbhf1.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Wed, 11 Dec 2013 09:23:32 -0500")

>>> 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 <delete>
(without putting to the kill ring).  But now neither <delete> nor <kp-delete>
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.





  reply	other threads:[~2013-12-12  0:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11  1:28 bug#16109: 24.3.50; <kp-delete> doesn't delete region in delete-selection-mode Juri Linkov
2013-12-11  4:58 ` Stefan Monnier
2013-12-11  8:49   ` Andreas Schwab
2013-12-11 14:23     ` Stefan Monnier
2013-12-12  0:07       ` Juri Linkov [this message]
2013-12-12 18:31         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761qv3pa0.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=16109@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.