mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-20 00:18:35 +00:00
org-table: remove a now useless hack
* lisp/org-table.el (org-table-align): remove now useless hack.
This commit is contained in:
parent
818c449e2c
commit
a968b8c76f
|
@ -815,16 +815,6 @@ When nil, simply write \"#ERROR\" in corrupted fields.")
|
||||||
(append (pop fields) emptystrings))
|
(append (pop fields) emptystrings))
|
||||||
hfmt))
|
hfmt))
|
||||||
lines ""))
|
lines ""))
|
||||||
(if (equal (char-before) ?\n)
|
|
||||||
;; This hack is for org-indent, to force redisplay of the
|
|
||||||
;; line prefix of the first line. Apparently the redisplay
|
|
||||||
;; is tied to the newline, which is, I think, a bug.
|
|
||||||
;; To force this redisplay, we remove and re-insert the
|
|
||||||
;; newline, so that the redisplay engine thinks it belongs
|
|
||||||
;; to the changed text.
|
|
||||||
(progn
|
|
||||||
(backward-delete-char 1)
|
|
||||||
(insert "\n")))
|
|
||||||
(move-marker org-table-aligned-begin-marker (point))
|
(move-marker org-table-aligned-begin-marker (point))
|
||||||
(insert new)
|
(insert new)
|
||||||
;; Replace the old one
|
;; Replace the old one
|
||||||
|
|
Loading…
Reference in a new issue