From adf9c99461b20d75675ac0c2086874adacd7dcf7 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 11 Dec 2000 21:41:41 +0000 Subject: [PATCH] (comment-indent-new-line): Use delete-horizontal-space (so as to obey the field property in the minibuffer). --- lisp/ChangeLog | 3 +++ lisp/newcomment.el | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 635a40d30aa..3fdad5280c7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2000-12-11 Stefan Monnier + * 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. diff --git a/lisp/newcomment.el b/lisp/newcomment.el index ec294883c4a..bbd922e5dd9 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -6,7 +6,7 @@ ;; Maintainer: Stefan Monnier ;; 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 -- 2.39.5