linemark.el:

(linemark-group::linemark-add-entry):
Wrap call to linemark-display in condition case.
Catch error in eieio framework that I can't figure out.
This commit is contained in:
Eric Ludlam 2021-03-23 16:53:49 -04:00
parent 196843b0ed
commit b97e8260af

View file

@ -275,7 +275,12 @@ Call the new entrie's activate method."
(oset new-entry face (or face (oref g face)))
(oset g marks (cons new-entry (oref g marks)))
(if (oref g active)
(linemark-display new-entry t))
(condition-case nil
;; Somewhere in the eieio framework this can throw 'end of buffer' error
;; after the display function exits. Not sure where that is, but this
;; condition-case can capture it and allow things to keep going.
(linemark-display new-entry t)
(error nil)))
new-entry)
))