Function: hargs:search

hargs:search is a byte-compiled function defined in hargs.el.

Signature

(hargs:search FUNC DELIM &optional BOUND NOERROR COUNT)

Documentation

Call search FUNC for the next non-backslash-quoted instance of DELIM.

See search-forward doc string for use of the optional BOUND NOERROR and COUNT args.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hargs.el
(defun hargs:search (func delim &optional bound noerror count)
  "Call search FUNC for the next non-backslash-quoted instance of DELIM.
See `search-forward' doc string for use of the optional BOUND NOERROR and
COUNT args."
 (let (result)
   (while (and (setq result (funcall func delim bound noerror count))
	       (save-excursion
		 ;; string is embedded within a doc string, except when
		 ;; the string starts with 2 backslashes or an MSWindows
		 ;; disk drive prefix, in which case the backslash is
		 ;; considered part of a pathname.
		 (save-match-data
		   (goto-char (match-beginning 0))
		   ;; Ignore any backslash quoted match to `delim'
		   (= (or (preceding-char) 0) ?\\)))))
   result))