1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 20:32:00 -08:00
emacs/test/lisp
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
..
calc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
calendar Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-resources New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
emacs-lisp rx: fix `or' ordering by adding argument to regexp-opt 2019-03-02 15:35:28 +01:00
emulation Update copyright year to 2019 2019-01-01 01:01:13 +00:00
erc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eshell Update more copyright years 2018-12-31 18:47:22 -08:00
gnus Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
international Import Unicode 12.0 data files 2019-03-09 12:41:48 +02:00
mail Update copyright year to 2019 2019-01-01 01:01:13 +00:00
net Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
org Update copyright year to 2019 2019-01-01 01:01:13 +00:00
progmodes * test/lisp/progmodes/python-tests.el 2019-03-02 19:02:50 -08:00
textmodes * test/lisp/textmodes/conf-mode-tests.el (conf-test-align-assignments): 2019-02-15 17:16:06 -05:00
url Update more copyright years 2018-12-31 18:47:22 -08:00
vc Fix diff-mode tests after renaming diff-font-lock-refine 2019-03-04 19:43:25 +01:00
abbrev-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
arc-mode-tests.el * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) 2019-02-03 23:00:29 +02:00
auth-source-pass-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
auth-source-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
autorevert-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
buff-menu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
char-fold-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
color-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
comint-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-tests.el New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
dabbrev-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
descr-text-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dired-aux-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-x-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dom-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
electric-tests.el electric-layout-mode kicks in before electric-pair-mode 2019-01-22 16:42:43 +00:00
epg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
faces-tests.el Fix bug with face-id after restoring from pdump 2019-01-28 17:24:04 +02:00
ffap-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
filenotify-tests.el Fix problem in filenotify-tests 2019-01-30 15:30:04 +01:00
files-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
files-x-tests.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
help-fns-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hi-lock-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
htmlfontify-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ibuffer-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ido-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
imenu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
info-xref-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
isearch-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
jit-lock-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
json-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
jsonrpc-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
kmacro-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ls-lisp-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
man-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
md4-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
minibuffer-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mouse-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
obarray-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ps-print-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
register-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
replace-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rot13-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ses-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
shadowfile-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
shell-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
simple-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sort-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
soundex-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
subr-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tar-mode-tests.el * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251) 2019-02-03 23:00:29 +02:00
term-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thingatpt-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thread-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
wdired-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
whitespace-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xdg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
xml-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xt-mouse-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00