* gnus-posting-style
@ 1998-08-20 9:14 Yoshiki Hayashi
1998-08-20 19:54 ` gnus-posting-style Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Yoshiki Hayashi @ 1998-08-20 9:14 UTC (permalink / raw)
After I found gnus-posting-style is implemented, I am fiddling with
this variable. But it doesn't work well when I use string as attribute
name. If I wrote something like
(setq gnus-posting-style
'((".*"
("X-URL" "http://somewhere.ac.jp/"))))
Message buffer would be
To: ding@gnus.org
Subject: gnus-posting-style
--text follows this line--
X-URL: http://somewhere.ac.jp/
So, here is the patch.
----------------------------------------
--- message.el Wed Aug 19 18:10:25 1998
+++ message.el.new Thu Aug 20 00:23:23 1998
@@ -3170,6 +3170,7 @@
(when message-default-headers
(insert message-default-headers)
(or (bolp) (insert ?\n)))
+ (goto-char (point-max))
(put-text-property
(point)
(progn
----------------------------------------
And, if I do something like:
(setq gnus-posting-style
'((".*"
("X-URL" "http://somewhere.ac.jp/"))
("gnus"
("X-URL" "http://somewhere.ac.jp/gnus/"))))
Gnus inserts two X-URL headers. I want string attributes to be
overridden by the later match like symbol does.
I also want it to insert Organization header only if it is set in
gnus-posting-style.
I thoght about changing gnus-configure-posing-styles to do those
things, but are these right things to do?
--
Yoshiki Hayashi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gnus-posting-style
1998-08-20 9:14 gnus-posting-style Yoshiki Hayashi
@ 1998-08-20 19:54 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-08-20 19:54 UTC (permalink / raw)
Yoshiki Hayashi <g740685@komaba.ecc.u-tokyo.ac.jp> writes:
> After I found gnus-posting-style is implemented, I am fiddling with
> this variable. But it doesn't work well when I use string as attribute
> name.
This has been fixed in Gnus 5.6.38.
> And, if I do something like:
> (setq gnus-posting-style
> '((".*"
> ("X-URL" "http://somewhere.ac.jp/"))
> ("gnus"
> ("X-URL" "http://somewhere.ac.jp/gnus/"))))
>
> Gnus inserts two X-URL headers. I want string attributes to be
> overridden by the later match like symbol does.
Yup. Fix in Gnus v5.6.39.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-08-20 19:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-20 9:14 gnus-posting-style Yoshiki Hayashi
1998-08-20 19:54 ` gnus-posting-style Lars Magne Ingebrigtsen
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).