Function: hyrolo-demo-fgrep

hyrolo-demo-fgrep is an autoloaded, interactive and byte-compiled function defined in hyrolo-demo.el.

Signature

(hyrolo-demo-fgrep STRING &optional MAX-MATCHES)

Documentation

Display rolo entries in "DEMO-ROLO.otl" matching STRING or a logical sexp.

Display to a maximum of optional prefix arg MAX-MATCHES. Each entry is displayed with all of its sub-entries.

Nil value of MAX-MATCHES means find all matches, t value means find all matches but omit file headers, negative values mean find up to the inverse of that number of entries and omit file headers.

Returns number of entries matched. See also documentation for the function hyrolo-demo-fgrep-logical for documentation on the logical sexpression matching.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo-demo.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

;;;###autoload
(defun hyrolo-demo-fgrep (string &optional max-matches)
  "Display rolo entries in \"DEMO-ROLO.otl\" matching STRING or a logical sexp.
Display to a maximum of optional prefix arg MAX-MATCHES.
Each entry is displayed with all of its sub-entries.

Nil value of MAX-MATCHES means find all matches, t value means find all
matches but omit file headers, negative values mean find up to the inverse of
that number of entries and omit file headers.

Returns number of entries matched.  See also documentation for
the function `hyrolo-demo-fgrep-logical' for documentation on the
logical sexpression matching."
  (interactive "sFind rolo string (or logical sexpression): \nP")
  (let* ((hyrolo-file-list (list (expand-file-name "DEMO-ROLO.otl" hyperb:dir)))
	 (match-count (hyrolo-fgrep string max-matches)))
    (when (and (called-interactively-p 'interactive)
	       (zerop match-count))
      ;; Let user know that they invoked the demo version of hyrolo-fgrep
      (message "(hyrolo-demo-fgrep): No demo matches found for '%s'" string))
    match-count))