Use inhibit-quit to prevent interruption of index updates

master
Hugo Thunnissen 2 months ago
parent 2aac7a273e
commit 8569553981

@ -419,6 +419,9 @@ linked with."
(phpinspect-buffer-parse buffer 'no-interrupt)) (phpinspect-buffer-parse buffer 'no-interrupt))
(cl-defmethod phpinspect-buffer-update-project-index ((buffer phpinspect-buffer)) (cl-defmethod phpinspect-buffer-update-project-index ((buffer phpinspect-buffer))
;; Use inhibit-quit to prevent index corruption though partial index
;; application.
(let ((inhibit-quit t))
(when (phpinspect-buffer-project buffer) (when (phpinspect-buffer-project buffer)
(let ((map (phpinspect-buffer-map buffer))) (let ((map (phpinspect-buffer-map buffer)))
(unless (eq map (phpinspect-buffer--last-indexed-bmap buffer)) (unless (eq map (phpinspect-buffer--last-indexed-bmap buffer))
@ -428,7 +431,7 @@ linked with."
(phpinspect-buffer-index-classes buffer (phpinspect-bmap-classes map)) (phpinspect-buffer-index-classes buffer (phpinspect-bmap-classes map))
(phpinspect-buffer-index-functions buffer (phpinspect-bmap-functions map)) (phpinspect-buffer-index-functions buffer (phpinspect-bmap-functions map))
(phpinspect-buffer-index-class-variables buffer (phpinspect-bmap-class-variables map)) (phpinspect-buffer-index-class-variables buffer (phpinspect-bmap-class-variables map))
(setf (phpinspect-buffer--last-indexed-bmap buffer) map))))) (setf (phpinspect-buffer--last-indexed-bmap buffer) map))))))
(defsubst phpinspect-buffer-parse-map (buffer) (defsubst phpinspect-buffer-parse-map (buffer)
(phpinspect-buffer-parse buffer) (phpinspect-buffer-parse buffer)

Loading…
Cancel
Save