all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Symbol's value as variable is void: selection-coding-system
@ 2008-05-22 23:49 Miles Bader
  2008-05-22 23:54 ` Miles Bader
  2008-05-23 19:50 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Miles Bader @ 2008-05-22 23:49 UTC (permalink / raw)
  To: emacs-devel

If I do `C-h C RET' I get that error, and doing describe-variable on
`selection-coding-system' gives:

   selection-coding-system is a variable defined in `C source code'.
   It is void as a variable.

Clicking on the `C source code' link results in an error: Search failed:
"\x1fVselection-coding-system "

I see that selection-coding-system _is_ defined, using defcustom, in
lisp/select.el, and was removed from C code on 2008-02-01, but something
apparently still thinks it's defined in C code...

Emacs is from CVS trunk, checked out about an hour ago, compiled with
"make bootstrap".

-Miles

-- 
Cat, n. A soft, indestructible automaton provided by nature to be kicked when
things go wrong in the domestic circle.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Symbol's value as variable is void: selection-coding-system
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Miles Bader @ 2008-05-22 23:54 UTC (permalink / raw)
  To: emacs-devel

I wrote:
>    selection-coding-system is a variable defined in `C source code'.
>    It is void as a variable.
>
> Emacs is from CVS trunk, checked out about an hour ago, compiled with
> "make bootstrap".

Oh, also, it's compiled without X support (configure --without-x), on a
GNU/linux x86-64 machine (fencepost).

-Miles

-- 
"1971 pickup truck; will trade for guns"




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Symbol's value as variable is void: selection-coding-system
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2008-05-23 19:50 UTC (permalink / raw)
  To: Miles Bader; +Cc: emacs-devel

> If I do `C-h C RET' I get that error, and doing describe-variable on
> `selection-coding-system' gives:

>    selection-coding-system is a variable defined in `C source code'.
>    It is void as a variable.

> Clicking on the `C source code' link results in an error: Search failed:
> "\x1fVselection-coding-system "

> I see that selection-coding-system _is_ defined, using defcustom, in
> lisp/select.el, and was removed from C code on 2008-02-01, but something
> apparently still thinks it's defined in C code...

> Emacs is from CVS trunk, checked out about an hour ago, compiled with
> "make bootstrap".

I cannot reproduce this, do you still see it?  Can someone else
reproduce it?  Are you using a non-X11 build or somesuch?


        Stefan




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Symbol's value as variable is void: selection-coding-system
  2008-05-23 19:50 ` Stefan Monnier
@ 2008-05-27  3:10   ` Miles Bader
  2008-05-27 14:49     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Miles Bader @ 2008-05-27  3:10 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

On Fri, May 23, 2008 at 03:50:08PM -0400, Stefan Monnier wrote:
> 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).

Thanks,

-Miles

-- 
Politics, n. A strife of interests masquerading as a contest of
principles. The conduct of public affairs for private advantage.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Symbol's value as variable is void: selection-coding-system
  2008-05-27  3:10   ` Miles Bader
@ 2008-05-27 14:49     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2008-05-27 14:49 UTC (permalink / raw)
  To: Miles Bader; +Cc: emacs-devel

>> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-27 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.