1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/doc/misc
Jim Porter dabe0b7d40 Add support for negative indices and index ranges in Eshell
* lisp/eshell/esh-util.el (eshell-integer-regexp): New defvar.

* lisp/eshell/esh-var.el (eshell-parse-indices): Expand docstring.
(eshell-parse-index): New function.
(eshell-apply-indices): Use 'eshell-parse-index' to determine whether
to treat the first index as a regexp.  Simplify the implementation a
bit.
(eshell-index-range): New pcase macro...
(eshell-index-value): ... use it, and restructure the implementation.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-indices):
New function...
(esh-var-test/interp-var-indices/list)
(esh-var-test/interp-var-indices/vector)
(esh-var-test/interp-var-indices/ring)
(esh-var-test/interp-var-indices/split): ... use it.
(esh-var-test/interp-var-string-split-indices)
(esh-var-test/interp-var-regexp-split-indices)
(esh-var-test/interp-var-assoc): Expand tests to cover things that
look like numbers or ranges, but aren't.

* doc/misc/eshell.texi (Variables): Describe how to get all arguments
of the last command.
(Dollars Expansion): Explain negative indices and index ranges.
(Bugs and ideas): Remove now-implemented ideas.

* etc/NEWS: Announce this change.
2023-01-27 18:03:10 -08:00
..
auth.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
autotype.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bovine.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
calc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
cc-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dbus.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dired-x.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doclicense.texi
ebrowse.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ede.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ediff.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
edt.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq-w32.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eglot.texi ; * doc/misc/eglot.texi (Troubleshooting Eglot): Fix typo (bug#60780). 2023-01-13 15:24:25 +02:00
eieio.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-gnutls.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-mime.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
epa.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
erc.texi ; * doc/misc/erc.texi: Improve Local Modules section. 2023-01-24 20:19:28 -08:00
ert.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eshell.texi Add support for negative indices and index ranges in Eshell 2023-01-27 18:03:10 -08:00
eudc.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eww.texi Teach 'eww-open-file' about prefix argument 2023-01-14 11:48:55 +02:00
flymake.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
forms.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnus-faq.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnus.texi ; Don't mention in the Gnus manual user options that were removed 2023-01-25 15:09:10 +02:00
gpl.texi
htmlfontify.texi ; Fix last change: remove unused @anchor. 2023-01-15 11:52:46 +02:00
idlwave.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ido.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
info.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mairix-el.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
message.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mh-e.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
modus-themes.org ; Fix typos 2023-01-15 02:14:19 +01:00
newsticker.texi Run newsticker's ticker only periodically (bug#59856) 2023-01-16 09:20:11 +01:00
nxml-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
octave-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org-setup.org ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org.org Update to Org 9.6.1-16-ge37e9b 2023-01-22 21:53:39 -05:00
pcl-cvs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pgg.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
reftex.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
sem-user.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
semantic.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ses.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sieve.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
smtpmail.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
speedbar.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
srecode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2023-01-06 18:05:57 -08:00
todo-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tramp.texi Add remote-file-name-inhibit-delete-by-moving-to-trash 2023-01-08 19:24:17 +01:00
trampver.texi Remove Emacs 26 compatibility from Tramp 2023-01-06 13:34:33 +01:00
transient.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
url.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
use-package.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vhdl-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vip.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
viper.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vtable.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
widget.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
wisent.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
woman.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00