1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00
emacs/doc/misc
Jim Porter 43d5b7a04c Lazily convert numeric strings to Lisp numbers in Eshell
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.
2024-10-19 12:01:10 -07:00
..
auth.texi * doc/misc/auth.texi: Minor copy edits. 2024-09-13 00:18:37 +02:00
autotype.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
bovine.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
calc.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
cc-mode.texi Merge from origin/emacs-30 2024-09-28 07:59:16 -04:00
ChangeLog.1 Update Arni Magnusson's email address 2024-10-05 02:30:41 +02:00
cl.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
dbus.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
dired-x.texi ; Fix markup in recent change to dired-x.texi. 2024-03-23 20:17:01 +01:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ede.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ediff.texi Add Ediff feature for copying all differences 2024-09-11 10:44:25 +02:00
edt.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
efaq-w32.texi Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
efaq.texi Merge from origin/emacs-30 2024-10-19 07:01:20 -04:00
eglot.texi Eglot: minor changes to doc and docstrings 2024-10-09 06:26:27 -05:00
eieio.texi * doc/misc/eieio.texi (Writing Methods): Typo 2024-10-03 13:43:25 -04:00
emacs-gnutls.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-mime.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
epa.texi ; Fix last change 2024-02-17 11:31:20 +02:00
erc.texi Don't autoload erc-modules 2024-10-18 18:37:58 -07:00
ert.texi Improve documentation of ERT 2024-08-15 11:30:48 +03:00
eshell.texi Lazily convert numeric strings to Lisp numbers in Eshell 2024-10-19 12:01:10 -07:00
eudc.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
eww.texi Slice images based on their height in SHR, not their zoom level 2024-07-04 12:14:37 -07:00
flymake.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
forms.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
gnus-faq.texi Correctly typeset nil and t in texinfo 2024-07-22 10:14:51 +02:00
gnus.texi ; Fix typos 2024-08-29 00:17:10 +02:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
htmlfontify.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
idlwave.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ido.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
info.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
mairix-el.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
Makefile.in Delete some libraries obsolete since Emacs 24.4/24.5 2024-09-30 03:28:17 +02:00
message.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
mh-e.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
modus-themes.org Update to modus-themes version 4.5.0 2024-08-21 11:07:47 +03:00
newsticker.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
nxml-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
octave-mode.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
org-setup.org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org.org Update FSF's address 2024-09-02 21:02:09 +02:00
pcl-cvs.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
pgg.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rcirc.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
reftex.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
remember.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sc.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
sem-user.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
semantic.texi ; Fix typos 2024-07-18 11:46:50 +02:00
ses.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
sieve.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
smtpmail.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
speedbar.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
srecode.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2024-02-14 22:05:06 -08:00
todo-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
tramp.texi Describe how to add an ELPA package to Tramp 2024-10-13 18:05:39 +02:00
trampver.texi Remove Emacs 27 compatibility from Tramp 2024-07-24 15:25:55 +02:00
transient.texi ; Set Transient's version and add admin/MAINTAINERS entry 2024-09-14 19:23:40 +02:00
url.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
use-package.texi Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
vhdl-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
viper.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
vtable.texi Fix alignment and documentation of vtable.el 2024-09-07 11:27:03 +03:00
widget.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
wisent.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
woman.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00