The code in linemark.el prevents from setting bookmarks in buffers which
do not contain a file. I find the bookmark feature very useful, also in
*compilation* and other non-file buffers, therefore I hacked a bit in
linemark.el to allow this. I don't know if there are cases where the
modifications don't work, but up to know I didn't encounter any problem
with it. Please find the diff attached.