emacs/lisp/progmodes
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
..
ada-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ada-prj.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ada-stmt.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ada-xref.el Be safer about "%" in message formats 2019-03-07 09:05:56 -08:00
antlr-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
asm-mode.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
autoconf.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
bat-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
bug-reference.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
cc-align.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
cc-awk.el Correct some slightly incorrect regular expressions: 2019-03-03 20:03:56 +00:00
cc-bytecomp.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-cmds.el Don’t assume CURRENT_TIME_LIST 2019-02-13 00:51:15 -08:00
cc-defs.el Extend electric-pair-mode actions to < and >, and also to ( and ) in literals 2019-01-22 14:37:54 +00:00
cc-engine.el Correct some slightly incorrect regular expressions: 2019-03-03 20:03:56 +00:00
cc-fonts.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
cc-guess.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-langs.el Extend electric-pair-mode actions to < and >, and also to ( and ) in literals 2019-01-22 14:37:54 +00:00
cc-menus.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-mode.el Correct some slightly incorrect regular expressions: 2019-03-03 20:03:56 +00:00
cc-styles.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cc-vars.el Fontify C function identifiers in parentheses correctly (e.g. in lisp.h) 2019-02-17 18:57:10 +00:00
cfengine.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
cmacexp.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
compile.el Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
cperl-mode.el More regexp corrections and tweaks 2019-03-08 09:09:40 -08:00
cpp.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
cwarn.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dcl-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
ebnf-abn.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-bnf.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-dtd.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-ebx.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-iso.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-otz.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf-yac.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebnf2ps.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ebrowse.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
elisp-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
etags.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
executable.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
f90.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
flymake-cc.el Fix Flymake tests for GCC 8.2.0 2019-01-05 11:38:36 +00:00
flymake-proc.el Fix flymake-proc--delete-temp-directory if temp dir ends in slash 2019-01-17 14:38:44 +00:00
flymake.el Avoid some double-rounding of Lisp timestamps 2019-02-22 18:33:57 -08:00
fortran.el More regexp corrections and tweaks 2019-03-08 09:09:40 -08:00
gdb-mi.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
glasses.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
grep.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
gud.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
hideif.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hideshow.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
icon.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
idlw-complete-structtag.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
idlw-help.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlw-shell.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlw-toolbar.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
idlwave.el Be safer about "%" in message formats 2019-03-07 09:05:56 -08:00
inf-lisp.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
js.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
ld-script.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
m4-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
make-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
mantemp.el More regexp corrections and tweaks 2019-03-08 09:09:40 -08:00
meta-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
mixal-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
modula2.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
octave.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
opascal.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
pascal.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
perl-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
prog-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
project.el Rename project-query-replace to project-query-replace-regexp 2019-02-14 04:09:09 +03:00
prolog.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ps-mode.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
python.el Add 'breakpoint' to builtins for Python 2019-03-01 11:51:35 +02:00
ruby-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
scheme.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sh-script.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
simula.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sql.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
subword.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tcl.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
vera-mode.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
verilog-mode.el Fix regexp issues introduced in last trunk commit. 2019-03-05 20:51:35 -05:00
vhdl-mode.el Fix regular-expression glitches and typos 2019-03-04 18:00:58 -08:00
which-func.el which-function: Do not display outdated imenu information 2019-02-22 15:27:06 -06:00
xref.el Jump to the current error in xref with zero prefix arg 2019-02-23 11:34:34 +02:00
xscheme.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00