bookmark+ package provides a (bmkp-this-file-bmenu-list)
function. This, I suppose, loads a file specific bookmark file and filters only the bookmarks, which relate to the file.
Question: how to create this specific bookmark file for a specific file?
The result should be a filtered list of bookmarks, when using C-x p ,
command (which is bound to (bmkp-this-file-bmenu-list)
).
Edit: I use only one default bookmark file ~/.emacs.d/bookmarks
. This file has some bookmarks for ~/.emacs file
. Now, when I visit, say, ~/.emacs
file, then run C-x p ,
, I get the following error: bmkp-this-file-bmenu-list: No bookmarks for file ~/.emacs.
No, actually, command bmkp-this-file-bmenu-list
does this (from the doc string):
Show the bookmark list just for bookmarks for the current file.
Set `bmkp-last-specific-file` to the current file name.
If the current buffer is not visiting a file, prompt for the file name.
It shows the *Bookmark List*
display, listing only and all bookmarks that target the current file.
So if you use this command in a file buffer then you see displayed, in buffer *Bookmark List*
, all of the bookmarks to the current file, and only those bookmarks.
This has nothing to do with using a different bookmark file.
Beyond what this command does, it's not clear to me what behavior you would like. What, for instance, do you mean by a "specific bookmark file for a specific file"?