From 05ff13bafc1b1ba5e9b0c2587bcede71f38fcce0 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 2 Dec 2001 03:57:32 +0000 Subject: [PATCH] (tab-to-tab-stop): Use delete-horizontal-space. --- lisp/ChangeLog | 4 ++++ lisp/indent.el | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 31e791a679a..fc847a1dc5c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2001-12-01 Stefan Monnier + + * indent.el (tab-to-tab-stop): Use delete-horizontal-space. + 2001-12-01 Eli Zaretskii * progmodes/idlwave.el, progmodes/idlw-rinfo.el: diff --git a/lisp/indent.el b/lisp/indent.el index d097a02c833..95be9629837 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -468,8 +468,7 @@ Use \\[edit-tab-stops] to edit them interactively." (setq tabs (cdr tabs))) (if tabs (let ((opoint (point))) - (skip-chars-backward " \t") - (delete-region (point) opoint) + (delete-horizontal-space t) (indent-to (car tabs))) (insert ?\ )))) -- 2.39.2