GNU bug report logs -
#41351
28.0.50; Cannot customize mouse-drag-and-drop-region-show-tooltip
Previous Next
Reported by: David Ponce <da_vid <at> orange.fr>
Date: Sun, 17 May 2020 10:24:02 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 28.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
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 41351 in the body.
You can then email your comments to 41351 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#41351
; Package
emacs
.
(Sun, 17 May 2020 10:24:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Ponce <da_vid <at> orange.fr>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 17 May 2020 10:24:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
The option `mouse-drag-and-drop-region-show-tooltip' cannot be
customized as mentioned in the doc string. Only an integer value can be
entered via customization. The proposed patch below fixed the defcustom
for me.
Thanks!
diff --git a/installs/emacs/lisp/mouse.el b/home/dponce/emacs.d/mouse.el
index 795b4da..47a7f20 100644
--- a/installs/emacs/lisp/mouse.el
+++ b/home/dponce/emacs.d/mouse.el
@@ -2577,7 +2577,10 @@ tooltips. If this is t, it shows the entire text dragged in a
tooltip. If this is an integer (as with the default value of
256), it will show that many characters of the dragged text in
a tooltip."
- :type 'integer
+ :type '(choice
+ (const :tag "Do not show tooltips" nil)
+ (const :tag "Show the entire text dragged" t)
+ (integer :tag "Show that many characters of the dragged text" 256))
:version "26.1")
(defcustom mouse-drag-and-drop-region-show-cursor t
In GNU Emacs 28.0.50 (build 11, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0)
of 2020-05-17 built on kilauea
Repository revision: 313955110b242cd18fc19bd168032d3ddf39fe94
Repository branch: master
Windowing system distributor 'Fedora Project', version 11.0.12006000
System Description: Fedora 31 (KDE Plasma)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Sun, 17 May 2020 13:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 41351 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi David,
David Ponce <da_vid <at> orange.fr> writes:
> diff --git a/installs/emacs/lisp/mouse.el b/home/dponce/emacs.d/mouse.el
> index 795b4da..47a7f20 100644
> --- a/installs/emacs/lisp/mouse.el
> +++ b/home/dponce/emacs.d/mouse.el
> @@ -2577,7 +2577,10 @@ tooltips. If this is t, it shows the entire text dragged in a
> tooltip. If this is an integer (as with the default value of
> 256), it will show that many characters of the dragged text in
> a tooltip."
> - :type 'integer
> + :type '(choice
> + (const :tag "Do not show tooltips" nil)
> + (const :tag "Show the entire text dragged" t)
> + (integer :tag "Show that many characters of the dragged text" 256))
Thanks for the bug report.
I think these should be made shorter to better fit in the customize
buffer.
I also found a bug where if you set this option to 0, the text is
incorrectly shown in full.
How about the below patch?
Best regards,
Stefan Kangas
[0001-Fix-minor-issues-with-mouse-drag-and-drop-region-sho.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Sun, 17 May 2020 13:45:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 41351 <at> debbugs.gnu.org (full text, mbox):
On 17/05/2020 15:09, Stefan Kangas wrote:
> Hi David,
[...]
> Thanks for the bug report.
>
> I think these should be made shorter to better fit in the customize
> buffer.
>
> I also found a bug where if you set this option to 0, the text is
> incorrectly shown in full.
>
> How about the below patch?
>
> Best regards,
> Stefan Kangas
>
Hi Stefan,
I agree, your patch is better, tags are clear and will fit better in
the customize buffer.
Also, good catch about when the option sets to 0 :-)
Please feel free to apply.
Thanks for your quick answer!
Regards,
David Ponce
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Sun, 17 May 2020 13:56:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 41351 <at> debbugs.gnu.org (full text, mbox):
close 41351 28.1
thanks
David Ponce <da_vid <at> orange.fr> writes:
> I agree, your patch is better, tags are clear and will fit better in
> the customize buffer.
>
> Also, good catch about when the option sets to 0 :-)
>
> Please feel free to apply.
Thanks!
Now pushed to master as commit a8f24a89d7. Closing this bug.
Best regards,
Stefan Kangas
bug marked as fixed in version 28.1, send any further explanations to
41351 <at> debbugs.gnu.org and David Ponce <da_vid <at> orange.fr>
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 17 May 2020 13:56:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Sun, 17 May 2020 15:41:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 41351 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sun, 17 May 2020 06:09:09 -0700
>
> + (integer :tag "Show characters (max)" 256))
IMO, the original text was much more clear. maybe it can be
shortened, but your variant goes too far.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Sun, 17 May 2020 21:01:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 41351 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Stefan Kangas <stefankangas <at> gmail.com>
>> Date: Sun, 17 May 2020 06:09:09 -0700
>>
>> + (integer :tag "Show characters (max)" 256))
>
> IMO, the original text was much more clear. maybe it can be
> shortened, but your variant goes too far.
Thanks, I appreciate the attention to detail.
Having thought a bit about this, the best alternatives I could come up
with are:
(1) Max number of characters
(2) Show only N characters
Any preference, or better ideas?
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Mon, 18 May 2020 02:26:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 41351 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sun, 17 May 2020 14:00:45 -0700
> Cc: da_vid <at> orange.fr, 41351 <at> debbugs.gnu.org
>
> (1) Max number of characters
>
> (2) Show only N characters
>
> Any preference, or better ideas?
"Max number of characters to show", I guess.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41351
; Package
emacs
.
(Tue, 19 May 2020 00:26:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 41351 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> "Max number of characters to show", I guess.
Fixed on master.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Jun 2020 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 82 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.