From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Gerald Wildgruber Newsgroups: gmane.emacs.help Subject: Re: Prevent fill-paragraph from adding a newline? Date: 24 Apr 2003 10:02:17 +0200 Organization: T-Online Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5l4r4pj9yd.fsf@rum.cs.yale.edu> Reply-To: Gerald Wildgruber NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051173247 12985 80.91.224.249 (24 Apr 2003 08:34:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 08:34:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 10:34:03 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198bpX-0002A9-00 for ; Thu, 24 Apr 2003 10:11:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198bof-0008Qg-06 for gnu-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 04:10:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: news.t-online.com 1051171491 00 13649 -+k3EpFbS1AqgH 030424 08:04:51 Original-X-Complaints-To: abuse@t-online.com X-ID: Xoz6L+ZcreApFWfyp8hNEFRZAPYXzaCHO0ZNwrCHMggNONWCa-aSQ3 User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:112259 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8758 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8758 "Stefan Monnier" writes: > > This is with emacs 21.3.50. > > Then it should go to emacs-retest-bug@gnu.org. > If you use M-x report-emacs-bug (which you should), it'll do that > for you. > > > Every time I do a M-q (fill-paragraph) in text mode, emacs has this > > annoying habit of silently adding a newline to the end of the paragraph. > > Sounds like a bug (and I'd be the one who introduced it, most likely). > Please report the bug as mentioned above. Stefan, thanks for your answer. Actually I don't think that this problem has anything to do with my using a CVS version. And probably it wasn't you either who introduced this behavior :-) If I remember correctly, this adding of a newline has always been the case with M-q since I used emacs. Also, I remember faintly that as this question came up already a long time ago, a reason was given for it (not a bug but a feature) but I cannot remember what exactly it was and I didn't find it on google. The adding of a newline only happens, if nothing follows the actual paragraph, the one M-q is being applied to. If some text follows, no additional newline is inserted. Put point inside text near the end of buffer, do a M-q and after the last letter an newline is automagically inserted. I don't know why. My knowledge on the other hand of elisp is so pathetic that checking the function in fill.el did not enlighten me. Gerald