emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] inside table, delete-backward-char must not insert spa


From: Achim Gratz
Subject: [Orgmode] [PATCH] inside table, delete-backward-char must not insert spaces when overwrite mode is on
Date: Fri, 27 Aug 2010 19:56:43 +0200
User-agent: KMail/1.13.5 (Linux/2.6.34-12-pae; KDE/4.4.4; i686; ; )

* lisp/org.el (org-delete-backward-char): check for nil overwrite-mode before 
inserting 
spaces.

TINYCHANGE

There's probably a different/better way to do this, but this seemed the least 
intrusive.
This patch is in the public domain.
---
 lisp/org.el |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index bc62633..41f35d4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16597,9 +16597,11 @@ because, in this case the deletion might narrow the 
column."
            (noalign (looking-at "[^|\n\r]*  |"))
            (c org-table-may-need-update))
        (backward-delete-char N)
-       (skip-chars-forward "^|")
-       (insert " ")
-       (goto-char (1- pos))
+       (if (not overwrite-mode)
+           (progn
+             (skip-chars-forward "^|")
+             (insert " ")
+             (goto-char (1- pos))))
        ;; noalign: if there were two spaces at the end, this field
        ;; does not determine the width of the column.
        (if noalign (setq org-table-may-need-update c)))
-- 
1.7.1



Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




reply via email to

[Prev in Thread] Current Thread [Next in Thread]