Function: smart-custom
smart-custom is an interactive and byte-compiled function defined in
hui-mouse.el.
Signature
(smart-custom)
Documentation
Use a single key or mouse key to manipulate customizable settings.
Invoked via a key press when in Custom-mode. It assumes that
its caller has already checked that the key was pressed in an
appropriate buffer and has moved the cursor there.
If key is pressed:
(1) on the last line of the buffer, exit Custom mode, potentially
prompting to save any changes;
(2) at the end of any other line, scroll the window down down a windowful;
(3) if a mouse event on a widget, activate the widget or display a menu;
(4) anywhere else, execute the command bound to {RETURN}.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
;;; ************************************************************************
;;; smart-custom and widget functions
;;; ************************************************************************
(defun smart-custom ()
"Use a single key or mouse key to manipulate customizable settings.
Invoked via a key press when in `Custom-mode'. It assumes that
its caller has already checked that the key was pressed in an
appropriate buffer and has moved the cursor there.
If key is pressed:
(1) on the last line of the buffer, exit Custom mode, potentially
prompting to save any changes;
(2) at the end of any other line, scroll the window down down a windowful;
(3) if a mouse event on a widget, activate the widget or display a menu;
(4) anywhere else, execute the command bound to {RETURN}."
(interactive)
(cond ((last-line-p) (Custom-buffer-done))
((eolp) (smart-scroll-up))
((mouse-event-p last-command-event)
(widget-button-click action-key-release-args))
;; Handle widgets in Custom-mode
(t (Custom-newline (point)))))