From a968b8c76f1f2936c566b9e205469b5cb3b03e1e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 17 Mar 2011 12:49:53 +0100 Subject: [PATCH] org-table: remove a now useless hack * lisp/org-table.el (org-table-align): remove now useless hack. --- lisp/org-table.el | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index d42f34a10..20eea6edc 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -815,16 +815,6 @@ When nil, simply write \"#ERROR\" in corrupted fields.") (append (pop fields) emptystrings)) hfmt)) 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)) (insert new) ;; Replace the old one