1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00: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
doclicense.texi
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
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
emacs-mime.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
epa.texi
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
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
info.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
mairix-el.texi
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
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
org-setup.org
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
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
sasl.texi
sc.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
sem-user.texi
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
smtpmail.texi
speedbar.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
srecode.texi
texinfo.tex
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
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