[Top][All Lists]

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

Inexplicable eval behaviour

From: Lars Magne Ingebrigtsen
Subject: Inexplicable eval behaviour
Date: Mon, 30 May 2011 02:08:33 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

I just noticed that the Gnus group mode line reads "... *Group*b ...",
and I wondered where the "b" came from.

It's from:

(defun gnus-group-set-mode-line ()
             (mode-string (eval gformat)))

in gnus-group.el.  At this point, 
`mode-string' is set to

"Gnus: %bb {nntp:news.eternal-september.org}";

However, if I just look at what's in `gformat', it's this:

(concat (format "Gnus: %%b {%s%s%s}" gnus-tmp-news-method gnus-tmp-colon 

If I eval, that, I get the expected:

"Gnus: %b {nntp:news.eternal-september.org}";

So, eval-ing the `gformat' variable gives me a different result than if
I print out the `gformat' variable, and then eval it.

I have no idea what this means, but has anybody done any funky work on
eval lately that can explain this?

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

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