+2000-11-28 Miles Bader <miles@gnu.org>
+
+ * simple.el (delete-horizontal-space): Handle fields more generally.
+
2000-11-28 Gerd Moellmann <gerd@gnu.org>
* simple.el (delete-horizontal-space): Handle minibuffer prompt.
(defun delete-horizontal-space ()
"Delete all spaces and tabs around point."
(interactive "*")
- (skip-chars-backward " \t")
- (let ((start (max (minibuffer-prompt-end) (point))))
- (delete-region start (progn (skip-chars-forward " \t") (point)))))
+ (skip-chars-backward " \t" (field-beginning))
+ (delete-region (point) (progn (skip-chars-forward " \t") (point))))
(defun just-one-space ()
"Delete all spaces and tabs around point, leaving one space."