mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
43d5b7a04c
This should reduce the number of issues with Eshell converting strings to numbers too aggressively and losing information (e.g. "001" -> 1) while still allowing almost all of the beneficial uses, like summing a list of numeric strings with '+'. * lisp/eshell/esh-util.el (eshell--do-mark-numeric-string): New function. (eshell-convert-to-number): Make obsolete in favor of... (eshell-mark-numeric-string): ... this. Update callers. * lisp/eshell/esh-arg.el (eshell--numberlike-p): New function... (eshell-concat-1): ... use it. * test/lisp/eshell/esh-util-tests.el: Reimplement type conversion tests to use 'eshell-convertible-to-number-p' instead. * test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-splice-concat, esh-var-test/interp-concat-cmd) (esh-var-test/interp-convert-var-split-indices) (esh-var-test/interp-convert-quoted-var-split-indices) (esh-var-test/interp-convert-cmd-multiline) (esh-var-test/interp-convert-cmd-split-indices): Adjust tests to check the new behavior. * doc/misc/eshell.texi (Type Conversion): New section. (Expansion): Clarify concatenation behavior. |
||
---|---|---|
.. | ||
auth.texi | ||
autotype.texi | ||
bovine.texi | ||
calc.texi | ||
cc-mode.texi | ||
ChangeLog.1 | ||
cl.texi | ||
dbus.texi | ||
dired-x.texi | ||
doclicense.texi | ||
ebrowse.texi | ||
ede.texi | ||
ediff.texi | ||
edt.texi | ||
efaq-w32.texi | ||
efaq.texi | ||
eglot.texi | ||
eieio.texi | ||
emacs-gnutls.texi | ||
emacs-mime.texi | ||
epa.texi | ||
erc.texi | ||
ert.texi | ||
eshell.texi | ||
eudc.texi | ||
eww.texi | ||
flymake.texi | ||
forms.texi | ||
gnus-faq.texi | ||
gnus.texi | ||
gpl.texi | ||
htmlfontify.texi | ||
idlwave.texi | ||
ido.texi | ||
info.texi | ||
mairix-el.texi | ||
Makefile.in | ||
message.texi | ||
mh-e.texi | ||
modus-themes.org | ||
newsticker.texi | ||
nxml-mode.texi | ||
octave-mode.texi | ||
org-setup.org | ||
org.org | ||
pcl-cvs.texi | ||
pgg.texi | ||
rcirc.texi | ||
reftex.texi | ||
remember.texi | ||
sasl.texi | ||
sc.texi | ||
sem-user.texi | ||
semantic.texi | ||
ses.texi | ||
sieve.texi | ||
smtpmail.texi | ||
speedbar.texi | ||
srecode.texi | ||
texinfo.tex | ||
todo-mode.texi | ||
tramp.texi | ||
trampver.texi | ||
transient.texi | ||
url.texi | ||
use-package.texi | ||
vhdl-mode.texi | ||
viper.texi | ||
vtable.texi | ||
widget.texi | ||
wisent.texi | ||
woman.texi |