From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63803 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: message-sort-headers-1: Symbol's value as variable is void: sort-fold-case Date: Tue, 10 Oct 2006 08:29:52 +0900 Organization: Emacsen advocacy group Message-ID: References: <87hcydkfdl.fsf@baldur.nicundtas.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160437213 23593 80.91.229.2 (9 Oct 2006 23:40:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2006 23:40:13 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m12330@lists.math.uh.edu Tue Oct 10 01:40:12 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GX4j0-00081N-JQ for ding-account@gmane.org; Tue, 10 Oct 2006 01:39:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GX4il-0006gA-00; Mon, 09 Oct 2006 18:39:43 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GX4ZW-0006g5-00 for ding@lists.math.uh.edu; Mon, 09 Oct 2006 18:30:10 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1GX4ZS-0002R9-7M for ding@lists.math.uh.edu; Mon, 09 Oct 2006 18:30:08 -0500 Original-Received: from minsk.hostforweb.net ([66.225.201.21]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GX4ZL-0002Ux-00 for ; Tue, 10 Oct 2006 01:29:59 +0200 Original-Received: from localhost ([127.0.0.1]:39163) by minsk.hostforweb.net with esmtpa (Exim 4.52) id 1GX4ZN-0008Jv-GP; Mon, 09 Oct 2006 18:30:02 -0500 Original-To: Tassilo Horn X-Hashcash: 1:20:061009:heimdall@uni-koblenz.de::ntQz1ISOsWwxD7WB:000000000000000000000000000000000000002cUH X-Hashcash: 1:20:061009:ding@gnus.org::JGFPllYEjmxy39f/:00000uY+ X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:XoTuDyWDcg2lJbWDRAnHR16vMx0= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - minsk.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63803 Archived-At: >>>>> In <87hcydkfdl.fsf@baldur.nicundtas.de> Tassilo Horn wrote: > since a few days I sometimes get the message in the subject when I press > RET on an article in *Summary*. The *Article* buffer then shows all > headers without fontification. > Even a `M-: (require 'sort)' doesn't fix it, although it's defined there > (with `defcustom'). This seems to happen only if I start Gnus right > after I started emacs... > ,----[ C-h v sort-fold-case RET ] >| sort-fold-case is a variable defined in `sort.el'. >| It is void as a variable. > `---- > A `(defvar sort-fold-case nil)' fixes it. > If I start emacs and do `M-: (require 'sort)' before I start Gnus, it's > properly set. > ,----[ C-h v sort-fold-case RET ] >| sort-fold-case is a variable defined in `sort.el'. >| Its value is nil > `---- You seem to load a program in which `sort-fold-case' is bound to some value by `let' and uses some sort function to be autoloaded. For instance, I can reproduce a similar error by `emacs -Q' and the following form: (with-temp-buffer (let ((sort-fold-case t)) (sort-lines nil (point-min) (point-max))) (sort-lines nil (point-min) (point-max))) The first `sort-lines' autoloads sort.elc which provides the `sort-fold-case' variable, however the variable disappears after exiting the `let' form. After performing this, the feature `sort' is provided, so the form `(require 'sort)' does nothing. Such a code should be written like the following so that the `sort-fold-case' variable may exist before it is bound by `let'. (require 'sort) (let ((sort-fold-case t)) (sort-lines nil (point-min) (point-max))) There is no culprit in the Gnus sources. I guess you will probably be able to find it by performing grep. For example: grep '(sort-fold-case' ~/.emacs ~/.gnus.el grep '(sort-fold-case' /.../site-lisp/*.el