From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32889 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjoha?= =?iso-8859-1?q?nn?=) Newsgroups: gmane.emacs.gnus.general Subject: [gnu.emacs.gnus] Re: Group parameters and gnus-boring-article-headers Date: 18 Oct 2000 17:12:24 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035169096 22296 80.91.224.250 (21 Oct 2002 02:58:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:58:16 +0000 (UTC) Cc: tbennett@nvidia.com Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id B0311D051E for ; Wed, 18 Oct 2000 11:13:05 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB09941; Wed, 18 Oct 2000 10:12:51 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 18 Oct 2000 10:12:16 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA04329 for ; Wed, 18 Oct 2000 10:12:05 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id 5D22BD051E for ; Wed, 18 Oct 2000 11:12:30 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id RAA27837; Wed, 18 Oct 2000 17:12:24 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id RAA15060; Wed, 18 Oct 2000 17:12:24 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id RAA11790; Wed, 18 Oct 2000 17:12:24 +0200 Original-To: Gnus Mailing List X-Face: /B3twq_DELA4]7alR?%xv(/f1N;bi:NN=UlA=(1a"pKte&5/Y/9*z&8q[P}+}YgJX_9*}k_ 0E|EJBC~yEok<#VOw:9GQWq1-;PCR-hd;3|Vk]~"|EM{Q5ir5nr!HzZ,W4\k5G|QWHw45gQ*tWydTR , From: tbennett@nvidia.com (Tony E. Bennett) Message-ID: Organization: Nvidia, Inc. Lines: 49 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Nike) Date: 18 Oct 2000 09:57:34 -0400 NNTP-Posting-Host: 140.174.105.2 X-Complaints-To: abuse@verio.net X-Trace: dfw-read.news.verio.net 971877458 140.174.105.2 (Wed, 18 Oct 2000 13:57:38 GMT) NNTP-Posting-Date: Wed, 18 Oct 2000 13:57:38 GMT Xref: Informatik.Uni-Dortmund.DE gnu.emacs.gnus:38995 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > On 16 Oct 2000, Tony E. Bennett wrote: >=20 > > Here is a patch that seems to fix this for me. >=20 > One thing to try is this: suppose you have group A which sets local > variable foo to 1, and you have group B which sets local variable bar > to 1. And then you enter group A, display a message, enter group B, > also display a message. Does the article buffer then have both local > variables? Whoops, it was accumulating local variables. This replacement patch works for me and fixes the problem you mention where later article buffers see superset of all previously set locals. If there are any locals that should persist in *article* buffer, then this patch would break them. {~/.../gnus/gnus/lisp}. diff -u ORIG/gnus-5.8.7/lisp/gnus-art.el . --- ORIG/gnus-5.8.7/lisp/gnus-art.el Sat Jul 1 07:10:43 2000 +++ ./gnus-art.el Wed Oct 18 09:19:34 2000 @@ -2663,6 +2663,10 @@ (if (get-buffer name) (save-excursion (set-buffer name) + ;; destroy all locals in the *Article* buffer + ;; so that group parameters copied from the *Summary* buffer + ;; don't accumulate from group to group + (kill-all-local-variables) (when gnus-article-mime-handles (mm-destroy-parts gnus-article-mime-handles)) (buffer-disable-undo) @@ -2710,6 +2714,10 @@ (save-excursion (gnus-article-setup-buffer) (set-buffer gnus-article-buffer) + ;; Copy all locals from *Summary* buffer to our *Article* buffer. + ;; Primary benefit is to allow article-buffer specific variables + ;; to be set in the group parameters, eg: gnus-treat-hide-boring-h= eaders. + (message-clone-locals gnus-summary-buffer) ;; Deactivate active regions. (when (and (boundp 'transient-mark-mode) transient-mark-mode) --=20 --tony tbennett@nvidia.com --=-=-=--