Function: hyrolo-mode

hyrolo-mode is an interactive and byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-mode)

Documentation

Major mode for the HyRolo display match buffer.

Calls the functions given by hyrolo-mode-hook.
, hyrolo-to-entry-beginning
- negative-argument
. hyrolo-to-entry-end
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
< beginning-of-buffer
<backtab> hyrolo-previous-match
<return> action-key
> end-of-buffer
? describe-mode
C-M-i hyrolo-previous-match
C-c @ hyrolo-outline-mark-subtree
C-c C-< hyrolo-outline-promote
C-c C-> hyrolo-outline-demote
C-c C-^ hyrolo-outline-move-subtree-up
C-c C-a hyrolo-outline-show-all
C-c C-b hyrolo-outline-backward-same-level
C-c C-c hyrolo-outline-hide-entry
C-c C-d hyrolo-outline-hide-subtree
C-c C-e hyrolo-outline-show-entry
C-c C-f hyrolo-outline-forward-same-level
C-c C-k hyrolo-outline-show-branches
C-c C-l hyrolo-outline-hide-leaves
C-c C-n hyrolo-outline-next-visible-heading
C-c C-o hyrolo-outline-hide-other
C-c C-p hyrolo-outline-previous-visible-heading
C-c C-q hyrolo-outline-hide-sublevels
C-c C-s hyrolo-outline-show-subtree
C-c C-t hyrolo-outline-hide-body
C-c C-u hyrolo-outline-up-heading
C-c C-v hyrolo-outline-move-subtree-down
C-c C-x foldout-exit-fold
C-c C-z foldout-zoom-subtree
C-c RET hyrolo-outline-insert-heading
C-c TAB hyrolo-outline-show-children
DEL scroll-down
M-s hyrolo-isearch
SPC scroll-up
SPC..~ undefined
TAB hyrolo-next-match
[ hyrolo-to-previous-loc
] hyrolo-to-next-loc
a hyrolo-outline-show-all
b hyrolo-outline-backward-same-level
e hyrolo-edit-entry
f hyrolo-outline-forward-same-level
h hyrolo-outline-hide-subtree
l hyrolo-locate
m hyrolo-mail-to
n hyrolo-outline-next-visible-heading
o hyrolo-overview
p hyrolo-outline-previous-visible-heading
q hyrolo-quit
r hyrolo-grep-or-fgrep
s hyrolo-outline-show-subtree
t hyrolo-top-level
u hyrolo-outline-up-heading

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-mode ()
  "Major mode for the HyRolo display match buffer.
Calls the functions given by `hyrolo-mode-hook'.
\\{hyrolo-mode-map}"
  (interactive)
  (unless (eq major-mode 'hyrolo-mode)
    ;; The mode controls the data in its buffers and it is non-editable
    (put 'hyrolo-mode 'mode-class 'special)
    (push (cons (substring hyrolo-hdr-regexp 1) 1) outline-heading-alist)
    (push (cons (if (boundp 'hbut:source-prefix)
		    hbut:source-prefix
		  "@loc> ")
		1)
	  outline-heading-alist)
    (setq-local hyrolo-entry-regexp (concat "^" "\\([*\^L]+\\)\\([ \t\n\r]+\\)")
		hyrolo-hdr-and-entry-regexp (default-value 'hyrolo-hdr-and-entry-regexp)
		hyrolo-entry-group-number 1
		;; `hyrolo-add' handles removing * prefix from
		;; trailing-space grouping below
		hyrolo-entry-trailing-space-group-number 2
		;; In `outline-regexp', prevent matching to *word*
		;; at the beginning of lines and hanging hyrolo
		;; search functions by adding a whitespace char at
		;; the end of the match.  Note this change adds one
		;; level to the level count, so `hyrolo-outline-level'
		;; decrements it by one.  -- rsw, 2023-11-17
		;; This next local value is dynamically overridden in `hyrolo-grep'.
		outline-regexp "\\([*\^L]+\\)\\([ \t\n\r]\\)"
		outline-level #'hyrolo-outline-level)

    ;; Can't cycle because {TAB} moves to next match
    (when (boundp 'outline-minor-mode-cycle)
      (setq-local outline-minor-mode-cycle nil))

    ;; For speed reasons, don't want to ever font-lock in this mode
    (when (boundp 'outline-minor-mode-highlight)
      (setq-local outline-minor-mode-highlight nil)))

  (use-local-map hyrolo-mode-map)
  (set-syntax-table hyrolo-mode-syntax-table)
  (hyrolo-outline-minor-mode 1) ;; no keymap

  (setq-local reveal-around-mark nil)
  (unless (or (eq major-mode 'hyrolo-mode)
	      hyrolo-reveal-ignore-this-command)
    ;; Expose hidden text as move into it
    (hyrolo-reveal-mode 1))

  ;; Do this after reveal-mode is enabled.
  (setq major-mode 'hyrolo-mode
	mode-name "HyRolo")

  (setq buffer-read-only t)

  (run-mode-hooks 'hyrolo-mode-hook))