~ubuntu-elisp/emacs/+git/master:scratch/electric-pair-cleanup-and-49518-bugfix

Last commit made on 2021-09-20
Get this branch:
git clone -b scratch/electric-pair-cleanup-and-49518-bugfix https://git.launchpad.net/~ubuntu-elisp/emacs/+git/master

Branch merges

Branch information

Name:
scratch/electric-pair-cleanup-and-49518-bugfix
Repository:
lp:~ubuntu-elisp/emacs/+git/master

Recent commits

bf32762... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Improve Python triple-quote pairing tests for electric-pair-mode

These tests were once passing incorrectly, i.e. the auto-pairing
functionality they purport to guard wasn't really working. Added a
new test in hopes that regressions can be spotted in the future for
the now-working functionality of Python triple-quote auto-pairing via
electric-pair-mode.

bug#49518

* test/lisp/progmodes/python-tests.el
(python-triple-double-quote-pairing): Rename from
python-triple-quote-pairing.
(python-triple-single-quote-pairing): New test.

b0c34e3... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Test electric-pair-mode more closely in python-mode, too (bug#49518)

* test/lisp/electric-tests.el (define-electric-pair-test): Also run
main tests for python-mode. (pair-some-quotes-skip-others): Test
another slightly different pairing.

44870df... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Make syntax-ppss more accurate for Python triple quotes (bug#49518)

By putting delimiter syntax on the "inside" of Python triple-quoted
strings, this makes syntax-ppss be more accurate and thus helps things
like electric-pair-mode. Also, the test
python-syntax-after-python-backspace now passes, again.

* lisp/progmodes/python.el (python-syntax-stringify): Put
delimiter syntax in "inner" of the surrouding triple quotes.

* test/lisp/progmodes/python-tests.el
(python-syntax-after-python-backspace): Passes again.

989c921... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Add docstring for 'electric-pair-p-s-i-f' and minor refactor

Extract the "open newline between pairs behaviour" into its own
function, electric-pair-open-newline-between-pairs-psif.

* lisp/elec-pair.el (electric-pair-post-self-insert-function): Add
docstring.
(electric-pair-open-newline-between-pairs-psif): New function.
(electric-pair-mode): Add/remove electric-pair-open-newline-between-pairs-psif

4c3da46... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Speed up test/lisp/electric-tests.el when run interactively

'blink-paren-function' and its timers could sometimes interfere with
the tests and slow them down significantly.

* test/lisp/electric-tests.el (call-with-saved-electric-modes):
Bind blink-paren-function to nil.

36474a1... by Michael Albinus

Tramp code cleanup

* lisp/net/tramp-sh.el (tramp-methods) <telnet, nc>:
Reintroduce "%n" marker.
(tramp-maybe-open-connection): Handle it.

* lisp/net/tramp.el (tramp-prefix-regexp):
* lisp/net/tramp-smb.el (tramp-smb-options): Fix docstring.

* lisp/net/tramp*.el: Fix typos. Remove trailing space from
`yes-or-no-p' and `y-or-n-p' prompts.

* test/lisp/net/tramp-tests.el (tramp--test-telnet-p): New defun.
(tramp-test29-start-file-process, tramp-test30-make-process)
(tramp-test35-remote-path, tramp-test44-asynchronous-requests):
Adapt tests.

85c7993... by W Snyder

verilog-mode.el: Merge from upstream: prepare for lexical bindings.

* verilog-mode.el (verilog-do-indent)
(verilog-indent-declaration, verilog-read-always-signals-recurse)
(verilog-read-decls): Prepare for lexical bindings.

a38675c... by Eli Zaretskii

Support '...' quoting in Lisp files

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Support quoting 'like this'.

2172d6a... by Augusto Stoffel <email address hidden>

Make 'compile' respect buffer-local process environment

* lisp/progmodes/compile.el (compilation-start): Use
`process-environment' from original buffer in the compilation
process (bug#50607).

7b30073... by Lars Ingebrigtsen <email address hidden>

Bind `M-o' in html-mode and enriched-mode

* lisp/textmodes/enriched.el (enriched-mode-map): Actually define
the `M-o' face map.

* lisp/textmodes/sgml-mode.el (html-mode-map): Ditto (bug#50616).

* lisp/textmodes/sgml-mode.el (html-mode): Adjust doc string.