emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/transient 75a5076def: manual: Add FAQ entry about copyi


From: Jonas Bernoulli
Subject: [elpa] externals/transient 75a5076def: manual: Add FAQ entry about copying text from popup
Date: Sat, 11 Mar 2023 07:38:29 -0500 (EST)

branch: externals/transient
commit 75a5076def1e6f5265eb2346a951ba9d97502fc9
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    manual: Add FAQ entry about copying text from popup
    
    Closes #126.
---
 docs/transient.org  | 16 ++++++++++++++++
 docs/transient.texi | 14 ++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/docs/transient.org b/docs/transient.org
index 227dc29434..4947f2a2ce 100644
--- a/docs/transient.org
+++ b/docs/transient.org
@@ -2228,6 +2228,22 @@ commands are outlined:
 
 Yes, see ~transient-display-buffer-action~ in [[*Configuration]].
 
+** How can I copy text from the popup buffer?
+:PROPERTIES:
+:UNNUMBERED: notoc
+:END:
+
+To be able to mark text in any transient popup buffer using the mouse,
+you have to add the following binding.  Note that the region won't be
+visualized, while doing so.  After you have quit the transient popup,
+you will be able to yank it another buffer.
+
+#+begin_src emacs-lisp
+  (keymap-set transient-predicate-map
+              "<mouse-set-region>"
+              #'transient--do-stay)
+#+end_src
+
 ** Why did some of the key bindings change?
 :PROPERTIES:
 :UNNUMBERED: notoc
diff --git a/docs/transient.texi b/docs/transient.texi
index bc72121a43..ed1a535570 100644
--- a/docs/transient.texi
+++ b/docs/transient.texi
@@ -2557,6 +2557,20 @@ currently exist.
 
 Yes, see @code{transient-display-buffer-action} in @ref{Configuration}.
 
+@anchor{How can I copy text from the popup buffer?}
+@appendixsec How can I copy text from the popup buffer?
+
+To be able to mark text in any transient popup buffer using the mouse,
+you have to add the following binding.  Note that the region won't be
+visualized, while doing so.  After you have quit the transient popup,
+you will be able to yank it another buffer.
+
+@lisp
+(keymap-set transient-predicate-map
+            "<mouse-set-region>"
+            #'transient--do-stay)
+@end lisp
+
 @anchor{Why did some of the key bindings change?}
 @appendixsec Why did some of the key bindings change?
 



reply via email to

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