dylan-find-buffer-library is used to figure out where to load colorization
files from. It loads the nearest .lid file to accomplish this. This has two
problems:
It clutters my buffer list with .lid files, which makes buffer name
completion less likely to be unique.
Sometimes it unexpectedly prompts me, if the .lid file has changed on disk
compared to what's in the existing buffer for that file.
Here I just changed (with-current-buffer (find-file-noselect to
(with-temp-buffer (insert-file-contents.
I reindented the if with what emacs thinks is the right indentation.
dylan-find-buffer-library is used to figure out where to load colorization files from. It loads the nearest .lid file to accomplish this. This has two problems:
It clutters my buffer list with .lid files, which makes buffer name completion less likely to be unique.
Sometimes it unexpectedly prompts me, if the .lid file has changed on disk compared to what's in the existing buffer for that file.
Here I just changed
(with-current-buffer (find-file-noselect
to(with-temp-buffer (insert-file-contents
.I reindented the
if
with what emacs thinks is the right indentation.