Ensure 'existing-filename' has 'bounds-of-thing-at-point'

* lisp/thingatpt.el (existing-filename): Define
'bounds-of-thing-at-point' for 'existing-filename'.  (Bug#64664)
This commit is contained in:
Philip Kaludercic 2023-07-16 13:56:23 +02:00
parent 8ef92096c3
commit b6207ee4dc

View file

@ -360,6 +360,10 @@ E.g.:
(and (file-exists-p filename)
filename)))
(put 'existing-filename 'bounds-of-thing-at-point
(lambda ()
(and (thing-at-point 'existing-filename)
(bounds-of-thing-at-point 'filename))))
(put 'existing-filename 'thing-at-point 'thing-at-point-file-at-point)
;; Faces