emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] open bookmark in other frame


From: Pierre-Yves Luyten
Subject: Re: [PATCH] open bookmark in other frame
Date: Thu, 11 Oct 2018 23:50:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 10/11/18 12:06 AM, Drew Adams wrote:
people sometimes use several frames, so i would like to make opening
bookmark one shot. Attached patch adds two funcs,
"bookmark-jump-other-frame" and the equivalent from the bookmarks menu,
"bookmark-bmenu-other-frame"

My suggestions in this regard, FWIW:

1. Don't use `view-buffer-other-frame'.
     Select the buffer, and not just read-only. Jumping to a bookmark
     typically puts you at its location (hence select), and the buffer is
     typically not put in a read-only mode. IOW, do the equivalent of
     this, or similar:

     (let ((pop-up-frames  t)) (bookmark-jump-other-window bookmark)

2. Don't use `F' as the key binding in the bookmark-list buffer.
     `F' is more often used for files than for frames. Maybe use `5'.
(I use `J 5' in Bookmark+. `J' is a prefix for the jump commands
     in the bookmark-list buffer. The `5' is from `C-x 5' bindings for
     other-frame. I bind the command to `C-x 5 B' and `C-x j 5' globally.
     `C-x j' is a global prefix key for bookmark jump commands.)


So here is the new version of the patch
1. Use pop-up-frames variable to avoid a read-only mode on new frame.
   I also had to use (other-frame 1) to ensure new frame is raised.

2. Use "5" binding both in bookmark-map, and bookmark-bmenu-mode-map

3. Split in two commits, one per new function
   I tried to respect the conventions on the log.

The patches are generated using git format-patch.

Regards
Pierre-Yves

Attachment: 0001-lisp-bookmark.el-bookmark-jump-other-frame-new-funct.patch
Description: Text Data

Attachment: 0002-lisp-bookmark.el-bookmark-bmenu-other-frame-new-func.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]