From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67940 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus shouldn't be making general-purpose variables buffer-local Date: Wed, 17 Dec 2008 12:10:39 +0100 Message-ID: References: <9aa0cfde0812112242o38d885a1h12d9e4ac490021@mail.gmail.com> <863agokpas.fsf@lifelogs.com> <87vdtj41ux.fsf@engster.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229512288 15769 80.91.229.12 (17 Dec 2008 11:11:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 11:11:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16386@lists.math.uh.edu Wed Dec 17 12:12:33 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCuKO-0000km-0p for ding-account@gmane.org; Wed, 17 Dec 2008 12:12:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LCuIg-0004G2-VR; Wed, 17 Dec 2008 05:10:47 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LCuIf-0004Fm-IP for ding@lists.math.uh.edu; Wed, 17 Dec 2008 05:10:45 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LCuIc-000889-JC for ding@lists.math.uh.edu; Wed, 17 Dec 2008 05:10:45 -0600 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LCuIp-00047v-00 for ; Wed, 17 Dec 2008 12:10:55 +0100 Original-Received: from kafka.physik3.gwdg.de ([134.76.92.48] helo=kafka) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1LCuIb-0001YF-M0 for ding@gnus.org; Wed, 17 Dec 2008 12:10:41 +0100 Mail-Copies-To: never Mail-Followup-To: ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Wed, 17 Dec 2008 18:20:02 +0900") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67940 Archived-At: Katsumi Yamaoka writes: >>>>>> David Engster wrote: >> Katsumi Yamaoka writes: >>>> On Thu, 11 Dec 2008 22:42:39 -0800 "Ami Fischman" wrote: >>>>>>> Gnus makes 'timestamp a buffer-local variable in *Summary* buffers >>>>>>> (and, I suspect, any other set group parameter). This causes buggy >>>>>>> interaction with non-gnus (async, usually) functions that bind >>>>>>> 'timestamp as a function-local variable, such as emacs-jabber's >>>>>>> jabber-history-log-message. For the details please see >>>>>>> http://thread.gmane.org/gmane.emacs.devel/105256. Can gnus be changed >>>>>>> to prefix such buffer-locals with at least gnus- or, better yet, >>>>>>> gnus-summary-- ? > >> There are indeed lots of possible group parameters which turn to >> buffer-local variables. I am surely not innocent here, with nnmairix >> having group parameters like `query', `folder' and `threads'. The >> problem I see is that changing those is incompatible with existing >> groups... not sure how to deal with that... > >>> Well, how can I get `timestamp' as a buffer-local variable in >>> the summary buffer? > >> I have some nnimap groups with `timestamp' in their group parameters, >> but don't know which feature put it there. You can search for >> `timestamp' in your .newsrc.eld. > > Yes, there are a lot of `(timestamp 18760 46339)' things in my > .newsrc.eld file, but I believe it will never be bound as a variable. `gnus-summary-set-local-parameters' will set *all* group/topic parameters to buffer-local variables. This includes `timestamp', but also stuff like `visible', `uidvadility', `expiry-wait', `registry-ignore', and so on. So maybe, we should change `gnus-summary-set-local-parameters' to only set those variables buffer-local that begin with a proper prefix, like "gnus-" and "mm-" ? > Those forms are accessed using `gnus-group-set-timestamp' and > `gnus-group-timestamp', that don't seem to bind it as a variable. Actually, gnus-group-set-timestamp is used nowhere in the whole trunk. :-) I guess it's mostly accessed through gnus-group-get/set-parameter or directly from the info. Regards, David