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:
parent
8ef92096c3
commit
b6207ee4dc
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue