[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/do-at-point fedb874439 37/44: Print a message indicatin
From: |
ELPA Syncer |
Subject: |
[elpa] externals/do-at-point fedb874439 37/44: Print a message indicating C-RET to select an action |
Date: |
Fri, 25 Aug 2023 18:57:48 -0400 (EDT) |
branch: externals/do-at-point
commit fedb874439fe5121f378920ed3afcc6979335813
Author: Philip Kaludercic <philip.kaludercic@fau.de>
Commit: Philip Kaludercic <philip.kaludercic@fau.de>
Print a message indicating C-RET to select an action
---
do-at-point.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/do-at-point.el b/do-at-point.el
index 6accaee818..234cfd16de 100644
--- a/do-at-point.el
+++ b/do-at-point.el
@@ -5,7 +5,7 @@
;; Author: Philip Kaludercic <philipk@posteo.net>
;; Maintainer: Philip Kaludercic <philipk@posteo.net>
;; URL: https://wwwcip.cs.fau.de/~oj14ozun/src+etc/do-at-point.el
-;; Version: $Id: do-at-point.el,v 1.35 2023/08/02 15:22:49 oj14ozun Exp
oj14ozun $
+;; Version: $Id: do-at-point.el,v 1.36 2023/08/02 15:40:43 oj14ozun Exp
oj14ozun $
;; Package-Version: 1
;; Package-Requires: ((emacs "26.1"))
;; Keywords: convenience
@@ -226,6 +226,10 @@ action is selected."
(2 (funcall func (car bound) (cdr bound)))
(_ (error "Unsupported signature: %S" func)))))
+;; We add an alias for to avoid confusing `substitute-key-definition'
+;; later on.
+(defalias 'do-at-point-confirm* #'do-at-point-confirm)
+
(defun do-at-point-confirm-quick ()
"Quickly select the first action for the selected \"thing\".
See the function `do-at-point-confirm' for more details."
@@ -263,7 +267,10 @@ value of the function is always the new \"thing\"."
(define-key do-at-point--quick-map (kbd "<return>")
#'do-at-point-confirm-quick))
(let ((default (cadar (do-at-point--actions thing))))
- (message "Act on `%s' (%s by default)?" thing default))
+ (message
+ (substitute-command-keys
+ "Act on `%s' (%s by default). Select using \\[do-at-point-confirm*]")
+ thing default))
(unless no-update
(do-at-point--update)))))
@@ -276,7 +283,7 @@ The lighter depends on the current \"thing\" being
selected."
(defvar do-at-point--mode-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map do-at-point--quick-map)
- (define-key map (kbd "C-<return>") #'do-at-point-confirm)
+ (define-key map (kbd "C-<return>") #'do-at-point-confirm*)
(define-key map [remap keyboard-quit] #'do-at-point-quit)
(define-key map (kbd "M-n") #'do-at-point-forward)
(define-key map (kbd "M-p") #'do-at-point-backward)
- [elpa] externals/do-at-point 917f8de4d1 13/44: Handle things without bounds gracefully, (continued)
- [elpa] externals/do-at-point 917f8de4d1 13/44: Handle things without bounds gracefully, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 8fd2e077b7 16/44: Enable quick bindings by default, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point cd0c8d9d26 18/44: Reindent buffer, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 90d1791961 20/44: Remove partial sentence from 'do-at-point-quick-bindings' docstring, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 4a585ea1a5 22/44: Ensure 'do-at-point--overlay' as an initial value, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point f466280172 28/44: Mark 'do-at-point--actions-type' as internal, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 5c36d999aa 30/44: Reorder action variables/user-option to reflect their priority, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 1de25e7d7b 33/44: Remove duplicate newline, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 5b4ed8454e 34/44: Add write-region to region actions, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point f04fcfd90c 35/44: Improve interference avoidance between buffer local overlays, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point fedb874439 37/44: Print a message indicating C-RET to select an action,
ELPA Syncer <=
- [elpa] externals/do-at-point 08928d2465 36/44: Delete overlay on leaving 'do-at-point--mode', ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 259a1a0076 39/44: Use 'shell-command+' if available, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point dc34b76d8c 41/44: Allow customising the face used for selection, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 6cfc8ade2c 40/44: Invoke wget with useful arguments, ELPA Syncer, 2023/08/25
- [elpa] externals/do-at-point 0949bbfe87 42/44: Add basic administrative files, ELPA Syncer, 2023/08/25