aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorPaul Eggert2017-12-02 21:38:05 -0800
committerPaul Eggert2017-12-02 21:38:05 -0800
commit9d7f0e27e0592132c1b5b9c280192333eaf288b8 (patch)
treeadb2a804b43c535b1dc2c05bf0fd60c51085c683 /lisp/progmodes/python.el
parent4c048aaf06863057b9dd695639f70cc937b02755 (diff)
parent04e5b28ff1691345e023a944dc6a6a9e9573bd07 (diff)
downloademacs-9d7f0e27e0592132c1b5b9c280192333eaf288b8.tar.gz
emacs-9d7f0e27e0592132c1b5b9c280192333eaf288b8.zip
Merge from origin/emacs-26
04e5b28ff1 Fix bug in i18n/l10n optimization 8227087194 Let autoload-compute-prefix be set file-locally (Bug#29471) 98ca7d5f26 Improve edit-kbd-macro prompting in case of remapped keys ... c02c1f6be7 Add tests on electric-indentation and Python multiline str... 946bb6d225 Disable electric indent for python strings (Bug#29305) 35f1ed10e4 ; ChangeLog.2: Fix bug reference. ac316634e4 Fix buffer overflow in fontname conversion (Bug#29523) bf9b972843 Fix byte compilation of files with leading directories ac144dc835 * lisp/files.el (make-backup-file-name-1): Fix scoping error. 1b351c8a47 Revert Tramp commit from 2017-11-20 77cf972592 Improve documentation of buffer-list commands and features 66ec92af00 Fix backing up remote files in local directories on MS-Win... 7e61e74da7 * doc/emacs/mule.texi (Output Coding): Clarify sendmail co... 1e25cd79ff Revert "Fix backing up remote files in local directories o... f52d79500b Fix a typo in ELisp manual bf26fc3656 * lisp/composite.el (find-composition): Fix a typo in the ...
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d4226e5ce7b..9e09bfc5941 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1257,7 +1257,11 @@ This function is intended to be added to `post-self-insert-hook.'
1257If a line renders a paren alone, after adding a char before it, 1257If a line renders a paren alone, after adding a char before it,
1258the line will be re-indented automatically if needed." 1258the line will be re-indented automatically if needed."
1259 (when (and electric-indent-mode 1259 (when (and electric-indent-mode
1260 (eq (char-before) last-command-event)) 1260 (eq (char-before) last-command-event)
1261 (not (python-syntax-context 'string))
1262 (save-excursion
1263 (beginning-of-line)
1264 (not (python-syntax-context 'string (syntax-ppss)))))
1261 (cond 1265 (cond
1262 ;; Electric indent inside parens 1266 ;; Electric indent inside parens
1263 ((and 1267 ((and