From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Gnus: Thread notes? Date: Fri, 15 Dec 2017 20:54:49 +0100 Message-ID: <87lgi3rcl2.fsf@web.de> References: <87o9pc359b.fsf@web.de> <874lr3pz2q.fsf@ericabrahamsen.net> <87o9p6zy4f.fsf@web.de> <878tgavoio.fsf@ericabrahamsen.net> <87fu93ulhz.fsf@web.de> <87o9nq50hi.fsf@ericabrahamsen.net> <877eudsj2x.fsf@web.de> <874lpfjgb2.fsf@ericabrahamsen.net> <87indv6iup.fsf@web.de> <87wp2agxo5.fsf@ericabrahamsen.net> <87mv2om8tj.fsf@web.de> <874lovrhl1.fsf@ericabrahamsen.net> <87o9n27q9z.fsf@web.de> <87po7io691.fsf@ericabrahamsen.net> <87po7hlf4p.fsf@web.de> <87ind8q3mk.fsf@ericabrahamsen.net> <87lgi4xlti.fsf@web.de> <87y3m3ooua.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513367739 11607 195.159.176.226 (15 Dec 2017 19:55:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 19:55:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 15 20:55:34 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePw4y-0002BK-HH for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 20:55:32 +0100 Original-Received: from localhost ([::1]:48339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePw4z-0003th-05 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 14:55:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePw4Y-0003tY-5q for help-gnu-emacs@gnu.org; Fri, 15 Dec 2017 14:55:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePw4V-0006na-3O for help-gnu-emacs@gnu.org; Fri, 15 Dec 2017 14:55:06 -0500 Original-Received: from mout.web.de ([212.227.17.11]:63235) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePw4U-0006l1-OE for help-gnu-emacs@gnu.org; Fri, 15 Dec 2017 14:55:02 -0500 Original-Received: from drachen.dragon ([92.74.165.17]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MQNiS-1eZriY3wNA-00ToNZ; Fri, 15 Dec 2017 20:54:51 +0100 In-Reply-To: <87y3m3ooua.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 15 Dec 2017 09:58:21 -0800") X-Provags-ID: V03:K0:Psbaid7jP/jKmFEH8mykrF5YhhCaxbt9RHHWwlN5kg7QoElkflG 3U1XKqPiys4gQOZbbgC5zvUkkCVKO8qwxRm2L7r3OY/s+RQlXr6mKKWJJZK/07RPgXcJkHG pME1MndYlAKietgGm7lcspXdNzAjt6dt6JVqMK06Dc5GGom5Wzfb4jpwp23n9giT506J6b8 2LCeu3Kleo7fVMHHtGorQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Wkw4VSebASM=:SpAB1ZotnEZ0BrCcq4YgG5 5i+AKuonMSGb7jfK9PCySNMB/9eEnfpPP24rQB+EPDd+YZKKb/oPiS0ESWwGLZzYuW/TWA7jg kQl3g/+uUPrT4VKY7O8K4P5/9eyLrcaxw5u5DzJdgh/ggt9ZIVnqHpKKIK8+d/347hAvl1wNW ROzkinZo9hefos/OQSimwy/L3qxLEi4KkaVO8eYyVoMkm1ztKsEKX7FkZGAn0nS3vRCuvKwtQ ofUenNKTv14fwcCl66o3DbYFuP3om8bZKrrjA+t/fhoUwLWnY/qsUttQQ+OnpXLAUpq4DbVUQ Zyab9+nAh5O8R+WzpOazz/J4gvLZqi36qkqj2BdnykOpiVE/AjbQCC0g6Vv923Aem8mcbarn/ QFl/TXNJibydW0mrB35L9ZP+H5wYa7BTWR3orAcNF9a+iHTOLNcry9uabJiqbY3Z76kHys7Ql QNOnrNMey9ZWeDwO1s0jYeoZ6irZNR3D/ND65pmlAwoHb4gdoa/9y7RUKeL9AdUaSjoquUO94 9T2iVV+4qB3Q5fC2VWc9JxhsxVth1id75yAcEmx5cRsxL0UR5drv6GMI2VRcSBy7ddvMgOGYQ MIhXlnmC8BOxIj1SclIi/USH0mKB2qlQLpQvoVQeHKntf8Uf/DJb5jLRgEvJslofuqxoDl7za otdfT+2GhPy9C0MO3N5G1pnBkhFmsr9rl8PJ521KYFVVTdc7LJljOyhgfW2X4pWMkzVSooFa1 V8c7UkkDt4nEO6J8cFPtRCZasNbdsI5ddLr2F7Lm8dINjQsnKBimmAkje5MIC9YVcwE4RD0Q X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115366 Archived-At: Eric Abrahamsen writes: > The only remaining issue is, I think it would be confusing to allow > `gnus-alter-articles-to-read-function' to be either a single function > value, or a list of functions. That makes it harder for consumers to > manipulate, as they have to check its current value first. What do > you think about requiring a list? I wouldn't find that good (it would be an unnecessary restriction for users ability to configure stuff), and I think then also the variable name would really not fit anymore the semantics. I think it would then be cleaner to introduce a new variable `gnus-alter-articles-to-read-functions' (note the added "s"). Make it so that - gnus-alter-articles-to-read-function (without "s") defaults to a new named function that would process the elements of the new variable which should be bound to a list (of functions), default nil. That would be backward compatible. - People like me could use `add-function' on `gnus-alter-articles-to-read-function'. - People preferring a list could add their functions to the new variable binding. I would still prefer a solution with only one variable, but given what we currently have, and what you want, two variables may be better. But it's not really nice. If I were you, I would tell people to use `add-function', it's not that hard, and I heard most of Gnus users even use Emacs ;-) BTW, I would expect that when the default value of `gnus-alter-articles-to-read-function' is changed to a no-op function, most people would just setq that variable to a function defined in their config, there is no need to use `add-function' to configure things. So for users who don't like to use `add-function', nothing would change. But OTOH, packages would be able to use `add-function' to change the behavior (though, with a certain risk that the user inadvertently erases that when setting the variable after a package has used `add-function' on the binding). Anyway, I expect that we are talking about very few users here. But I would hate a solution where I have to redefine a Gnus function just because the provided means of configuration don't suffice. Michael.