unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Matthias Meulien <orontee@gmail.com>
Cc: Karl Fogel <kfogel@red-bean.com>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Re: [PATCH] When deleting in bookmark menu, prompt for confirmation.
Date: Thu, 6 May 2021 15:29:26 +0000	[thread overview]
Message-ID: <SA2PR10MB4474C43BA2D0D68943BE734FF3589@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <875yzwtkuj.fsf@gmail.com>

> > (...) The bookmarks in that list can be loaded from any number of
> > bookmark files, and more bookmarks can be added on the fly, so that
> > the list corresponds to no bookmark file.
> 
> Yes, you're right.  But if one press `s', the default
> bookmark file will be updated with all bookmarks
> whatever their originating bookmark file!

Which is what I said:

  The only thing you can say about it is that if you
  _save_ the current bookmark list then, by default,
  its bookmarks will replace those in a particular
  bookmark file.

> From my pov and usage (one bookmark file for work
> projects and another one, the default one, for
> personnal projects and common bookmarks like
> download folder, Python documentation, etc.) this
> makes loading multiple bookmark files deeply broken
> (but that's another discussion).

I disagree.  But then, I use Bookmark+, which makes
using multiple bookmark files much easier and more
useful.

https://www.emacswiki.org/emacs/BookmarkPlus#UsingMultipleBookmarkFiles

Wrt your use case of using only two files: Just use
a prefix arg with `L', to switch to the last bookmark
file used.  (Or use `L RET', since the last one is
the default for switching.)

[IIRC, vanilla bookmark.el doesn't have a way to
switch to a different bookmark file interactively.
All it needs to do, to add that, is to let a prefix
arg for `bookmark-load' and `bookmark-bmenu-load'
provide non-nil arg OVERWRITE.  It provides a
prefix arg for saving, but not for loading.]

A particularly handy way to switch among multiple
bookmark files is to bookmark bookmark files!  Then
you just jump to such a bookmark to switch or load
(add) files.  Use bookmark names that tell you just
what each file is for.  Use such bookmarks to flip
between projects or contexts, or to combine/compose
them.

In menu-bar menu `Bookmark+' for your bookmark-list
display (`C-x r l'), submenu `Bookmark File' has
these items:

 _____________________________________________________
 Revert to Saved Bookmarks                  C-u g
 Empty Bookmark File...                     C-x x 0
 ___
 Load (Add) Bookmarks...                    l
 Switch to Bookmarks...                     L
 Switch to Last Bookmark File...            C-u L
 ___
 Load Bookmarks, Mark Those Loaded...
 Load Bookmarks, Mark Only Those Loaded...
 Load Marked Bookmark-File Bookmarks...     M-l
 ___
 Move Marked to Bookmark File...            Y > -
 Copy Marked to Bookmark File...            Y > +
 Copy Marked to New Bookmark File...        Y > 0
 Set Bookmark-File Bookmark from Marked...  C-u Y > 0
_____________________________________________________

You can toggle automatic saving of your current
bookmarks to the current bookmark file any time,
using `M-~'.  (Toggles option `bookmark-save-flag'.)
Turning auto-saving off is often what you want
to do if you've loaded multiple bookmark files.

You can also easily copy or move bookmarks from
one bookmark file to another.



  reply	other threads:[~2021-05-06 15:29 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03  3:43 [PATCH] When deleting in bookmark menu, prompt for confirmation Karl Fogel
2021-05-03  9:16 ` Lars Ingebrigtsen
2021-05-03 12:48   ` Stefan Kangas
2021-05-03 13:02     ` Stefan Monnier
2021-05-04  7:53     ` Lars Ingebrigtsen
2021-05-04 16:29       ` [External] : " Drew Adams
2021-05-03 11:41 ` Eli Zaretskii
2021-05-03 12:47   ` Stefan Kangas
2021-05-03 13:16     ` Eli Zaretskii
2021-05-03 15:43       ` Stefan Kangas
2021-05-03 16:25         ` Eli Zaretskii
2021-05-03 17:21         ` Karl Fogel
2021-05-03 17:41           ` Eli Zaretskii
2021-05-03 18:28             ` Jim Porter
2021-05-03 18:44               ` Eli Zaretskii
2021-05-03 19:01                 ` Jim Porter
2021-05-03 20:52             ` Karl Fogel
2021-05-05  5:24             ` Karl Fogel
2021-05-05  8:11               ` Lars Ingebrigtsen
2021-05-05 19:37                 ` Karl Fogel
2021-05-05 20:06                   ` Stefan Monnier
2021-05-05 21:38                     ` Karl Fogel
2021-05-05 23:17                       ` [External] : " Drew Adams
2021-05-05 23:25                         ` Karl Fogel
2021-05-06  6:52                         ` Matthias Meulien
2021-05-06 15:29                           ` Drew Adams [this message]
2021-05-08 20:46                             ` Matthias Meulien
2021-05-09  8:54                               ` Eli Zaretskii
2021-05-09 18:37                                 ` Karl Fogel
2021-05-09 18:39                                   ` Eli Zaretskii
2021-05-25  5:38                                     ` Karl Fogel
2021-05-25 12:09                                       ` Eli Zaretskii
2021-05-25 20:24                                         ` Karl Fogel
2021-05-26 11:59                                           ` Eli Zaretskii
2021-05-26 19:33                                             ` Karl Fogel
2021-05-07 17:42                           ` Karl Fogel
2021-05-07 22:24                             ` Drew Adams
2021-05-08  6:13                               ` Karl Fogel
2021-05-06  8:49                   ` Lars Ingebrigtsen
2021-05-06 13:30                     ` Stefan Monnier
2021-05-07  8:40                       ` Lars Ingebrigtsen
2021-05-07 12:55                         ` Stefan Monnier
2021-05-09  9:55                           ` Lars Ingebrigtsen
2021-05-09 15:04                             ` Stefan Kangas
2021-05-09 18:01                               ` Stefan Monnier
2021-05-10  8:30                               ` Lars Ingebrigtsen
2021-05-07 17:40                     ` Karl Fogel
2021-05-05 11:56               ` Eli Zaretskii
2021-05-05 21:43                 ` Karl Fogel
2021-05-03 17:43           ` [External] : " Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SA2PR10MB4474C43BA2D0D68943BE734FF3589@SA2PR10MB4474.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=kfogel@red-bean.com \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=orontee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).