GNU bug report logs -
#16795
24.3.50; Ctrl-D doesn't delete active region with delete-selection-mode on
Previous Next
Reported by: yynyygy <at> gmail.com
Date: Tue, 18 Feb 2014 16:23:03 UTC
Severity: normal
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16795 in the body.
You can then email your comments to 16795 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16795
; Package
emacs
.
(Tue, 18 Feb 2014 16:23:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
yynyygy <at> gmail.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Feb 2014 16:23:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.8.7)
of 2014-02-18 on gentoo
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
Configured using:
`configure --prefix=/usr/local/emacs/'
Important settings:
value of $LC_COLLATE: C
value of $LC_CTYPE: zh_CN.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
delete-selection-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p o r <tab> C-g M-x d e l e <tab> s e <tab>
<return> M-x r e p o r <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit
Delete-Selection mode enabled
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils cus-start cus-load delsel
time-date china-util tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16795
; Package
emacs
.
(Tue, 18 Feb 2014 18:16:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 16795 <at> debbugs.gnu.org (full text, mbox):
> 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)
bug closed, send any further explanations to
16795 <at> debbugs.gnu.org and yynyygy <at> gmail.com
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Feb 2014 20:33:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 19 Mar 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.