From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78868 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-user-format-function-* in non-user code Date: Fri, 20 May 2011 08:15:56 +0200 Message-ID: <878vu1ucbn.fsf@marauder.physik.uni-ulm.de> References: <8762p8wc3q.fsf@gnumonk.com> <87fwoccmtg.fsf@lifelogs.com> <87tycr3fjk.fsf@lifelogs.com> <87mxijusk2.fsf_-_@marauder.physik.uni-ulm.de> <87sjsbatci.fsf@lifelogs.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1305872338 32111 80.91.229.12 (20 May 2011 06:18:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 06:18:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27168@lists.math.uh.edu Fri May 20 08:18:47 2011 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.69) (envelope-from ) id 1QNJ2r-0001XG-OP for ding-account@gmane.org; Fri, 20 May 2011 08:18:46 +0200 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 1QNJ1v-0005pk-A1; Fri, 20 May 2011 01:17:47 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QNJ1t-0005pa-6S for ding@lists.math.uh.edu; Fri, 20 May 2011 01:17:45 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QNJ1p-0002sy-R6 for ding@lists.math.uh.edu; Fri, 20 May 2011 01:17:44 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QNJ1m-0002PB-TY for ding@gnus.org; Fri, 20 May 2011 08:17:38 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QNJ1k-00014B-2w for ding@gnus.org; Fri, 20 May 2011 08:17:36 +0200 Original-Received: from p54ac6ac2.dip.t-dialin.net ([84.172.106.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2011 08:17:36 +0200 Original-Received: from Reiner.Steib by p54ac6ac2.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2011 08:17:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 45 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p54ac6ac2.dip.t-dialin.net X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:sOSMLTzKOoBAzN2FsCk7Gq+q5Lw= X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78868 Archived-At: On Thu, May 19 2011, Ted Zlatanov wrote: > On Thu, 19 May 2011 Reiner Steib wrote: > > RS> On Wed, May 18 2011, Ted Zlatanov wrote: > > RS> Why do you name these function gnus-registry-*user*-format-function if > RS> they are predefined rather than *user*-defined? > > Because they are supposed to be defaliased to > gnus-user-format-function-X so the naming echoed that. > > What name would you use? Maybe `gnus-registry-format-function-char' and `gnus-registry-format-function-word'? > RS> I know, we already have such (IMHO) bad examples[1], but we should try > RS> to eliminate those instead of adding new ones. > > Why is this bad? Does it confuse people or cause technical problems? Although it is not spelled out in the manual[1], I think that the user defined functions (and format specifiers) should be reserved for the user just like the keys[2] that are reserved for users. In this way the user can be sure that Gnus won't overwrite his bindings[3]. [1] ,----[ (info "(gnus)Summary Buffer Lines") ] | `u' | User defined specifier. The next character in the format string | should be a letter. Gnus will call the function | `gnus-user-format-function-X', where X is the letter following | `%u'. [...] `---- [2] (info "(emacs)Keymaps") [3] "bad example": (info "(gnus)The Gnus Diary Library") Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/