1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
emacs/doc/misc
Jim Porter 7c41016fca Allow setting the values of variable aliases in Eshell
This makes commands like "COLUMNS=40 some-command" work as expected.

* lisp/eshell/esh-cmd.el (eshell-subcommand-bindings): Remove
'process-environment' from here...

* lisp/eshell/esh-var.el (eshell-var-initialize): ... and add to here,
along with 'eshell-variable-aliases-list'.
(eshell-inside-emacs): Convert to a 'defvar-local' to make it settable
in a particular Eshell buffer.
(eshell-variable-aliases-list): Make $?, $$, and $* read-only and
update docstring.
(eshell-set-variable): New function...
(eshell-handle-local-variables, eshell/export, eshell/unset): ... use
it.
(eshell/set, pcomplete/eshell-mode/set): New functions.
(eshell-get-variable): Get the variable alias's getter function when
appropriate and use a safer method for checking function arity.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/set/env-var)
(esh-var-test/set/symbol, esh-var-test/unset/env-var)
(esh-var-test/unset/symbol, esh-var-test/setq, esh-var-test/export)
(esh-var-test/local-variables, esh-var-test/alias/function)
(esh-var-test/alias/function-pair, esh-var-test/alias/string)
(esh-var-test/alias/string/prefer-lisp, esh-var-test/alias/symbol)
(esh-var-test/alias/symbol-pair, esh-var-test/alias/export)
(esh-var-test/alias/local-variables): New tests.

* doc/misc/eshell.texi (Built-ins): Add 'set' and update 'unset'
documentation.
(Variables): Expand documentation of how to get/set variables.
2022-10-17 18:48:52 -07:00
..
auth.texi auth-source: Fix wrong-type-argument when searching secret services 2022-08-22 16:56:57 +02:00
autotype.texi Make quickurl.el obsolete (part 2/2) 2022-07-28 12:47:55 +02:00
bovine.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
calc.texi Abolish max-specpdl-size (bug#57911) 2022-09-19 19:30:03 +02:00
cc-mode.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cl.texi Move generalized variable `substring' doc to elisp manual 2022-08-23 20:28:25 +02:00
dbus.texi Remove mentions of GNOME MediaKeys from dbus documentation examples 2022-06-07 15:44:05 +08:00
dired-x.texi Move dired-guess commands from dired-x to dired 2022-08-17 16:21:09 +02:00
doclicense.texi
ebrowse.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ede.texi * doc/misc/ede.texi (Extending EDE): Fix reference. 2022-09-20 20:35:46 +02:00
ediff.texi Make some versions in docs match package version 2022-09-03 01:14:12 +02:00
edt.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
efaq-w32.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
efaq.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
eieio.texi * doc/misc/eieio.texi (Introduction, Generics): Remove outdated limits 2022-09-19 07:39:29 -04:00
emacs-gnutls.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-mime.texi Don't advertise obsolete library html2text.el 2022-08-14 23:46:33 +02:00
epa.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
erc.texi * doc/misc/erc.texi (Connecting): Fix typo. 2022-07-01 19:17:56 +02:00
ert.texi Improve ert-test-erts-file documentation 2022-07-09 11:47:52 +02:00
eshell.texi Allow setting the values of variable aliases in Eshell 2022-10-17 18:48:52 -07:00
eudc.texi * eudc.texi: Unquote setopt option names 2022-07-19 11:05:52 -04:00
eww.texi Merge from origin/emacs-28 2022-06-21 06:30:25 +02:00
flymake.texi Make a flymake.texi code example more resilient 2022-09-10 06:52:39 +02:00
forms.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gnus-faq.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
gnus.texi Update version information in Gnus manual 2022-10-17 20:13:22 +02:00
gpl.texi
htmlfontify.texi Merge from origin/emacs-28 2022-08-23 06:30:36 +02:00
idlwave.texi Merge from origin/emacs-28 2022-09-08 23:35:04 +02:00
ido.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
info.texi Allow searching for regexps with a prefix 2022-04-21 17:05:23 +02:00
mairix-el.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
Makefile.in Speed up Org to Texinfo generation 2022-06-16 11:06:29 +03:00
message.texi Advertise obsolete library pgg.el less 2022-08-16 15:29:30 +02:00
mh-e.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
modus-themes.org Update to Modus themes stable version 2.7.0 2022-10-01 10:57:59 +03:00
newsticker.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
nxml-mode.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
octave-mode.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
org-setup.org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
org.org ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
pcl-cvs.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
pgg.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rcirc.texi ; * doc/misc/rcirc.texi: Prefer 'setopt' over 'setq' 2022-09-20 19:25:39 +02:00
reftex.texi Don't mention very old Emacs versions in docs 2022-09-06 14:08:27 +02:00
remember.texi ; Delete commented out reference to ancient org-mode 2022-10-15 13:06:45 +02:00
sasl.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sc.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sem-user.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
semantic.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
ses.texi SES with case insensitive cell names for jumping. 2022-04-04 19:42:07 +02:00
sieve.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
smtpmail.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
speedbar.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
srecode.texi Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2022-09-28 00:37:12 -07:00
todo-mode.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tramp.texi Adapt Tramp manual 2022-10-05 17:11:33 +02:00
trampver.texi Sync with Tramp 2.5.3.2. Don't merge with master 2022-09-17 17:50:38 +02:00
transient.texi * doc/misc/transient.texi: Update to transient v0.3.7-156-ga5562cb 2022-08-06 16:03:51 +02:00
url.texi Make "rlogin" method obsolete in url*.el 2022-09-03 07:23:08 +02:00
vhdl-mode.texi ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
vip.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
viper.texi Merge from origin/emacs-28 2022-09-08 23:35:04 +02:00
vtable.texi * doc/misc/vtable.texi (Commands): Fix typo. (Bug#56899) 2022-08-03 01:20:51 +02:00
widget.texi Revert "Decrease use of the word "Emacsen" in docs" 2022-10-01 22:34:47 +02:00
wisent.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
woman.texi ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00