From 0f9b7114d1de2f9f87cd24a06c74c7a4938c7f8a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 23 Apr 2019 10:35:31 +0200 Subject: [PATCH] org-table: Fix `org-table-map-tables' * lisp/org-table.el (org-table-map-tables): Apply function at the beginning of the table, not at the first affiliated keyword, if any. Reported-by: Kaushal Modi --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index f35609119..f6b7af682 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -4105,7 +4105,7 @@ beginning and end position of the current table." (unless quietly (message "Mapping tables: %d%%" (floor (* 100.0 (point)) (buffer-size)))) - (goto-char (org-element-property :begin table)) + (goto-char (org-element-property :post-affiliated table)) (let ((end (copy-marker (org-element-property :end table)))) (unwind-protect (progn (funcall f) (goto-char end))