From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Symbol's value as variable is void: selection-coding-system Date: Tue, 27 May 2008 10:49:47 -0400 Message-ID: References: <6163t52921.fsf@fencepost.gnu.org> <20080527031042.GA25648@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211899819 20854 80.91.229.12 (27 May 2008 14:50:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 14:50:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 27 16:50:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K10Vh-0005Fq-Re for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 16:50:46 +0200 Original-Received: from localhost ([127.0.0.1]:56155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K10Uw-0007LO-Do for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 10:49:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K10Up-0007L4-WC for emacs-devel@gnu.org; Tue, 27 May 2008 10:49:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K10Um-0007Jc-Up for emacs-devel@gnu.org; Tue, 27 May 2008 10:49:50 -0400 Original-Received: from [199.232.76.173] (port=39500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K10Um-0007JU-Lq for emacs-devel@gnu.org; Tue, 27 May 2008 10:49:48 -0400 Original-Received: from 206-248-174-248.dsl.teksavvy.com ([206.248.174.248]:46443 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K10Um-0000Ye-H7 for emacs-devel@gnu.org; Tue, 27 May 2008 10:49:48 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 321B9B408C; Tue, 27 May 2008 10:49:47 -0400 (EDT) In-Reply-To: <20080527031042.GA25648@fencepost.gnu.org> (Miles Bader's message of "Mon, 26 May 2008 23:10:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97802 Archived-At: >> I cannot reproduce this, do you still see it? Can someone else >> reproduce it? Are you using a non-X11 build or somesuch? > As I mentioned in a followup to that message, it's built without X support > (--without-x). I think I figured it out: - you get a "Search failed: Vselection-coding-system" because Emacs decided the variable is defined in C, but in the DOC file, there is no Vselection-coding-system within one of the build-files. - Emacs decides that the variable is defined in C because it has a variable-documentation property with an *integer* value (the fact that this property is non-nil is what allows you to specify it to descvribe-variable even tho it's void) and it doesn't appear in load-history. - It doesn't appear in load-history because it's not been defined. - The variable-documentation property is added by Snarf-documentation, which is careful to skip C files other than the ones in build-files but is not careful to skip Elisp files that are not in load-history. Now, why doesn't w32-valid-locales suffer from the same problem? Because Snarf-documentation checks whether the symbol already exists (but not whether it's bound) before adding the variable-documentation property. And even though the selection-coding-system variable is not defined, the symbol appears in mule.el (set-selection-coding-system) and mule-diag.el (describe-current-coding-system). Incidentally M-x describe-current-coding-system RET also signals an error that selection-coding-system is void. Stefan