From 1aa422b0008af1c0375037eac2f075db8d4ef23c Mon Sep 17 00:00:00 2001 From: Andreas Amann Date: Sat, 28 May 2016 20:23:52 +0100 Subject: [PATCH] org-table-export: fix problem with modified flags org-table-export did always set the modified flags of a buffer, even if no modification happens during export. Fix by only calling org-table-align if required. --- lisp/org-table.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index c6a84b8..89677cc 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -662,7 +662,9 @@ extension of the given file name, and finally on the variable `org-table-export-default-format'." (interactive) (unless (org-at-table-p) (user-error "No table at point")) - (org-table-align) ; Make sure we have everything we need. + (if (and org-table-automatic-realign + org-table-may-need-update) + (org-table-align)) (let ((file (or file (org-entry-get (point) "TABLE_EXPORT_FILE" t)))) (unless file (setq file (read-file-name "Export table to: ")) -- 2.8.2