help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable's documentation string


From: Pascal J. Bourguignon
Subject: Re: variable's documentation string
Date: Mon, 29 Jun 2009 11:24:07 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

TheFlyingDutchman <zzbbaadd@aol.com> writes:

> That should be
> (defvar myVar 2 "This is the documentation string")  ; typo in the
> post only

Here, it works well:

(defvar myVar 2 "This is the documentation string")     ; C-x C-e
(documentation-property 'myVar 'variable-documentation) ; C-x C-e
--> "This is the documentation string"

Have you evaluated the defvar form?

Was the documentation string present in the first occurence of defvar
for that variable?

(defvar a)                                           
(defvar a "Documentation of A")
(documentation-property 'a 'variable-documentation) 
--> nil

(setf (documentation-property 'a 'variable-documentation) 
       "New documentation of A")
(documentation-property 'a 'variable-documentation) 
--> "New documentation of A"

-- 
__Pascal Bourguignon__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]