Closed vincent-picaud closed 3 years ago
CI failure unrelated. This PR can be merged. You get my approval. But as far as I know there is nobody actively maintaining this repositiory.
Ok, thank you for the feed back. I am using this repository and I am happy with it :)
In README.md there is a configuration code example:
However this line is problematic when buffer-file-name returns nil.
In peculiar if you try to html-export (C-c C-e h o) this org-mode file:
you get this error:
This PR fixes this by replacing:
(when (string-match "/\.nimble/" buffer-file-name) (read-only-mode 1))
by
(when (string-match "/\.nimble/" (or (buffer-file-name) "")) (read-only-mode 1))
that handles the case where the buffer is not associated to a file.