Function: ibut:previous-occurrence
ibut:previous-occurrence is a byte-compiled function defined in
hbut.el.
Signature
(ibut:previous-occurrence NAME-KEY &optional BUFFER)
Documentation
Move point to previous occurrence of an implicit button with NAME-KEY.
Optional BUFFER defaults to current buffer. It may be a buffer name. Return non-nil iff occurrence is found.
Remember to use (goto-char (point-max)) before calling this to search the whole buffer.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun ibut:previous-occurrence (name-key &optional buffer)
"Move point to previous occurrence of an implicit button with NAME-KEY.
Optional BUFFER defaults to current buffer. It may be a buffer name.
Return non-nil iff occurrence is found.
Remember to use (goto-char (point-max)) before calling this to search
the whole buffer."
(when buffer
(if (not (or (bufferp buffer) (and (stringp buffer) (get-buffer buffer))))
(error "(ibut:previous-occurrence): Invalid buffer arg: %s" buffer)
(switch-to-buffer buffer)))
(when (or (re-search-backward (ibut:name-regexp name-key) nil t)
(re-search-backward (ibut:name-regexp name-key t) nil t))
(goto-char (+ (match-beginning 0) (length ibut:label-start)))))