Gnus development mailing list
 help / color / mirror / Atom feed
* Re2: 0.28 and gnus-article-hide-boring-headers
@ 1996-01-17 12:17 Jari Aalto
  1996-01-17 19:36 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Jari Aalto @ 1996-01-17 12:17 UTC (permalink / raw)
  Cc: ding

|Wed 17.1.96, Kai Grossjohann <grossjoh@dusty.informatik.uni-dortmund.de>
| Hi all,
| 
| in gnus.el, at line 13133 in function
| gnus-article-hide-boring-headers, I changed the code to read thusly:
| 
|            ((eq elem 'reply-to)
|               ;;- Kai added stringp tests here
|             (when (and (stringp (mail-fetch-field "from"))
|                          (stringp (mail-fetch-field "reply-to"))
|                          (equal (nth 1 (mail-extract-address-components
|                                         (mail-fetch-field "from")))
|                                 (nth 1 (mail-extract-address-components
|                                         (mail-fetch-field "reply-to")))))
|               (gnus-article-hide-header "reply-to")))

And one thing more, that I just heard. The function 'equal' does
not work correcly for strings in 19.30 . If two strings
have different text properties, it will fail.

Instead all string comparisons should be done with string-equal.

[I'm still 19.28 user...]

/jari


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re2: 0.28 and gnus-article-hide-boring-headers
  1996-01-17 12:17 Re2: 0.28 and gnus-article-hide-boring-headers Jari Aalto
@ 1996-01-17 19:36 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-01-17 19:36 UTC (permalink / raw)


Jari Aalto <jaalto@tre.tele.nokia.fi> writes:

> |                          (equal (nth 1 (mail-extract-address-components
> |                                         (mail-fetch-field "from")))
> |                                 (nth 1 (mail-extract-address-components
> |                                         (mail-fetch-field "reply-to")))))

> And one thing more, that I just heard. The function 'equal' does
> not work correcly for strings in 19.30 . If two strings
> have different text properties, it will fail.
> 
> Instead all string comparisons should be done with string-equal.

`mail-fetch-field' returns strings stripped of their text properties,
so it doesn't much matter. 

-- 
Home is where the cat is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-01-17 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-01-17 12:17 Re2: 0.28 and gnus-article-hide-boring-headers Jari Aalto
1996-01-17 19:36 ` 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).