mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-26
04e5b28ff1Fix bug in i18n/l10n optimization8227087194Let autoload-compute-prefix be set file-locally (Bug#29471)98ca7d5f26Improve edit-kbd-macro prompting in case of remapped keys ...c02c1f6be7Add tests on electric-indentation and Python multiline str...946bb6d225Disable electric indent for python strings (Bug#29305)35f1ed10e4; ChangeLog.2: Fix bug reference.ac316634e4Fix buffer overflow in fontname conversion (Bug#29523)bf9b972843Fix byte compilation of files with leading directoriesac144dc835* lisp/files.el (make-backup-file-name-1): Fix scoping error.1b351c8a47Revert Tramp commit from 2017-11-2077cf972592Improve documentation of buffer-list commands and features66ec92af00Fix backing up remote files in local directories on MS-Win...7e61e74da7* doc/emacs/mule.texi (Output Coding): Clarify sendmail co...1e25cd79ffRevert "Fix backing up remote files in local directories o...f52d79500bFix a typo in ELisp manualbf26fc3656* lisp/composite.el (find-composition): Fix a typo in the ...
This commit is contained in:
commit
9d7f0e27e0
14 changed files with 119 additions and 68 deletions
|
|
@ -1257,7 +1257,11 @@ This function is intended to be added to `post-self-insert-hook.'
|
|||
If a line renders a paren alone, after adding a char before it,
|
||||
the line will be re-indented automatically if needed."
|
||||
(when (and electric-indent-mode
|
||||
(eq (char-before) last-command-event))
|
||||
(eq (char-before) last-command-event)
|
||||
(not (python-syntax-context 'string))
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(not (python-syntax-context 'string (syntax-ppss)))))
|
||||
(cond
|
||||
;; Electric indent inside parens
|
||||
((and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue