[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 0be36ac13e 10/13: org-html-format-latex: Prevent sa
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 0be36ac13e 10/13: org-html-format-latex: Prevent save prompt for temporary buffer |
Date: |
Fri, 7 Oct 2022 01:57:51 -0400 (EDT) |
branch: externals/org
commit 0be36ac13eee17b3bf26ea55ba596bf61b71602d
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-html-format-latex: Prevent save prompt for temporary buffer
* lisp/ox-html.el (org-html-format-latex): Mark the temporary Org
buffer as unchanged to prevent buffer saving prompt before exiting
Emacs.
Reported-by: Rudolf Adamkovič <salutis@me.com>
Link: https://list.orgmode.org/m2zgef774u.fsf@me.com/T/#t
---
lisp/ox-html.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 4248310295..9b77e4f8dd 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2887,6 +2887,14 @@ INFO is a plist containing export properties."
(insert latex-frag)
(org-format-latex cache-relpath nil nil cache-dir nil
"Creating LaTeX Image..." nil processing-type)
+ ;; Present save dialogue to be shown for this buffer. We need
+ ;; to explicitly disable the dialogue because
+ ;; `org-export-copy-buffer' copies `buffer-file-name' local
+ ;; variable thus making Emacs think that the buffer copy is
+ ;; associated with file. Note that despite `buffer-file-name',
+ ;; `org-export-copy-buffer' arranges saving to not perform
+ ;; actual writing onto the disk.
+ (restore-buffer-modified-p nil)
(buffer-string))))
(defun org-html--wrap-latex-environment (contents _ &optional caption label)
- [elpa] externals/org updated (a220492064 -> fc8e375b9b), ELPA Syncer, 2022/10/07
- [elpa] externals/org 5a167f6ef2 02/13: org-element-cache-reset: Never use cache persistence in non-file buffers, ELPA Syncer, 2022/10/07
- [elpa] externals/org b45911d41e 06/13: org-export-copy-buffer: Prevent saving to disk, ELPA Syncer, 2022/10/07
- [elpa] externals/org 09fd5f886a 07/13: org-html-format-latex: Avoid unnecessary string allocation, ELPA Syncer, 2022/10/07
- [elpa] externals/org 2f4de60980 12/13: ob-emacs-lisp: Don't print arguments of post-process arguments to stdout, ELPA Syncer, 2022/10/07
- [elpa] externals/org 0be36ac13e 10/13: org-html-format-latex: Prevent save prompt for temporary buffer,
ELPA Syncer <=
- [elpa] externals/org 7f3a6cf6e7 11/13: org-capture: Add template hook properties, ELPA Syncer, 2022/10/07
- [elpa] externals/org 279bee087d 01/13: org-element-clock-line-re: Fix Emacs 26 compatibility after e305755b1, ELPA Syncer, 2022/10/07
- [elpa] externals/org aa90e5b59c 03/13: org-export-with-buffer-copy: Avoid all the hooks, not just `org-mode-hook', ELPA Syncer, 2022/10/07
- [elpa] externals/org 4cb1b8ebd0 04/13: org-export-ignored-local-variables: Do not copy cache, ELPA Syncer, 2022/10/07
- [elpa] externals/org 0551eba40c 05/13: org-export-get-ordinal: Cache results, ELPA Syncer, 2022/10/07
- [elpa] externals/org 514e3a9cd2 08/13: org-export: Suppress cache persistence in buffer copies during export, ELPA Syncer, 2022/10/07
- [elpa] externals/org dcdf98a564 09/13: org-export-copy-buffer: Update declarations, ELPA Syncer, 2022/10/07
- [elpa] externals/org fc8e375b9b 13/13: Begin messages about executing code blocks with a capital letter, ELPA Syncer, 2022/10/07