From: "Drew Adams" <drew.adams@oracle.com>
To: "'Ivanov Dmitry'" <usr345@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: How to open dired bookmarks in the same window
Date: Sun, 28 Oct 2012 07:52:33 -0700 [thread overview]
Message-ID: <95564EC5677841AEA165A840AF006ED8@us.oracle.com> (raw)
In-Reply-To: <406504998.20121028132549@gmail.com>
> http://stackoverflow.com/questions/13090190/emacs-how-to-open-
> dired-bookmarks-in-the-same-window
>
> After inspecting the code of bookmark.el I came to
> conclusion, that every bookmark has a handler function, that
> is taken in bookmark-get-handler. I think, that I need to
> attach find-alternate-file function as a handler to every
> bookmark-directory. So it will be opened in the same buffer.
>
> But I don't know, how to do it. Any ideas?
Use Bookmark+. You do not need to fiddle with the code of the bookmarks
themselves (e.g. the handler function). It is the bookmark _jump_ command that
says whether to use the same or another window when moving to the bookmark
location.
In Bookmark+:
C-x j d is `bmkp-dired-jump
C-x 4 j d is `bmkp-dired-jump-other-window'
You apparently want to use `C-x j d'.
(You can of course bind it to another key. By default, all Bookmark+ jump
commands are on prefix keys `C-x j' and `C-x 4 j'.)
http://www.emacswiki.org/BookmarkPlus
next prev parent reply other threads:[~2012-10-28 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 9:25 How to open dired bookmarks in the same window Ivanov Dmitry
2012-10-28 14:52 ` Drew Adams [this message]
2012-10-28 16:10 ` Re[2]: " Ivanov Dmitry
2012-10-28 17:19 ` 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=95564EC5677841AEA165A840AF006ED8@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=usr345@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.
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).