all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Symbol's value as variable is void: selection-coding-system
Date: Tue, 27 May 2008 10:49:47 -0400	[thread overview]
Message-ID: <jwviqwzltsq.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20080527031042.GA25648@fencepost.gnu.org> (Miles Bader's message of "Mon, 26 May 2008 23:10:42 -0400")

>> 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: \x1fVselection-coding-system" because Emacs
  decided the variable is defined in C, but in the DOC file, there is no
  \x1fVselection-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




      reply	other threads:[~2008-05-27 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 23:49 Symbol's value as variable is void: selection-coding-system Miles Bader
2008-05-22 23:54 ` Miles Bader
2008-05-23 19:50 ` Stefan Monnier
2008-05-27  3:10   ` Miles Bader
2008-05-27 14:49     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwviqwzltsq.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.