vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
629 stars 90 forks source link

pdf-view-midnight-minor-mode not persistent #181

Open sati-bodhi opened 1 year ago

sati-bodhi commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

midnight-minor-mode fails to retain its effect on the buffer after annotations are saved or deleted.

Steps to Reproduce the behaviour Steps to reproduce the behaviour:

  1. Enable midnight-minor-mode
  2. Add highlight annotation.
  3. Save buffer.
  4. Delete annotation.
  5. midnight-minor-mode loses effect on the buffer.
  6. Disable midnight-minor-mode
  7. Enable midnight-minor-mode

Steps 6 and 7 are required to bring back the dark mode.

What is the expected behaviour? A clear and concise description of what you expected to happen.

midnight-minor-mode should persist in a single session until the user toggles it.

Desktop Please complete the following information:

Your pdf-tools install Please complete the following information:

Default.

Additional context

vedang commented 1 year ago

I've added the waiting label here because I cannot reproduce this issue on my setup. I will add instructions on how to test pdf-tools under Vanilla Emacs so that you can try that out and see if the bug persists.

In the meantime, if you know how to install packages on Vanilla Emacs, please test the behaviour and let me know as well!