Skip to content

Commit 483a405

Browse files
committed
Add safe.
1 parent 2e2b463 commit 483a405

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docstr-util.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ See function `forward-line' for argument N."
7373
"Check if IN-STR contain in any string in the IN-LIST."
7474
(cl-some (lambda (str) (string-match-p (regexp-quote str) in-str)) in-list))
7575

76+
;;
77+
;; (@* "Searching" )
78+
;;
79+
80+
(defun docstr-util-looking-back (regexp &optional limit greedy)
81+
"Wrapper for function `looking-back'.
82+
83+
See function `looking-back' description for arguments REGEXP, LIMIT,
84+
and GREEDY."
85+
(ignore-errors (looking-back regexp limit greedy)))
86+
7687
;;
7788
;; (@* "Character" )
7889
;;

0 commit comments

Comments
 (0)