unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* clearing bookmark list
@ 2008-10-30 15:22 tomer
  2008-10-30 15:53 ` Bastien
  2008-10-30 16:43 ` Drew Adams
  0 siblings, 2 replies; 3+ messages in thread
From: tomer @ 2008-10-30 15:22 UTC (permalink / raw)
  To: help-gnu-emacs

How can I clear bookmark list
i know i can delete item by item with bookmark-detete.
but if i have large number of bookmarks,
Is there any method to clear all the bookmarks and start from fresh
new empty bookmark list ?

Thanks
Tomer


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: clearing bookmark list
  2008-10-30 15:22 clearing bookmark list tomer
@ 2008-10-30 15:53 ` Bastien
  2008-10-30 16:43 ` Drew Adams
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2008-10-30 15:53 UTC (permalink / raw)
  To: help-gnu-emacs

tomer <tomer1levin@walla.co.il> writes:

> How can I clear bookmark list

You can do this manually.

C-x C-f ~/.emacs.bmk  (or the location of your bookmarks file)

Leave the comments and replace everything else by "nil".

-- 
 Bastien




^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: clearing bookmark list
  2008-10-30 15:22 clearing bookmark list tomer
  2008-10-30 15:53 ` Bastien
@ 2008-10-30 16:43 ` Drew Adams
  1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-10-30 16:43 UTC (permalink / raw)
  To: 'tomer', help-gnu-emacs

> How can I clear bookmark list
> i know i can delete item by item with bookmark-detete.
> but if i have large number of bookmarks,
> Is there any method to clear all the bookmarks and start from fresh
> new empty bookmark list ?

This is easy if you use Icicles. Multi-command `icicle-bookmark' visits one or
more bookmarks, but it also lets you delete one or more. During completion of
candidate bookmark names:

* Your minibuffer input filters the names of the bookmarks you can visit (or
delete).

* You can cycle among the bookmark names that match your input, to choose which
bookmarks to visit (or to delete).

* `S-delete' on the current completion candidate deletes that bookmark. (`C-RET'
visits it.)

* `C-u S-delete' deletes ALL of the bookmarks that match your current input,
that is, all bookmark names in *Completions*.

So, for example, if you want to delete all bookmarks, then just hit `C-u
S-delete' after invoking `icicle-bookmark'. If you have typed no input, then all
bookmarks are matched, so all are deleted.

If you want to delete all bookmarks whose names contain `foobar', then type
`foobar' and hit `C-u S-delete'. If you want to delete all bookmarks whose names
contain both `foo' and `bar', in either order, then type `foo', hit `S-SPC',
type `bar', and hit `C-u S-delete'.

You can also use regexps as input patterns. And you can change your input at any
time to delete (or visit) a different set of bookmarks - all within the same
`icicle-bookmark' invocation.

By default (customizable), Icicle mode remaps the bindings of standard command
`bookmark-set' so they invoke `icicle-bookmark-cmd', which invokes
`icicle-bookmark' if you use a negative prefix arg, or `bookmark-set' otherwise:
`C-x r m' still invokes `bookmark-set', but `C-- C-x r m' invokes
`icicle-bookmark'. So to delete all bookmarks: `C-- C-x r m C-u S-delete'.

http://www.emacswiki.org/emacs/Icicles_-_Tripping

The same mechanism is available for deleting buffers, files, directories,
kill-ring entries, history entries, markers, saved regions,.... When you
complete their names (e.g. during a command to visit them), you can use
`S-delete' to delete one or more of them selectively.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-30 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 15:22 clearing bookmark list tomer
2008-10-30 15:53 ` Bastien
2008-10-30 16:43 ` Drew Adams

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).