[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit ffae79e65f 3/3: magit-copy-thing: New stub comm
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit ffae79e65f 3/3: magit-copy-thing: New stub command |
Date: |
Sat, 23 Sep 2023 16:00:18 -0400 (EDT) |
branch: elpa/git-commit
commit ffae79e65f110e9adfb3efa8fbbba8f1980401ea
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-copy-thing: New stub command
Forge remaps this to `forge-copy-url-at-point-as-kill'. (Which
is quite a mouth full. Let's use a shorter, more generic, name).
---
lisp/magit-mode.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index b0bec6eebd..061c5a5562 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -396,7 +396,7 @@ recommended value."
"C-c C-c" 'magit-dispatch
"C-c C-e" 'magit-edit-thing
"C-c C-o" 'magit-browse-thing
- "C-c C-w" 'magit-browse-thing
+ "C-c C-w" 'magit-copy-thing
"C-w" 'magit-copy-section-value
"M-w" 'magit-copy-buffer-revision
"<remap> <previous-line>" 'magit-previous-line
@@ -437,6 +437,14 @@ which actually visits thing at point using `browse-url'."
(interactive)
(user-error "There is no thing at point that could be browsed"))
+(defun magit-copy-thing ()
+ "This is a placeholder command, which signals an error if called.
+Where applicable, other keymaps remap this command to another,
+which actually copies some representation of the thing at point
+to the kill ring."
+ (interactive)
+ (user-error "There is no thing at point that we know how to copy"))
+
;;;###autoload
(defun magit-info ()
"Visit the Magit manual."