From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: change in fill-paragraph Date: Sun, 20 Apr 2008 12:32:03 -0500 Message-ID: References: <76CdneycsJm7BpfVnZ2dnUVZ_hninZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208713247 12978 80.91.229.12 (20 Apr 2008 17:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2008 17:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 19:41:22 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JndXO-0005NH-3u for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 19:41:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JndWi-0006lp-Nq for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2008 13:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 20 Apr 2008 12:31:34 -0500 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 72 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.32 Original-X-Trace: sv3-uaCtW8/pzeXCAI0y1E+Z8xqXqJHwaURMTe0X+JVnb1dTC8JQFmLdxcsFxki/U4+CG/NGuaYd9c+PNZn!ie+wXKU5RIbEE2RTfkWlz9odz5/DThLOjUaKwFInSUdCI0pXw9VVHA3cZ1rRsgPrbZAmZPMaW4Xt!aqBhJDcEYmKmlIuzEdI/QlrTikQ3zg== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: shelby.stanford.edu gnu.emacs.help:158066 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53431 Archived-At: ken wrote: > On 04/19/2008 09:24 PM B. T. Raven wrote: >> ken wrote: >>> >>> With the versions of emacs I've been using for years, fill-paragraph >>> won't fill/reformat include in its definition of a paragraph any line >>> which begins with a space. However, the newer emacs version I use at >>> work will. That is, >>> >>> (1) In the older versions, this will be >>> one paragraph. M-q will reformat it >>> fine. I like it this way. >>> (2) In the older versions, having just a >>> single space at the beginning >>> of a line tells paragraph-fill that this is >>> a separate paragraph. So this would be a >>> separate paragraph. >>> (3) In the new emacs version, all of these >>> would constitute one paragraph and so be >>> filled together. I would much prefer the older way >>> fill-paragraph works... so that (1), (2), and (3) >>> stay where they are. >>> >>> How would I restore the old behavior to the new version of emacs? >>> >>> >>> Thanks much. >>> >> >> You can get this with >> >> "(paragraph-indent-text-mode) >> >> Major mode for editing text, with leading spaces starting a paragraph. >> In this mode, you do not need blank lines between paragraphs >> when the first line of the following paragraph starts with whitespace. >> `paragraph-indent-minor-mode' provides a similar facility ..." > > Thanks for this, but I didn't want to change the entire mode, as the > behavior above by fill-paragraph happens also when I'm using > html-helper-mode, what I use for editing/creating html. It may well > happen in other modes also, e.g., perl-mode, c-mode... not sure, because > I haven't tried a lot of other modes at work yet. > > In brief, I just want to change the behavior of fill-paragraph back to > what it was previously for all modes. If paragraph-indent-minor-mode > will do this, what would I need to put in ~/.emacs to invoke it for any > file I might open and not have "paragraph-indent-minor-mode" show up in > the mode line? (My mode line already is already occupied with all it > can accomodate.) I just typed M-x paragraph-indent-minor-mode in a text-mode buffer and it didn't change anything on the mode line. Then I did unfill paragraph on some indented and unindented random strings with no blank lines and they were treated as indented paragraphs. Then M-x text-mode turns off this minor mode. > > > Again, thanks for your help. > > I don't have any experience with these modes; they are new to me too and I just looked them up in the docs. I am happy with a blank line as paragraph separator and I don't see any need for the old conventions for paragraph-start and paragraph-separate. Maybe tweaking these two variables would give you what you want. Why do you want it anyway, may I ask? If it's for publication, you would want to run the file through a page layout program (TeX, Auctex) which will lose the blank lines, indent new paragraphs, and a whole lot more.