Function: ibtypes::dir-summary
ibtypes::dir-summary is a byte-compiled function defined in
hibtypes.el.
Signature
(ibtypes::dir-summary)
Documentation
Detect filename buttons in files named "MANIFEST" or "DIR".
Display selected files. Each file name must be at the beginning of the line or may be preceded by some semicolons and must be followed by one or more spaces and then another non-space, non-parenthesis, non-brace character.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Makes directory summaries into file list menus.
;;; ========================================================================
(defib dir-summary ()
"Detect filename buttons in files named \"MANIFEST\" or \"DIR\".
Display selected files. Each file name must be at the beginning of the line
or may be preceded by some semicolons and must be followed by one or more
spaces and then another non-space, non-parenthesis, non-brace character."
(when (hypb:buffer-file-name)
(let ((file (file-name-nondirectory (hypb:buffer-file-name)))
entry start end)
(when (and (or (string-equal file "DIR")
(string-match "\\`MANIFEST\\(\\..+\\)?\\'" file))
(save-excursion
(beginning-of-line)
(when (looking-at "\\(;+[ \t]*\\)?\\([^(){}* \t\n\r]+\\)")
(setq entry (match-string-no-properties 2)
start (match-beginning 2)
end (match-end 2))
(file-exists-p entry))))
(ibut:label-set entry start end)
(hact 'link-to-file entry)))))