Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c2e145b2
Commit
c2e145b2
authored
Nov 16, 2014
by
Fabián Ezequiel Gallina
Browse files
* lisp/progmodes/python.el (python-mode): Avoid use of set-local to
keep Emacs 24.x compatibility.
parent
cbd90e1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+3
-2
No files found.
lisp/ChangeLog
View file @
c2e145b2
2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-mode): Avoid use of set-local to
keep Emacs 24.x compatibility.
2014-11-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr): Move to the new defgroup `web'.
...
...
lisp/progmodes/python.el
View file @
c2e145b2
...
...
@@ -4301,8 +4301,9 @@ Arguments START and END narrow the buffer region to work on."
#'python-indent-line-function)
(set (make-local-variable 'indent-region-function) #'python-indent-region)
;; Because indentation is not redundant, we cannot safely reindent code.
(
setq-local
electric-indent-inhibit
t
)
(
setq-local
electric-indent-chars
(
cons
?:
electric-indent-chars
))
(set (make-local-variable 'electric-indent-inhibit) t)
(set (make-local-variable 'electric-indent-chars)
(cons ?: electric-indent-chars))
;; Add """ ... """ pairing to electric-pair-mode.
(add-hook 'post-self-insert-hook
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment