From: Gerd Moellmann Date: Tue, 28 Nov 2000 11:54:12 +0000 (+0000) Subject: (delete-horizontal-space): Handle minibuffer prompt. X-Git-Tag: emacs-pretest-21.0.92~15 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfe8ece3726a0ee4b9a8a977fd527eb666e6e9c0;p=emacs.git (delete-horizontal-space): Handle minibuffer prompt. --- diff --git a/lisp/simple.el b/lisp/simple.el index 0e70e83a157..13020a98a52 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -333,7 +333,8 @@ Leave one space or none, according to the context." "Delete all spaces and tabs around point." (interactive "*") (skip-chars-backward " \t") - (delete-region (point) (progn (skip-chars-forward " \t") (point)))) + (let ((start (max (minibuffer-prompt-end) (point)))) + (delete-region start (progn (skip-chars-forward " \t") (point))))) (defun just-one-space () "Delete all spaces and tabs around point, leaving one space."