changeset 33953:80c90f83320d

(delete-horizontal-space): Handle minibuffer prompt.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 28 Nov 2000 11:54:12 +0000
parents ca22422634ac
children 459041b5b148
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Tue Nov 28 11:49:05 2000 +0000
+++ b/lisp/simple.el	Tue Nov 28 11:54:12 2000 +0000
@@ -333,7 +333,8 @@
   "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."