emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

savehist-autosave should be wrapped in a condition-case


From: Drew Adams
Subject: savehist-autosave should be wrapped in a condition-case
Date: Thu, 1 Dec 2005 11:06:43 -0800

Because it's always possible for a history list to end up containing
malformed entries, in my local copy of savehist.el I have added this
condition-case:

(defun savehist-autosave ()
  "Save the minibuffer history if it has been modified since the last
save."
  (condition-case nil
      (savehist-save t)
    (error nil)))

You might want to do something similar in the official version. An
alternative might be to remove the offending entry and try again to save.

Thanks,

  Drew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]