From xemacs-m  Tue Mar 25 11:59:24 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id LAA05851
	for <xemacs-beta@xemacs.org>; Tue, 25 Mar 1997 11:59:23 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id KAA16947;
	Tue, 25 Mar 1997 10:10:52 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Filladapt and Change Log don't play nicely together
References: <199703251743.JAA27738@palrel1.hp.com>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Shane Holder's message of Tue, 25 Mar 1997 11:43:47 -0600
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 25 Mar 1997 10:10:47 -0800
Message-ID: <m2k9mvn8pk.fsf@altair.xemacs.org>
Lines: 97
X-Mailer: Gnus v5.4.37/XEmacs 20.1(beta10)

Brought to you by the XEmacs memory division.

From: Steven L Baur <steve@miranova.com>
Newsgroups: comp.emacs.xemacs
Date: 07 Dec 1996 13:57:21 -0800
Subject: Re: auto-fill vs change-log mode
Message-ID: <m2n2vq2f26.fsf@altair.xemacs.org>

>>>>> "Don" == Don Christensen <djc@acuson.com> writes:

Don> I am having a problem with auto-fill and filladapt when in
Don> change-log mode.  I use change-log mode to keep a daily journal
Don> to augment a weak memory when it comes to doing weekly status
Don> reports.

filladapt and change-log-mode are fundamentally incompatible.  I can
understand the need for auto-fill, but why do you need filladapt?
Doesn't change-log-mode already Do The Right Thing?  (It does for me,
and I'm a filladapt fan).

Don> I use filladapt, but change-log mode overrides the definition of M-q.

Don> If I enter change-log mode and begin typing, the text ends up auto
Don> filling like this:


Don> Wed Dec  4 15:30:32 1996  Don Christensen  <Don.Christensen@Acuson.COM>

Don>         * This is a long entry that should be auto filled so that I have a
Don>                   nice looking paragraph that should have all lines
Don>                           indented to line up with the "T" in "This" after
Don>                                   the "*".

This comes about due the left-margin setting.  This is what is meant
by `fundamentally incompatible'. :-)

 ...

Don> If I do the same thing in text mode, I get a paragraph that looks like
Don> this (which is what I want):

Don> Wed Dec  4 15:35:53 1996  Don Christensen  <Don.Christensen@Acuson.COM>

Don>         * This is a long entry that should be auto filled so that I have
Don>           a nice looking paragraph that should have all lines indented
Don>           to line up with the "T" in "This" after the "*".


Don> Adding text into the middle and hitting M-q properly re-fills the
Don> paragraph:


Don> Wed Dec  4 15:35:53 1996  Don Christensen  <Don.Christensen@Acuson.COM>

Don>         * This is a long entry (with text inserted into it to make a M-q
Don>           necessary) that should be auto filled so that I have a nice
Don>           looking paragraph that should have all lines indented to line
Don>           up with the "T" in "This" after the "*".
             ^^

O.K.  You want the extra two blanks, this makes things more difficult.
But since this is emacs ...

(add-hook change-log-mode-hook 'dc-change-log-mode-hook)

(defun dc-change-log-mode-hook ()
  (turn-on-auto-fill)
  (turn-on-filladapt-mode)
  (setq dc-change-log-left-margin 8)  ; See below for explanation
  (setq left-margin 0))

This gets you everything except the initial indentation when the "* "
is inserted.  Make a modified copy of the function
`add-change-log-entry' in add-log.el to the line that reads:

	   (indent-to left-margin)                 ;<============
	   (insert "* " (or entry ""))))

Change the marked line to `(indent-to dc-change-log-left-margin)'.

Now, does that do what you want?

Don> Can anyone suggest a way to get change-log mode to peacefully coexist
Don> with auto-fill and filladapt and do what I want?

Don> Please respond directly, I am temporarily unsubscribed from the list
Don> (our IT department can't seem to keep mail running reliably enough to
Don> prevent periodic bounces).

Don> I am using the 19.14 Solaris 2.4 binary kit on an SS10 running Solaris
Don> 2.5.

Don> Thanks for any help.

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

