dylan-lang / dylan-emacs-support

Emacs mode for indenting and highlighting Dylan code
GNU General Public License v2.0
27 stars 8 forks source link

Don't clutter buffer list with .lid files #63

Closed cgay closed 2 years ago

cgay commented 2 years ago

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:

  1. It clutters my buffer list with .lid files, which makes buffer name completion less likely to be unique.

  2. 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.