emacs-devel
[Top][All Lists]
Advanced

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

Re: proposal to make null string handling more emacs-y


From: Andreas Schwab
Subject: Re: proposal to make null string handling more emacs-y
Date: Sat, 28 Apr 2012 08:58:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)

Steve Yegge <address@hidden> writes:

> The most recent occurrence is relatively fresh:  I was observing some
> annoying
> behavior in a Google elisp library -- one that had been doing some path
> manipulation
> and choking on nil because, for whatever reason, `temporary-file-directory'
> had
> been bound to nil.  So I fixed up the Google function to handle nil the
> same way
> it handles the empty string.  And I glanced around and noticed that the same
> hack had been applied all over the place, sometimes smoothed over with
> macros
> or what have you.  It was a lot of smoothing over what appears to be a core
> wrinkle.

I see many places that check if temporary-file-directory is bound at
all, but none that special cases a value of nil.  This is just to
support Emacs before 20.3 where the variable didn't exist yet.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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