1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
emacs/doc/misc
Jim Porter 0bb8a011d5 Add 'file-user-uid' to get the connection-local effective UID
In particular, this lets Eshell show a "#" root prompt sigil when the
user has sudo'ed via "cd /sudo::" (bug#60722).

* lisp/simple.el (file-user-uid): New function.

* lisp/net/tramp.el (tramp-file-name-for-operation): Add
'file-user-uid'.
(tramp-handle-file-user-uid): New function.

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'file-user-uid'.

* lisp/net/tramp-archive.el (tramp-archive-handle-file-user-uid): New
function...
(tramp-archive-file-name-handler-alist): ... use it.

* lisp/eshell/em-prompt.el (eshell-prompt-function): Use
'file-user-uid'.

* lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add '$UID'.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/uid-var): New test.

* doc/lispref/os.texi (User Identification): Document 'file-user-uid'.

* doc/lispref/files.texi (Magic File Names): Mention 'file-user-uid'.

* doc/misc/eshell.texi (Variables): Document '$UID'.  Add a missing
index entry for '$INSIDE_EMACS'.

* etc/NEWS: Announce 'file-user-uid'.
2023-01-16 17:11:02 -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 Merge from Gnulib 2017-10-01 18:31:10 -07:00
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 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ert.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eshell.texi Add 'file-user-uid' to get the connection-local effective UID 2023-01-16 17:11:02 -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 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
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-90-ga6523f 2023-01-07 23:50:54 -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