(comment-indent-new-line): Use delete-horizontal-space

(so as to obey the field property in the minibuffer).
This commit is contained in:
Stefan Monnier 2000-12-11 21:41:41 +00:00
parent 4b0cd42df2
commit adf9c99461
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2000-12-11 Stefan Monnier <monnier@cs.yale.edu>
* newcomment.el (comment-indent-new-line): Use delete-horizontal-space
(so as to obey the field property in the minibuffer).
* obsolete/c-mode.el: Moved from lisp/progmodes.
* obsolete/auto-show.el: Moved from lisp.
* obsolete/ooutline.el: Moved from lisp/textmodes.

View file

@ -6,7 +6,7 @@
;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: comment uncomment
;; Version: $Name: $
;; Revision: $Id: newcomment.el,v 1.26 2000/11/29 05:11:01 monnier Exp $
;; Revision: $Id: newcomment.el,v 1.27 2000/12/06 19:54:37 fx Exp $
;; This file is part of GNU Emacs.
@ -928,8 +928,7 @@ unless optional argument SOFT is non-nil."
(setq comin (point))))))
;; Now we know we should auto-fill.
(delete-region (progn (skip-chars-backward " \t") (point))
(progn (skip-chars-forward " \t") (point)))
(delete-horizontal-space)
(if soft (insert-and-inherit ?\n) (newline 1))
(if fill-prefix
(progn