Skip to content

Commit

Permalink
Avoid infinite loop in slime-presentation-start/end
Browse files Browse the repository at this point in the history
Fixes slime#814
  • Loading branch information
corngood committed Mar 2, 2024
1 parent eafb23c commit 7e91126
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/slime-presentations.el
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Return buffer index and whether a start-tag was found."
(buffer (with-current-buffer object 1))
(string 0))
nil)))
(when (= change-point point)
(error "Unable to find presentation start"))
(setq this-presentation (get-text-property change-point
presentation object))
(unless this-presentation
Expand All @@ -240,6 +242,8 @@ end-tag was found."
(buffer (with-current-buffer object (point-max)))
(string (length object)))
nil)))
(when (= change-point point)
(error "Unable to find presentation end"))
(setq point change-point)
(setq this-presentation (get-text-property point
presentation object))))
Expand Down

0 comments on commit 7e91126

Please sign in to comment.