赵一宇 <[email protected]> writes: > +org-realign-table-maybe-h function definition is at the end. > > Instead of using save-excursion macro, it saves current point to a var, > and restore the point after execute org-table-align. > That would cause point move visually. Although the (point) value not changed, > org-table-align function shall insert spaces in front of the point. > Don't know if it has already fixed, or there are some other concerns.
Note that `+org-realign-table-maybe-h' it is not a function from Org mode. Likely from Doom Emacs? Did you report to Doom Emacs repo? `save-excursion' is not always reliable when changes are being made around point. Sometimes, explicitly storing the (point-marker) is more reliable. Or storing a relative position. Also, org-table.el provides `org-table-save-field' macro for similar purposes. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
