[Top][All Lists]
[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."
- Re: proposal to make null string handling more emacs-y, (continued)
- Re: proposal to make null string handling more emacs-y, Richard Stallman, 2012/04/27
- Re: proposal to make null string handling more emacs-y, Eli Barzilay, 2012/04/28
- Re: proposal to make null string handling more emacs-y, Richard Stallman, 2012/04/28
- Re: proposal to make null string handling more emacs-y, Stefan Monnier, 2012/04/28
- Re: proposal to make null string handling more emacs-y, Eli Barzilay, 2012/04/28
- Re: proposal to make null string handling more emacs-y, Steve Yegge, 2012/04/27
- Re: proposal to make null string handling more emacs-y, Eli Zaretskii, 2012/04/27
- Re: proposal to make null string handling more emacs-y, Steve Yegge, 2012/04/27
- RE: proposal to make null string handling more emacs-y, Drew Adams, 2012/04/27
- Re: proposal to make null string handling more emacs-y, Steve Yegge, 2012/04/28
- Re: proposal to make null string handling more emacs-y,
Andreas Schwab <=
- Odd formatting (was: proposal to make null string handling more emacs-y), Lars Magne Ingebrigtsen, 2012/04/29
- Re: Odd formatting, Steinar Bang, 2012/04/30
- Re: Odd formatting, Antoine Levitt, 2012/04/30
- Re: Odd formatting, Nix, 2012/04/30
- Re: proposal to make null string handling more emacs-y, Stefan Monnier, 2012/04/27
Re: proposal to make null string handling more emacs-y, Lars Magne Ingebrigtsen, 2012/04/25
Re: proposal to make null string handling more emacs-y, Andreas Röhler, 2012/04/29