From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80473 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: `gnus-bound-and-true-p' Date: Wed, 02 Nov 2011 17:55:46 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r51qp4t9.fsf@lifelogs.com> References: <87ty6mz1ni.fsf@marauder.physik.uni-ulm.de> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320271011 11884 80.91.229.12 (2 Nov 2011 21:56:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2011 21:56:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28758@lists.math.uh.edu Wed Nov 02 22:56: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 1RLinf-0000nP-B9 for ding-account@gmane.org; Wed, 02 Nov 2011 22:56:47 +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 1RLinF-00061k-0r; Wed, 02 Nov 2011 16:56:21 -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 1RLinD-00061S-5O for ding@lists.math.uh.edu; Wed, 02 Nov 2011 16:56:19 -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 1RLimz-00026l-Tx for ding@lists.math.uh.edu; Wed, 02 Nov 2011 16:56:16 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RLimx-0006KE-1J for ding@gnus.org; Wed, 02 Nov 2011 22:56:03 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RLimw-0000UQ-Dt for ding@gnus.org; Wed, 02 Nov 2011 22:56:02 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Nov 2011 22:56:02 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Nov 2011 22:56:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:wrh4n2iLM9M9fBeUNc6WrNQzDWs= X-Spam-Score: -6.1 (------) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80473 Archived-At: On Wed, 02 Nov 2011 22:09:32 +0100 Robert Pluim wrote: RP> Reiner Steib writes: >> Can't you use an alias for Emacs and a macro for XEmacs? >> >> (if (fboundp 'bound-and-true-p) >> (defalias 'gnus-bound-and-true-p 'bound-and-true-p) >> (defmacro gnus-bound-and-true-p (var) >> "Return the value of symbol VAR if it is bound, else nil." >> `(and (boundp (quote ,var)) ,var))) That was failing in XEmacs according to the Gnus Buildbot. See http://www.randomsample.de:4456/grid, older builds. It may have been the `eval-when-compile'. RP> Especially since in XEmacs 21.5: RP> `bound-and-true-p' is a compiled Lisp macro RP> -- loaded from "/build/xemacs-edge/lisp/subr.elc" RP> (bound-and-true-p VAR) RP> Documentation: RP> Return the value of symbol VAR if it is bound, else nil. RP> And: RP> (fboundp 'bound-and-true-p) => t I've spend too many hours dealing with this issue. So if you guys or anyone else can provide a patch that works in Emacs and XEmacs, please do and let's be done. Please keep in mind this is used very rarely, so not using a macro works perfectly well as far as performance, but I agree that it's nice to rely on the built-in functionality. Thanks Ted