Gnus development mailing list
 help / color / mirror / Atom feed
From: Sudish Joseph <sj@eng.mindspring.net>
Subject: Re: Preformatting features of Emacs
Date: 28 Feb 1997 21:13:22 -0500	[thread overview]
Message-ID: <yviad8tknyv1.fsf@atreides.eng.mindspring.net> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 01 Mar 1997 02:04:15 +0100

Lars Magne Ingebrigtsen writes:
> `gnus-article-fill-cited-article' does bind `adaptive-fill-mode' to
> nil before filling anything...

Stopped being lazy and took a look at the source.  The problem was
that a) g-a-f-c-a wasn't skipping blank lines at the start of paras
when using it's marks-based feeding of fill-region and b) it also
needs to skip "blank" quoted lines, since filladapt correctly sees
them as blank lines once it drops the prefix.
LongSentencesAreCoolerThanLongWords. 

Anyways, the patch below fixes this...BUT, this is still not quite the
right thing, IMO.  Currently, gnus-cite groks the prefix and feeds it
to fill-region.  This loses for filladapt users coz some weird voodoo
causes filladapt to get confused and drop a few leading spaces.

The alternative is to let filladapt users simply use that alone and
not set fill-prefix at all.  This could be auto-grokked by checking
adaptive-fill-mode (i think?) or made a variable.  I'll play with it
later.

-Sudish

--- gnus-cite.el~	Fri Feb 28 21:04:41 1997
+++ gnus-cite.el	Fri Feb 28 21:04:41 1997
@@ -424,7 +424,13 @@
 	  (let ((adaptive-fill-regexp
 		 (concat "^" (regexp-quote (cdar marks)) " *"))
 		(fill-prefix (cdar marks)))
-	    (fill-region (point-min) (point-max)))
+	    (fill-region (progn
+			   (skip-chars-forward "\n\t ")
+			   (beginning-of-line)
+			   (while (looking-at (concat "^" fill-prefix " *$"))
+			     (forward-line))
+			   (point))
+			 (point-max)))
 	  (set-marker (caar marks) nil)
 	  (setq marks (cdr marks)))
 	(when marks




  parent reply	other threads:[~1997-03-01  2:13 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-28 10:35 Hrvoje Niksic
1997-02-28 11:32 ` Per Abrahamsen
1997-02-28 14:12   ` Steinar Bang
1997-03-03  9:31     ` Robert Bihlmeyer
1997-02-28 16:31   ` Hrvoje Niksic
1997-02-28 15:37 ` David Blacka
1997-03-03 11:51   ` Lars Balker Rasmussen
1997-02-28 20:37 ` Paul Franklin
1997-02-28 22:17   ` Hrvoje Niksic
1997-02-28 23:26     ` Stainless Steel Rat
1997-02-28 23:58       ` Jason L Tibbitts III
1997-03-01  0:57         ` Sudish Joseph
1997-03-01  2:05           ` Alan Shutko
1997-03-01  2:53             ` Paul Franklin
1997-03-01 21:45               ` Jason L Tibbitts III
1997-03-01 23:15                 ` C. R. Oldham
1997-03-02 23:24                   ` Alan Shutko
1997-03-01  3:02         ` filladapt.el Stainless Steel Rat
1997-03-05 15:58           ` Disabling scoring for a group C. R. Oldham
1997-03-05 17:15             ` Hrvoje Niksic
1997-03-05 19:08               ` C. R. Oldham
1997-03-06 13:41                 ` Per Abrahamsen
1997-03-07  7:48                   ` Wes Hardaker
1997-03-07 12:41                     ` Per Abrahamsen
1997-03-01  5:52       ` Preformatting features of Emacs Hrvoje Niksic
1997-03-01  0:29     ` Sudish Joseph
1997-02-28 22:22   ` Sudish Joseph
1997-02-28 22:47     ` Per Abrahamsen
1997-02-28 23:56       ` Sudish Joseph
1997-03-01  0:21         ` Stephen Peters
1997-02-28 23:59       ` Sudish Joseph
1997-03-01  1:04         ` Lars Magne Ingebrigtsen
1997-03-01  1:53           ` Sudish Joseph
1997-03-01  2:13           ` Sudish Joseph [this message]
1997-03-01  2:17           ` Steven L Baur
1997-03-01  3:06             ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yviad8tknyv1.fsf@atreides.eng.mindspring.net \
    --to=sj@eng.mindspring.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).