[comp.archives] [xpert] Re: Are there Annotation patches for Xmh

colas@AVAHI.INRIA.FR (Colas Nahaboo) (11/17/90)

Archive-name: xmh-koala/07-Nov-90
Original-posting-by: colas@AVAHI.INRIA.FR (Colas Nahaboo)
Original-subject: Re: Are there Annotation patches for Xmh
Archive-site: avahi.inria.fr [192.5.60.47]
Archive-directory: /pub
Reposted-by: emv@ox.com (Edward Vielmetti)

In article <9010241945.AA14659@excess.lcs.mit.edu> you write:
> The reason why the -annotate switch for the MH commands forw and repl
> has no effect...

> > Does anybody have
> > a patch that allows that, or know of a version of 
> > xmh that does it?
> 
> I don't.  But I would be interested in receiving one.

I have!

I Use a shell script, which I call "xmh-mark" which is:

#!/bin/sh
#    marks current message as replied now
trap "" 1
(echo "Replied: `date`"|cat - $1 >/tmp/xmh-mark$$;mv /tmp/xmh-mark$$ $1)&

And I made a button in xmh which triggers it in my .Xdefaults:

xmh*commandBox.button12.bitmap:	mark3d.xbm
xmh*commandBox.button12.translations: #override\
	<Btn1Down>,<Btn1Up>: XmhPrintView(xmh-mark)XmhUpdateViewEntry()unset()

BUT you need to apply the patches I posted (and sent to Donna) to xmh
which allows XmhPrintView to take an optional argument which is a script
shell to apply to the current message. They are available by anonymous ftp
on avahi.inria.fr, as pub/xmh-koala.patch

NOTE: this will allow you to annotate manually by clicking on a button.
To annotate automatically would need a little more patches to xmh...

--
Colas Nahaboo, Bull Research France -- Koala Project -- GWM X11 Window Manager
Internet: colas@mirsa.inria.fr, Phone: (33) 93.65.77.70, Fax: (33) 93 65 77 66
INRIA Sophia, 2004, rte des Lucioles, B.P.109 - 06561 Valbonne Cedex, FRANCE