Gnus development mailing list
 help / color / mirror / Atom feed
* Fix to avoid empty Gcc: line when not inside a group
@ 1999-12-10 11:26 Jaap-Henk Hoepman
  0 siblings, 0 replies; only message in thread
From: Jaap-Henk Hoepman @ 1999-12-10 11:26 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 506 bytes --]


I have (gcc-self 't) in my main mail topic, because I don't want to set this
for each individual mail group. This means that gnus-message-archive-group
is not used. This fine for almost all circumstances, except when I start
composing a message while in the group buffer. Then an empty Gcc: line appears
(because is in this case gnus-newsgroup-name is ""). In this case I would like
however that gnus-message-archive-group takes effect. I have applied the
following patch to gnus-msg.el to achieve this.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-gnus-msg-5.8.2.el --]
[-- Type: text/x-patch, Size: 417 bytes --]

--- gnus-msg.el.orig	Fri Dec 10 12:22:47 1999
+++ gnus-msg.el	Fri Dec 10 12:09:41 1999
@@ -1033,6 +1033,9 @@
 	 (group (or group gnus-newsgroup-name ""))
 	 (gcc-self-val
 	  (and gnus-newsgroup-name
+         ;; JHH FIX:  ignore gcc-self if gnus-newsgroup-name equals ""
+	       (not (equal gnus-newsgroup-name ""))
+	 ;; JHH ENDFIX
 	       (gnus-group-find-parameter
 		gnus-newsgroup-name 'gcc-self)))
 	 result

[-- Attachment #3: Type: text/plain, Size: 584 bytes --]


I suspect however, that seeing the first condition (and gnus-newsgroup-name ..)
the value of gnus-newsgroup-name is supposed to be nil when not inside a
group...

Regards,
Jaap-Henk


-- 
Jaap-Henk Hoepman             | Come sail your ships around me
Dept. of Computer Science     | And burn these bridges down
University of Twente          |       Nick Cave - "Ship Song"
Email: hoepman@cs.utwente.nl === WWW: www.cs.utwente.nl/~hoepman
Phone: +31 53 4893795 === Secr: +31 53 4893770 === Fax: +31 53 4894590
PGP ID: 0xF52E26DD  Fingerprint: 1AED DDEB C7F1 DBB3  0556 4732 4217 ABEF

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-10 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-10 11:26 Fix to avoid empty Gcc: line when not inside a group Jaap-Henk Hoepman

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).