I am trying to use Bookmark+ because I would like the ability to create bookmarks with the same name that jump to locations in different files.
E.g. I have files foo and bar open in emacs. I would like to create bookmarks named a, b and c that map to three different locations in foo. I would also like to create three additional bookmarks also named a, b and c, and these should allow me to jump to different locations in bar.
Then, if the file foo is loaded in the current buffer I would like to jump to bookmark a in foo. If I then switch the current buffer to file bar and jump to bookmark a, I would like to be directed to the location of a within file bar.
I have read the Bookmark+ docs and believe this to be possible. I have tried creating bookmarks with
C-x p m and
C-u C-x p m, and jumping to them using
C-x j f and
C-x j , , but often I end up being directed to the wrong file.
Which commands should I be using to set and navigate to these types of file-specific bookmark?
Thanks @Drew for this clear explanation, I think I understand now. I have recently tried to play with icicles but I think the install didn't go quite right and I got errors. Maybe I'll have another go.
Why do I want to do this? Mostly idle curiosity I have to admit. I really like the idea of not having to worry about duplicating bookmark names, and as I understand it this is supported and works if I use the bookmark-list display. The reason for trying to use the jump commands is to save keystrokes. I can navigate to a vanilla bookmark in three keystrokes: one bound to a command to list bookmarks, one character to filter to a specific bookmark, enter and I'm there. To do the same using bookmark+ I'm currently doing: one key bound to
C-x p ,,
/ to start search, a filter character,
Enter, then multiple
Down key to get to the bookmark I want, then enter. Four plus at least three or four cursor downs (I'm working from memory here).