unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24945: 25.1; delete-selection-mode
@ 2016-11-15  6:54 Tak Kunihiro
  2016-11-15 15:28 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Tak Kunihiro @ 2016-11-15  6:54 UTC (permalink / raw)
  To: 24945; +Cc: tak.kunihiro


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))

-- 





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24945: 25.1; delete-selection-mode
  2016-11-15  6:54 bug#24945: 25.1; delete-selection-mode Tak Kunihiro
@ 2016-11-15 15:28 ` Eli Zaretskii
  2016-11-15 23:11   ` Tak Kunihiro
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-11-15 15:28 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 24945, tak.kunihiro

> Date: Tue, 15 Nov 2016 15:54:23 +0900 (JST)
> From: Tak Kunihiro <tak.kunihiro@gmail.com>
> Cc: tak.kunihiro@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24945: 25.1; delete-selection-mode
  2016-11-15 15:28 ` Eli Zaretskii
@ 2016-11-15 23:11   ` Tak Kunihiro
  2016-11-16  3:40     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Tak Kunihiro @ 2016-11-15 23:11 UTC (permalink / raw)
  To: Eli Zaretskii, 24945; +Cc: 国広卓也

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@gnu.org> wrote:

>> Date: Tue, 15 Nov 2016 15:54:23 +0900 (JST)
>> From: Tak Kunihiro <tak.kunihiro@gmail.com>
>> Cc: tak.kunihiro@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.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24945: 25.1; delete-selection-mode
  2016-11-15 23:11   ` Tak Kunihiro
@ 2016-11-16  3:40     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2016-11-16  3:40 UTC (permalink / raw)
  To: Tak Kunihiro; +Cc: 24945-done

> From: Tak Kunihiro <tak.kunihiro@gmail.com>
> Date: Wed, 16 Nov 2016 08:11:14 +0900
> Cc: 国広卓也 <tak.kunihiro@gmail.com>
> 
> Thank you for replay.  I see.  It seems I did not understand how it works.

Thanks, closing.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-16  3:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15  6:54 bug#24945: 25.1; delete-selection-mode Tak Kunihiro
2016-11-15 15:28 ` Eli Zaretskii
2016-11-15 23:11   ` Tak Kunihiro
2016-11-16  3:40     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).