bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41351: 28.0.50; Cannot customize mouse-drag-and-drop-region-show-too


From: David Ponce
Subject: bug#41351: 28.0.50; Cannot customize mouse-drag-and-drop-region-show-tooltip
Date: Sun, 17 May 2020 12:23:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]