unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: S Boucher <stbya@yahoo.com>
To: filebat Mark <filebat.mark@gmail.com>,
	Drew Adams <drew.adams@oracle.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: what's the mystery of file-name variable?
Date: Fri, 18 Nov 2011 07:48:38 -0800 (PST)	[thread overview]
Message-ID: <1321631318.27240.YahooMailNeo@web161602.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CAB_ojTuy4aGUth7Qf-gqb4oobAxurRM5TRhiEP00GUA2rgWH3w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]

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")
 
(describe-variable 'file-name))


Or eval each line one after the other.


>________________________________
>From: filebat Mark <filebat.mark@gmail.com>
>To: Drew Adams <drew.adams@oracle.com>
>Cc: help-gnu-emacs@gnu.org
>Sent: Thursday, October 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.
>
>Below is my emacs-version:
>Emacs 23.3.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-04-06 on wei-laptop
>
>
>
>On Fri, Oct 28, 2011 at 12:44 AM, Drew Adams <drew.adams@oracle.com> wrote:
>
>> (setq file-name "test")
>>> (describe-variable 'file-name)
>>
>>>  file-name's value is nil
>>>
>>>  Documentation:
>>>  Not documented as a variable."
>>
>>It works for me.  Says file-name's value is "test" (and not documented etc.).
>>
>>Give a recipe starting from emacs -Q.
>>
>>
>
>
>-- 
>Thanks & Regards
>
>Denny Zhang
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2806 bytes --]

      parent reply	other threads:[~2011-11-18 15:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 16:39 what's the mystery of file-name variable? filebat Mark
2011-10-27 16:44 ` Drew Adams
2011-10-27 16:47   ` filebat Mark
2011-10-27 17:01     ` Drew Adams
2011-11-18 15:48     ` S Boucher [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1321631318.27240.YahooMailNeo@web161602.mail.bf1.yahoo.com \
    --to=stbya@yahoo.com \
    --cc=drew.adams@oracle.com \
    --cc=filebat.mark@gmail.com \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).