From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: variable's documentation string Date: Mon, 29 Jun 2009 15:47:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0a97f5cb-d434-4014-ba0b-dd5126095fbf@f10g2000vbf.googlegroups.com> References: <67ca21fb-4953-4699-b190-df74a1035228@r36g2000vbn.googlegroups.com> <2c6889fe-6935-41d6-8a8e-2b6a07761cd7@j19g2000vbp.googlegroups.com> <7cws6vjsug.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246339594 26791 80.91.229.12 (30 Jun 2009 05:26:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 05:26:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 07:26:28 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLVrP-0004MG-Ho for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 07:26:27 +0200 Original-Received: from localhost ([127.0.0.1]:58690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLVrO-0000Ly-TB for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 01:26:26 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f10g2000vbf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 192.35.35.34 Original-X-Trace: posting.google.com 1246315636 9622 127.0.0.1 (29 Jun 2009 22:47:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 29 Jun 2009 22:47:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f10g2000vbf.googlegroups.com; posting-host=192.35.35.34; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170439 X-Mailman-Approved-At: Tue, 30 Jun 2009 01:01:31 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65666 Archived-At: > > Here, it works well: > > (defvar myVar 2 "This is the documentation string") =A0 =A0 ; C-x C-e > (documentation-property 'myVar 'variable-documentation) ; C-x C-e > --> "This is the documentation string" Thanks Pascal! You lead me to the error. When I typed (documentation- property 'some_variable 'variable-documentation) and evaluated it, it worked. I then compared it to the equivalent part of the message statement that I was using, and after 15 seconds of looking at it I realized that I had incorrectly used a dash, instead of an underscore for the variable name in the documentation-property function call. I will have to remember to post the exact code I am using and not type in something equivalent. But I would have expected to have gotten an error because the symbol-name that I erroneously typed did not exist. In fact, I would prefer it gave an error to returning nil.