unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@linkov.net>
Cc: 38354@debbugs.gnu.org
Subject: bug#38354: 27.0.50; Implement display action display-buffer-in-tab
Date: Mon, 2 Dec 2019 10:40:14 +0100	[thread overview]
Message-ID: <6be9eb15-062d-b15f-04c8-993a2a2eee22@gmx.at> (raw)
In-Reply-To: <87lfrvk7cg.fsf@mail.linkov.net>

 >> If so, then we should decide whether we always want to stick to that
 >> limitation or, eventually allow moving tabs between frames, probably
 >> using window states for that purpose.  And we have to decide whether
 >> such moving of a tab would mean making a completely self-reliant copy
 >> of it or keep properties of it shared among frames.  And eventually we
 >> should decide whether tabs could become first-class citizens - have a
 >> life of their own without being attached to any frame.
 >
 > There are two separate cases to consider:
 >
 > 1. Moving an inactive tab to another frame.
 >     In this case we need to use its window-state, not window-configuration,
 >     i.e. just delete the window-configuration from tab data, then it
 >     could be moved to another frame without problems.
 >
 > 2. Moving the current tab to another frame.  Here we need to save
 >     window-configuration of another frame to its inactive tab, then clone
 >     the original frame to another frame.  Do you know if such a function
 >     already exists that duplicates all frame parameters with frame-root
 >     window-state to another frame?

With "moving" I really meant "copying" or "cloning" with the
additional possibility of deleting the original.  So there should be
only one question: Can we simply make a copy of a tab using its window
state (window configurations can't be used because we cannot clone
windows).  If not, what is the problem?

 > An additional question to consider is how to interactively select
 > an another frame: by frame name, or using other-frame with a numeric
 > prefix argument?

How is this question related to tabs?

 >>> (push '("test1" .
 >>>           ((display-buffer-reuse-window display-buffer-in-tab)
 >>>            (reusable-frames  . visible)
 >>>            (name . "Tab1")))
 >>>         display-buffer-alist)
 >>
 >> What would be the downside of it?  The 'reusable-frames' would specify
 >> the list of frames to investigate - the other dimension you mentioned
 >> above.
 >
 > We need an alist entry that will tell display-buffer-reuse-window
 > to search in tabs.  Maybe just the presence of the 'use-tabs' param
 > will tell display-buffer-reuse-window to search in tabs like:
 >
 > (push '("test1" .
 >           (display-buffer-reuse-window
 >            (reusable-frames  . visible)
 >            (use-tabs . t)))
 >         display-buffer-alist)

There is one thing I apparently do not understand yet: When you enable
'tab-bar-mode' it is global - that is any window ever shown on any frame
is also in at least one of that frame's tabs.  Is that right?  So what
would 'use-tabs' mean here when every window is in a tab already?

 >>    By default, a new tab starts with the current buffer that was current
 >>    before calling the command that adds a new tab.
 >>
 >> That's confusing, at least.
 >
 > Maybe this is better?
 >
 >    By default, a new tab starts with the buffer that was current
 >    before calling the command that adds a new tab.

The current buffer is IMHO a much too obscure object to consider here.
Don't you mean the buffer of the selected window?

martin





  reply	other threads:[~2019-12-02  9:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 23:09 bug#38354: 27.0.50; Implement display action display-buffer-in-tab Juri Linkov
2019-11-26  9:32 ` martin rudalics
2019-11-26 22:30   ` Juri Linkov
2019-11-26 22:43   ` Juri Linkov
2019-11-27  9:49     ` martin rudalics
2019-11-27 21:37       ` Juri Linkov
2019-11-28  9:20         ` martin rudalics
2019-11-28 23:02           ` Juri Linkov
2019-11-29  9:24             ` martin rudalics
2019-12-01 22:29               ` Juri Linkov
2019-12-02  9:40                 ` martin rudalics [this message]
2019-12-02 23:43                   ` Juri Linkov
2019-12-03  9:18                     ` martin rudalics
2019-12-03 23:36                       ` Juri Linkov
2019-12-04  9:22                         ` martin rudalics
2019-12-04 22:51                           ` Juri Linkov
2019-12-05  9:05                             ` martin rudalics
2019-12-05 23:54                               ` Juri Linkov
2019-12-06  7:37                                 ` martin rudalics
2022-12-06 17:40                                   ` Juri Linkov

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=6be9eb15-062d-b15f-04c8-993a2a2eee22@gmx.at \
    --to=rudalics@gmx.at \
    --cc=38354@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /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).