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!)
|
||||
(cl-destructuring-bind (beg . end)
|
||||
(bounds-of-thing-at-point 'sexp)
|
||||
(let ((package (let (doom-packages)
|
||||
(eval (sexp-at-point) t))))
|
||||
(let* ((doom-packages nil)
|
||||
(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
|
||||
:end end
|
||||
:package (car package)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue