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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
d3b7a90b
Commit
d3b7a90b
authored
Sep 30, 2014
by
Leonardo Nobrega
Committed by
Stefan Monnier
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.
Fixes: debbugs:18462
parent
572fe798
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+4
-2
No files found.
lisp/ChangeLog
View file @
d3b7a90b
2014-09-30 Leonardo Nobrega <leonobr@gmail.com> (tiny change)
* progmodes/python.el (python-fill-paren): Don't inf-loop at EOB
(bug#18462).
2014-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/package.el (package-check-signature): Default to nil if
...
...
lisp/progmodes/python.el
View file @
d3b7a90b
...
...
@@ -3107,7 +3107,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
(
end-of-line
)
(
when
(
not
(
python-syntax-context
'paren
))
(
skip-syntax-backward
"^)"
)))
(
while
(
python-syntax-context
'paren
)
(
while
(
and
(
python-syntax-context
'paren
)
(
not
(
eobp
)))
(
goto-char
(
1+
(
point-marker
))))
(
point-marker
)))
(
let
((
paragraph-start
"\f\\|[ \t]*$"
)
...
...
@@ -3118,7 +3119,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
(
while
(
not
(
eobp
))
(
forward-line
1
)
(
python-indent-line
)
(
goto-char
(
line-end-position
))))
t
)
(
goto-char
(
line-end-position
))))
t
)
;;; Skeletons
...
...
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