* lisp/simple.el (completion-at-point-p): New predicate.
* lisp/net/shr.el (shr-show-alt-text): Mark up as a button.
(defun shr-show-alt-text ()
"Show the ALT text of the image under point."
+ (declare (completion 'completion-at-point-p))
(interactive)
(let ((text (get-text-property (point) 'shr-alt)))
(if (not text)
(buffer-local-value 'minor-modes buffer)
#'eq)))
+(defun completion-at-point-p (symbol buffer)
+ "Return non-nil if SYMBOL is in a local map at point in BUFFER."
+ (with-current-buffer buffer
+ (when-let ((map (get-text-property (point) 'keymap)))
+ (where-is-internal symbol map))))
+
(defun read-extended-command--affixation (command-names)
(with-selected-window (or (minibuffer-selected-window) (selected-window))
(mapcar