Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0bf3f0fa
Commit
0bf3f0fa
authored
Nov 25, 2013
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/progmodes/python.el (python-indent-guess-indent-offset):
Avoid corner-case error. Fixes: debbugs:15975
parent
d6686055
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+1
-1
No files found.
lisp/ChangeLog
View file @
0bf3f0fa
2013-11-26 Glenn Morris <rgm@gnu.org>
* progmodes/python.el (python-indent-guess-indent-offset):
Avoid corner-case error. (Bug#15975)
Preload leim-list.el. (Bug#4789)
* loadup.el: Load leim-list.el when found.
* startup.el (normal-top-level): Skip re-loading leim/leim-list.el.
...
...
lisp/progmodes/python.el
View file @
0bf3f0fa
...
...
@@ -676,7 +676,7 @@ AFTER-LINE.")
(
goto-char
block-end
)
(
python-util-forward-comment
)
(
current-indentation
))))
(
if
indentation
(
if
(
and
indentation
(
not
(
zerop
indentation
)))
(
set
(
make-local-variable
'python-indent-offset
)
indentation
)
(
message
"Can't guess python-indent-offset, using defaults: %s"
python-indent-offset
)))))))
...
...
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