[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: window local var?
From: |
PJ Weisberg |
Subject: |
Re: window local var? |
Date: |
Tue, 7 Sep 2010 09:12:35 -0700 |
On Mon, Sep 6, 2010 at 5:34 PM, PJ Weisberg <pj@irregularexpressions.net> wrote:
> (let ((env (frame-parameter (selected-frame) 'environment))
> (current nil)
> (dir nil))
> (while (and (not dir) t)
> (setq current (pop env))
> (if (string-equal "PWD=" (subseq current 0 4))
> (setq dir (subseq current 4))))
> dir)
Um, that "t" in the conditional was supposed to be "env". I wanted to
see what error I would get if I let it fall off the end of the list
without finding anything, and I forgot to put the check back in before
I pasted it into the mail. :-/