You can have any number of bookmarks to the same file. To different or even the same location within the file. This is true of both vanilla
bookmark.el and Bookmark+.
Yes, you typically just give bookmarks different names, e.g., to target different locations in the same file.
But you can have bookmarks that have the same name, and they can go to either the same location (e.g., same position or same file) or different locations.
But in vanilla Emacs, in this case only the latest bookmark of the same name -- that is, the one closest to the front of the
bookmark-alist -- is usable at any time. It shadows any others that have the the same name.
With Bookmark+, you can have any number of bookmarks with the same name, and they can all be used. Whether this is possible is controlled by user option
bmkp-propertize-bookmark-names-flag. By default it is
t, meaning that you can have multiple, usable bookmarks with the same name.
bmkp-propertize-bookmark-names-flag is a variable defined in
Its value is
nil means to propertize bookmark names to hold full bookmark data.
This means that you can effectively have more than one bookmark with
the same name.
Just FYI, in case you're interested in Lisp things -
If the value is non-
nil and you examine the internal definitions of
bookmarks (e.g. by opening your bookmark file or using
C-h v bookmark-alist), then you'll see the propertized strings written
something like this (instead of just
NAME is the
#("NAME" 0 15 (bmkp-full-record #1))
(If you examine the internal form of a bookmark using
C-u C-h RET,
then you won't see that. The help output removes that noise, to just
That propertized-string Lisp syntax shows that the bookmark-name
"NAME" has property
bmkp-full-record, whose value is in
fact the list that is the full bookmark record, including that string
You can customize this variable.
What Bookmark+ calls autofiles are in fact bookmarks whose names are the same as the files they target (with the target position at the start of the file). They're easy to create (you're not prompted for the bookmark name).
The bookmark name is only the nondirectory part of the file name. So you can have multiple autofile bookmarks with the same (bookmark) name, for files with the same name in different directory.
Autofiles give you, in effect, a way to treat bookmarks as files. In particular, they give you a way to tag files.