From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] inside table, delete-backward-char must not insert spaces when overwrite mode is on Date: Sun, 5 Sep 2010 22:29:22 +0200 (CEST) Message-ID: <20100905202922.A5D5E537CF@myhost.localdomain> References: <201008271956.43528.Stromeko@stromeko.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57217 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsLqB-0003KQ-OG for emacs-orgmode@gnu.org; Sun, 05 Sep 2010 16:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsLq5-0006uf-NR for emacs-orgmode@gnu.org; Sun, 05 Sep 2010 16:29:22 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:52098) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsLq5-0006uZ-Ir for emacs-orgmode@gnu.org; Sun, 05 Sep 2010 16:29:21 -0400 Received: by wwb24 with SMTP id 24so4835226wwb.30 for ; Sun, 05 Sep 2010 13:29:20 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch 245 (http://patchwork.newartisans.com/patch/245/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C201008271956.43528.Stromeko%40stromeko.net%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] inside table, > delete-backward-char must not insert spaces when overwrite mode is on > Date: Fri, 27 Aug 2010 22:56:43 -0000 > From: Achim Gratz > X-Patchwork-Id: 245 > Message-Id: <201008271956.43528.Stromeko@stromeko.net> > To: emacs-orgmode@gnu.org > > * 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))) >