Skip to content

Commit

Permalink
Fix warnings introduced with savehist feature
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante committed Feb 29, 2024
1 parent 0d38f79 commit 8486915
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -4341,15 +4341,16 @@ See `eldoc-documentation-functions', for more infomation."


;;; Savehist mode
(defvar savehist-additional-variables) ;; skip savehist require

(defvar dape--breakpoints-savehist nil
"Used to save and load `dape--breakpoints' in an printable format.")

(defun dape-savehist-load ()
"Load breakpoints and exceptions saved by `savehist-mode'."
(when (and dape-use-savehist (not dape--breakpoints))
(add-to-list 'savehist-additional-variables #'dape--breakpoints-savehist)
(add-to-list 'savehist-additional-variables #'dape--exceptions)
(add-to-list 'savehist-additional-variables 'dape--breakpoints-savehist)
(add-to-list 'savehist-additional-variables 'dape--exceptions)
(cl-loop for (file point . args) in dape--breakpoints-savehist
do (ignore-errors
(with-current-buffer (find-file-noselect file)
Expand Down

0 comments on commit 8486915

Please sign in to comment.