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
:
Steve Yegge
Subject
:
Re: proposal to make null string handling more emacs-y
Date
:
Thu, 26 Apr 2012 14:20:45 -0700
If the general change is too risky, I think there are still a few functions that
would benefit from being able to accept nils on a case-by-case basis.
Examples:
looking-at, string-match, search-forward-*
string-to-list, string-to-vector, (maybe) string-to-number
auto-save-file-name-p, backup-file-name-p
directory-file-name, expand-file-name, file-name-as-directory and their ilk (all of which handle "" gracefully)
rename-file, copy-file, delete-file ("no such file/dir" being more informative than "wrong type argument" here)
write-file (prompts on empty string; might as well prompt on nil)
There's a lot of code out there that's forced to do type assertions on string args
that could be simplified if these common functions could accept nils.
-steve
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Re: proposal to make null string handling more emacs-y
,
(continued)
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Ted Zlatanov
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Helmut Eller
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Eli Zaretskii
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Stefan Monnier
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Eli Zaretskii
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Stefan Monnier
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Andreas Schwab
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Juanma Barranquero
,
2012/04/25
Re: proposal to make null string handling more emacs-y
,
Steve Yegge
<=
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/26
Re: proposal to make null string handling more emacs-y
,
Steve Yegge
,
2012/04/26
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/26
Re: proposal to make null string handling more emacs-y
,
Jeremiah Dodds
,
2012/04/26
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/26
Re: proposal to make null string handling more emacs-y
,
Jeremiah Dodds
,
2012/04/27
Re: proposal to make null string handling more emacs-y
,
Miles Bader
,
2012/04/27
Re: proposal to make null string handling more emacs-y
,
Thien-Thi Nguyen
,
2012/04/27
Re: proposal to make null string handling more emacs-y
,
Nix
,
2012/04/27
Better startup error handling (was: proposal to make null string handling more emacs-y)
,
Stefan Monnier
,
2012/04/27
Prev by Date:
Re: Does CEDET work?
Next by Date:
Re: proposal to make null string handling more emacs-y
Previous by thread:
Re: proposal to make null string handling more emacs-y
Next by thread:
Re: proposal to make null string handling more emacs-y
Index(es):
Date
Thread