From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: S Boucher Newsgroups: gmane.emacs.help Subject: Re: what's the mystery of file-name variable? Date: Fri, 18 Nov 2011 07:48:38 -0800 (PST) Message-ID: <1321631318.27240.YahooMailNeo@web161602.mail.bf1.yahoo.com> References: <21ECC0D3E4DA4DEC8A421034EA5AA724@us.oracle.com> Reply-To: S Boucher NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="406169123-181200749-1321631318=:27240" X-Trace: dough.gmane.org 1321631341 24941 80.91.229.12 (18 Nov 2011 15:49:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2011 15:49:01 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: filebat Mark , Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 16:48:56 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRQgR-0002IM-Iw for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 16:48:55 +0100 Original-Received: from localhost ([::1]:41663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRQgO-000648-Q8 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 10:48:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRQgF-00063l-Ov for help-gnu-emacs@gnu.org; Fri, 18 Nov 2011 10:48:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRQgC-0001b1-4T for help-gnu-emacs@gnu.org; Fri, 18 Nov 2011 10:48:43 -0500 Original-Received: from nm10.bullet.mail.bf1.yahoo.com ([98.139.212.169]:39326) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RRQgB-0001aw-PS for help-gnu-emacs@gnu.org; Fri, 18 Nov 2011 10:48:40 -0500 Original-Received: from [98.139.212.152] by nm10.bullet.mail.bf1.yahoo.com with NNFMP; 18 Nov 2011 15:48:39 -0000 Original-Received: from [98.139.212.199] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 18 Nov 2011 15:48:39 -0000 Original-Received: from [127.0.0.1] by omp1008.mail.bf1.yahoo.com with NNFMP; 18 Nov 2011 15:48:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 100155.13303.bm@omp1008.mail.bf1.yahoo.com Original-Received: (qmail 31347 invoked by uid 60001); 18 Nov 2011 15:48:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1321631319; bh=H1g+UePpr16fP78yG6AqNxLZs6Pju/Xz/E8ie5pIyhE=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=hEDljel5eXQLyhJ8t2gYB2tkjWQqOz87/rtr9yh9IeFaHY74wipHuEwv8xoz/m7dYUgKXN/mKeOmu/Eva36JBwfsQYsfKDDrvW72MLXGU+EW3APOCN4Or12ZaJwNto+wjtlFt+9nYJKS2ACiUpGGaq8hfz+Vbx/GIESSkc27Zek= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=IZ8gDfHWQmEQOmbCYQmCB9HSWVajD2Fbm+KyVh5JMiYWwa6t4an8dceIiDdrqOiswMfslIHntEAlbg7OpyAE0UgIfZWpqc+SQlwXv5vLKD9FLD+NQEj3AZosN4JycX8qlcxXM6KwP5mynoAxj34DYNxhU8ciZAQAYSu/7X9heBY=; X-YMail-OSG: 19NJlIQVM1l7EHL1xJmWVLd7Q5fbp5_JCF7tkePxNvVsFPv VpLXi5cGUE8Tjc7sP6YIZxx1Raql42uQTaE2kxLfGHKLHd_F.Ib2A.2dZcti 7PG3RbyB86NCxO9WQ5QYbkqwfbbIkEXxGldCtx8GOH83s0lMRGIkj3P1hYnt DTCpK.wJ9ckGHHxlcQuLQLCKbMfHnmP_xaLTzzRgIPYUwCvXyZox81xf4AlC fgc9P.H0VKUxHs.7TW7txtrVgzrFK5leXwvRBE6vbFvc9Ys_Oqx8PQB8XGX4 j6ovZ7yBsupYiqmmSKPRyQujpOKQyf8NAwJerv7__6u2a_cuIvpkq7ZRMlWG AXzU310Gldch08aAbESK2.Lub6TQx2nJBzChol3m7dM945n5FwahIWE_3I3R VD8FYF.NtFWCTiCd73U7v9xAC99ZuIyggrF8_xMii6paVVoGbKEP7Y194AwH q Original-Received: from [209.5.112.166] by web161602.mail.bf1.yahoo.com via HTTP; Fri, 18 Nov 2011 07:48:38 PST X-Mailer: YahooMailWebService/0.8.115.325013 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.212.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82956 Archived-At: --406169123-181200749-1321631318=:27240 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable You do not say how you eval'ed the TWO expressions.=0A=0AIf you are in the = scratch buffer and place the cursor at the end of the 2nd line, and hit C-j= , emacs is only going to eval that line, which is the last sexp before the = cursor.=0A=0ATry putting your cursor at the end of this, and hit C-j:=0A=0A= (progn=0A=0A=A0 (setq file-name "test")=0A=A0=0A(describe-variable 'file-na= me))=0A=0A=0AOr eval each line one after the other.=0A=0A=0A>______________= __________________=0A>From: filebat Mark =0A>To: Dr= ew Adams =0A>Cc: help-gnu-emacs@gnu.org=0A>Sent: Thu= rsday, October 27, 2011 12:47:44 PM=0A>Subject: Re: what's the mystery of f= ile-name variable?=0A>=0A>=0A>Hi Adams=0A>=0A>Thanks a lot for your quick r= esponse.=0A>=0A>After clean start with emacs -Q, the problem remain.=0A>=0A= >Below is my emacs-version:=0A>Emacs 23.3.2 (i686-pc-linux-gnu, GTK+ Versio= n 2.20.1) of 2011-04-06 on wei-laptop=0A>=0A>=0A>=0A>On Fri, Oct 28, 2011 a= t 12:44 AM, Drew Adams wrote:=0A>=0A>> (setq file-n= ame "test")=0A>>> (describe-variable 'file-name)=0A>>=0A>>> =A0file-name's = value is nil=0A>>>=0A>>> =A0Documentation:=0A>>> =A0Not documented as a var= iable."=0A>>=0A>>It works for me. =A0Says file-name's value is "test" (and = not documented etc.).=0A>>=0A>>Give a recipe starting from emacs -Q.=0A>>= =0A>>=0A>=0A>=0A>-- =0A>Thanks & Regards=0A>=0A>Denny Zhang=0A>=0A>=0A>=0A> --406169123-181200749-1321631318=:27240 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
You do not= say how you eval'ed the TWO expressions.

If you are in the scratch buffer and place the cursor at = the end of the 2nd line, and hit C-j, emacs is only going to eval that line= , which is the last sexp before the cursor.

Try putting your cursor at the end of this, and hit C-j= :

(progn
  (setq file-name "test")
 =0A(describe-variable 'file-n= ame))


Or eval each line one after t= he other.

From: filebat Mark <filebat.mark@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
= Cc: help-gnu-emacs@gnu.org=
Sent: Thursday, Octobe= r 27, 2011 12:47:44 PM
Subject: Re: what's the mystery of file-name variable?

Hi Adams

Thanks a lot for your quick response.

After clean start with emacs -Q, the problem remain.
<= br>Below is my emacs-version:
Emacs 23.3.2 (i686-pc-linux-gnu, GTK+ Vers= ion 2.20.1) of 2011-04-06 on wei-laptop
=0A

On Fri, Oct 28, 2011 at 12:44 AM, Drew Adams <drew.adams@oracle.co= m> wrote:
=0A
> (setq file-na= me "test")
=0A> (describe-variable 'file-name)
=0A
>  file-name's value is nil
=0A>
=0A&= gt;  Documentation:
=0A>  Not documented as a variable."=0A
=0A
It works for me.  Says file-name's value is "test" (a= nd not documented etc.).
=0A
=0AGive a recipe starting from emacs -Q.=
=0A
=0A



--
Thanks &a= mp; Regards

Denny Zhang

=0A


--406169123-181200749-1321631318=:27240--