all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what's the mystery of file-name variable?
@ 2011-10-27 16:39 filebat Mark
  2011-10-27 16:44 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: filebat Mark @ 2011-10-27 16:39 UTC (permalink / raw
  To: help-gnu-emacs; +Cc: Denny Zhang

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

Hi emacsers

Below is quite strange to me.

(setq file-name "test")
(describe-variable 'file-name)
,----------- output
| "file-name's value is nil
|
| Documentation:
| Not documented as a variable."
`-----------

Why file-name is not changed?

-- 
Thanks & Regards

Denny Zhang

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

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

* RE: what's the mystery of file-name variable?
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2011-10-27 16:44 UTC (permalink / raw
  To: 'filebat Mark', help-gnu-emacs; +Cc: 'Denny Zhang'

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




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

* Re: what's the mystery of file-name variable?
  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
  0 siblings, 2 replies; 5+ messages in thread
From: filebat Mark @ 2011-10-27 16:47 UTC (permalink / raw
  To: Drew Adams; +Cc: help-gnu-emacs

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

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: 1040 bytes --]

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

* RE: what's the mystery of file-name variable?
  2011-10-27 16:47   ` filebat Mark
@ 2011-10-27 17:01     ` Drew Adams
  2011-11-18 15:48     ` S Boucher
  1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2011-10-27 17:01 UTC (permalink / raw
  To: 'filebat Mark'; +Cc: help-gnu-emacs

> After clean start with emacs -Q, the problem remain.	
> Below is my emacs-version:
> Emacs 23.3.2...

(Please use plain text for this mailing list, not HTML.)

I can reproduce the bug in Emacs 23.1, 23.2, and 23.3.  It is a regression - it
works in Emacs versions prior to Emacs 23.  It has been fixed again in Emacs 24
(which is not yet released), apparently.

You can downgrade to Emacs 22 or try using the Emacs 24 pretest.  Or you can
find the fix they made or the Emacs 22 code for it and try using that in your
Emacs 23 session.




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

* Re: what's the mystery of file-name variable?
  2011-10-27 16:47   ` filebat Mark
  2011-10-27 17:01     ` Drew Adams
@ 2011-11-18 15:48     ` S Boucher
  1 sibling, 0 replies; 5+ messages in thread
From: S Boucher @ 2011-11-18 15:48 UTC (permalink / raw
  To: filebat Mark, Drew Adams; +Cc: help-gnu-emacs@gnu.org

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

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

end of thread, other threads:[~2011-11-18 15:48 UTC | newest]

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

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.