8000 Something emptied the keyfreq file · Issue #29 · dacap/keyfreq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Something emptied the keyfreq file #29
Open
@meedstrom

Description

@meedstrom

Unfortunately I cannot reproduce, but I lost the content of my ~/.emacs.keyfreq. It may not even be a keyfreq bug, but I think it's useful to have an issue to discuss this. Keyfreq could be more resilient in this case, or at least warn when it happens, like what I now put in my init files:

(use-package keyfreq
  :config
  (if (and (file-exists-p keyfreq-file)
           (= 0 (doom-file-size) keyfreq-file))
      (warn "File mysteriously blanked: keyfreq-file!")
    (keyfreq-mode)
    (keyfreq-autosave-mode)))

It's fortunate that the package spits out errors and warnings (though nondescriptive) when the file is empty, so I could track down the problem. I recommend keeping it that way, perhaps just making the warnings more descriptive.

If you have an idea how to track down the cause of this, I'm all ears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0