1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 15:00:42 -08:00
emacs/lisp/net
Michael Albinus 21f54feee8 Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723
* doc/emacs/custom.texi (Connection Variables): New node.

* doc/emacs/emacs.texi (Top): Add entry for Connection Variables.

* doc/emacs/misc.texi (Single Shell): Mention default value for
remote buffers.

* doc/lispref/variables.texi (Connection Local Variables):
Describe `with-connection-local-variables' instead of
`with-connection-local-profiles'.

* doc/misc/tramp.texi (Remote processes): Refer to Emacs manual.
Mention default connection-local settings for `shell-file-name'
and `shell-command-switch'.

* etc/NEWS: Mention connection-local variables changes.

* lisp/files-x.el (hack-connection-local-variables):
Push connection-local variables to `file-local-variables-alist'.
(connection-local-criteria-for-default-directory): New defsubst.
(with-connection-local-variables): Rename from
`with-connection-local-profiles'.  Adapt implementation.

* lisp/files.el (hack-local-variables):
Call `hack-connection-local-variables'.

* lisp/shell.el (shell): Use `with-connection-local-variables'.

* lisp/subr.el (start-file-process-shell-command):
* lisp/progmodes/compile.el (compilation-start):
Use `with-connection-local-variables'.  Do not set "/bin/sh" for
remote buffers, trust settings of `shell-file-name'.  (Bug#24338),
(Bug#29723)

* lisp/net/ange-ftp.el (ange-ftp-compress, ange-ftp-uncompress):
Use `shell-command-switch'.

* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
New defvar.  Add it to connection-local profiles after loading "shell".

* lisp/net/tramp-integration.el (tramp-compat): Require tramp-compat.
(tramp-compat-exec-path): Do not declare anymore.
(tramp-connection-local-safe-shell-file-names): New defvar.
(tramp-connection-local-default-profile): New defconst.  Activate
it after loading "shell".
(shell-file-name, shell-command-switch): Add safe-local-variable
property.

* lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp):
Add tramp-autoload cookie.

* test/lisp/files-x-tests.el (remote-shell-file-name):
Add safe-local-variable property to remote-* variables.
(tramp-connection-local-default-profile): Declare.
(files-x-test-with-connection-local-variables):
Rename from `files-x-test-with-connection-local-profiles'.  Adapt
implementation.

* test/lisp/net/tramp-tests.el
(tramp-test34-connection-local-variables): New test.
(tramp-test34-explicit-shell-file-name): Run it also for tramp-adb.
Bind connection-local-{profile,criteria}-alist.  Use tramp-adb
specific `shell-file-name'.  Add safe-local-variable property to
`explicit-shell-file-name' and `explicit-sh-args'.
2019-03-09 16:44:24 +01:00
..
ange-ftp.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
browse-url.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dbus.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dig.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dns.el Avoid using obsolete accept-process-output arg 2019-01-15 14:09:11 -08:00
eudc-bob.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eudc-export.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eudc-hotlist.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eudc-vars.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eudc.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eudcb-bbdb.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eudcb-ldap.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eudcb-mab.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eww.el Escape HTML NUL as � in eww 2019-02-27 14:37:38 -08:00
gnutls.el Check for client certificates when using GnuTLS 2019-01-24 11:36:47 +01:00
goto-addr.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
hmac-def.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hmac-md5.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
imap.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
ldap.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mailcap.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mairix.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
net-utils.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
netrc.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
network-stream.el Avoid byte-compiler warning in starttls.el 2019-01-24 17:01:20 +02:00
newst-backend.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
newst-plainview.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
newst-reader.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
newst-ticker.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
newst-treeview.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
newsticker.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
nsm.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ntlm.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
pop3.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
puny.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
quickurl.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rcirc.el * lisp/net/rcirc.el: Undo previous change; it was a typo. 2019-03-07 10:44:22 -08:00
rfc2104.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rlogin.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sasl-cram.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sasl-digest.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sasl-ntlm.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sasl-scram-rfc.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sasl.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
secrets.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
shr-color.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
shr.el Handle HTML 'ol' start attribute in shr.el 2019-02-22 09:52:57 +02:00
sieve-manage.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sieve-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sieve.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
snmp-mode.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
soap-client.el Simplify use of encode-time 2019-02-10 23:54:35 -08:00
soap-inspect.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
socks.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
telnet.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
tramp-adb.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
tramp-archive.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-cache.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-cmds.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-compat.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-ftp.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-gvfs.el Handle empty strings in Tramp's expand-file-name implementations 2019-03-06 12:06:09 +01:00
tramp-integration.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
tramp-rclone.el Use proper read syntax for all function names in Tramp 2019-02-28 10:33:05 +01:00
tramp-sh.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
tramp-smb.el Handle empty strings in Tramp's expand-file-name implementations 2019-03-06 12:06:09 +01:00
tramp-sudoedit.el Handle empty strings in Tramp's expand-file-name implementations 2019-03-06 12:06:09 +01:00
tramp-uu.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
tramp.el Handle empty strings in Tramp's expand-file-name implementations 2019-03-06 12:06:09 +01:00
trampver.el Respect setgid bit of the upper directory in Tramp 2019-01-22 10:38:49 +01:00
webjump.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
zeroconf.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00