Fix 'Cannot get this file-path' when bumping in babel edit buffers
Break glass in case of literate configs.
This commit is contained in:
parent
6a8e990459
commit
09c6e99e23
1 changed files with 5 additions and 2 deletions
|
@ -37,8 +37,11 @@
|
||||||
(when (eq (car-safe (sexp-at-point)) 'package!)
|
(when (eq (car-safe (sexp-at-point)) 'package!)
|
||||||
(cl-destructuring-bind (beg . end)
|
(cl-destructuring-bind (beg . end)
|
||||||
(bounds-of-thing-at-point 'sexp)
|
(bounds-of-thing-at-point 'sexp)
|
||||||
(let ((package (let (doom-packages)
|
(let* ((doom-packages nil)
|
||||||
(eval (sexp-at-point) t))))
|
(buffer-file-name
|
||||||
|
(or buffer-file-name
|
||||||
|
(bound-and-true-p org-src-source-file-name)))
|
||||||
|
(package (eval (sexp-at-point) t)))
|
||||||
(list :beg beg
|
(list :beg beg
|
||||||
:end end
|
:end end
|
||||||
:package (car package)
|
:package (car package)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue