GNU bug report logs - #24945
25.1; delete-selection-mode

Previous Next

Package: emacs;

Reported by: Tak Kunihiro <tak.kunihiro <at> gmail.com>

Date: Tue, 15 Nov 2016 06:55:02 UTC

Severity: minor

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

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 24945 in the body.
You can then email your comments to 24945 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24945; Package emacs. (Tue, 15 Nov 2016 06:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tak Kunihiro <tak.kunihiro <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 15 Nov 2016 06:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: tak.kunihiro <at> gmail.com
Subject: 25.1; delete-selection-mode
Date: Tue, 15 Nov 2016 15:54:23 +0900 (JST)
Dear Emacs developper,

`delete-selection-mode' on 25.1 does not work well when
`select-enable-primary' is `t'.

1. runemacs.exe -Q
2. (setq select-enable-primary t)
3. M-x delete-selection-mode
4. select region and kill
5. select other region and yank

The region selected by step 5 stays, not replace by yanked text.

Tak Kunihiro


In GNU Emacs 25.1.1 (i686-w64-mingw32)
 of 2016-09-18 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 10.0.14393
Configured using:
 'configure --host=i686-w64-mingw32 --without-dbus
 --without-compress-install CFLAGS=-static'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Lisp Interaction

Minor modes in effect:
  delete-selection-mode: t
  tooltip-mode: t
  global-eldoc-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 messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
t
Delete-Selection mode enabled
Mark set [3 times]
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils cus-start cus-load delsel
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded 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
w32notify w32 multi-tty make-network-process emacs)

Memory information:
((conses 8 96908 5661)
 (symbols 32 20655 0)
 (miscs 32 61 182)
 (strings 16 17437 3920)
 (string-bytes 1 452706)
 (vectors 8 12535)
 (vector-slots 4 442706 5734)
 (floats 8 167 18)
 (intervals 28 249 44)
 (buffers 520 21))

-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24945; Package emacs. (Tue, 15 Nov 2016 15:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 24945 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Cc: 24945 <at> debbugs.gnu.org, tak.kunihiro <at> gmail.com
Subject: Re: bug#24945: 25.1; delete-selection-mode
Date: Tue, 15 Nov 2016 17:28:08 +0200
> Date: Tue, 15 Nov 2016 15:54:23 +0900 (JST)
> From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
> Cc: tak.kunihiro <at> gmail.com
> 
> `delete-selection-mode' on 25.1 does not work well when
> `select-enable-primary' is `t'.
> 
> 1. runemacs.exe -Q
> 2. (setq select-enable-primary t)
> 3. M-x delete-selection-mode
> 4. select region and kill
> 5. select other region and yank
> 
> The region selected by step 5 stays, not replace by yanked text.

Since selecting text in step 5 puts the selected text in the primary
selection, and thus overwrites the text saved there by the kill in
step 4, I don't see how it makes sense to set select-enable-primary
while using delete-selection-mode: these two options contradict each
other in fundamental ways.  On top of that, primary selection doesn't
really exist on MS-Windows, it's only emulated inside the Emacs
session, which makes its use even less useful.

IOW, I don't see a bug here.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24945; Package emacs. (Tue, 15 Nov 2016 23:13:02 GMT) Full text and rfc822 format available.

Message #11 received at 24945 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>,
 24945 <at> debbugs.gnu.org
Cc: 国広卓也 <tak.kunihiro <at> gmail.com>
Subject: Re: bug#24945: 25.1; delete-selection-mode
Date: Wed, 16 Nov 2016 08:11:14 +0900
Thank you for replay.  I see.  It seems I did not understand how it works.

For unknown reason, I used 24.5 with (setq select-enable-primary t);  It
is likely that 24.5 just ignores it.

Sorry to bother.



On Nov 16, 2016, at 24:28 , Eli Zaretskii <eliz <at> gnu.org> wrote:

>> Date: Tue, 15 Nov 2016 15:54:23 +0900 (JST)
>> From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
>> Cc: tak.kunihiro <at> gmail.com
>> 
>> `delete-selection-mode' on 25.1 does not work well when
>> `select-enable-primary' is `t'.
>> 
>> 1. runemacs.exe -Q
>> 2. (setq select-enable-primary t)
>> 3. M-x delete-selection-mode
>> 4. select region and kill
>> 5. select other region and yank
>> 
>> The region selected by step 5 stays, not replace by yanked text.
> 
> Since selecting text in step 5 puts the selected text in the primary
> selection, and thus overwrites the text saved there by the kill in
> step 4, I don't see how it makes sense to set select-enable-primary
> while using delete-selection-mode: these two options contradict each
> other in fundamental ways.  On top of that, primary selection doesn't
> really exist on MS-Windows, it's only emulated inside the Emacs
> session, which makes its use even less useful.
> 
> IOW, I don't see a bug here.
> 
> Thanks.





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 16 Nov 2016 03:41:02 GMT) Full text and rfc822 format available.

Notification sent to Tak Kunihiro <tak.kunihiro <at> gmail.com>:
bug acknowledged by developer. (Wed, 16 Nov 2016 03:41:02 GMT) Full text and rfc822 format available.

Message #16 received at 24945-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tak Kunihiro <tak.kunihiro <at> gmail.com>
Cc: 24945-done <at> debbugs.gnu.org
Subject: Re: bug#24945: 25.1; delete-selection-mode
Date: Wed, 16 Nov 2016 05:40:28 +0200
> From: Tak Kunihiro <tak.kunihiro <at> gmail.com>
> Date: Wed, 16 Nov 2016 08:11:14 +0900
> Cc: 国広卓也 <tak.kunihiro <at> gmail.com>
> 
> Thank you for replay.  I see.  It seems I did not understand how it works.

Thanks, closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 14 Dec 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.