mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Merge pull request #669 from kilesduli/fix-input-gpg-password-too-many-times
Fix denote--define-retrieve-front-matter not reusing opened buffer
This commit is contained in:
commit
eaedec7463
13
denote.el
13
denote.el
|
|
@ -2645,14 +2645,13 @@ Subroutine of `denote--file-with-temp-buffer'."
|
|||
(file-exists (file-exists-p file))
|
||||
(buffer-modified (buffer-modified-p buffer)))
|
||||
(cond
|
||||
((or (and file-exists
|
||||
buffer
|
||||
(not buffer-modified)
|
||||
(not (eq buffer-modified 'autosaved)))
|
||||
(and file-exists (not buffer)))
|
||||
(cons #'insert-file-contents file))
|
||||
(buffer
|
||||
((and file-exists
|
||||
buffer
|
||||
(not buffer-modified))
|
||||
(cons #'insert-buffer buffer))
|
||||
((and file-exists
|
||||
(or (null buffer) buffer-modified))
|
||||
(cons #'insert-file-contents file))
|
||||
;; (t
|
||||
;; (error "Cannot find anything about file `%s'" file))
|
||||
)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue