From: Drew Adams <drew.adams@oracle.com>
To: Jean-Christophe Helary
<jean.christophe.helary@traduction-libre.org>,
Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: RE: "grouping" buffers
Date: Sun, 31 May 2020 03:49:09 +0000 (UTC) [thread overview]
Message-ID: <38d5c557-715d-43b2-ae02-d0f73c3f3600@default> (raw)
In-Reply-To: <C51610B8-49E4-40F0-9ABF-843FC2D4E2C3@traduction-libre.org>
> The utilities for manipulating frames and buffers within frames
> are extremely limited. There does not seem to be a way to "name" a
> given frame,
In `frame-cmds.el' you have command `rename-frame'. Doc:
Rename a frame named OLD-NAME to NEW-NAME.
Prefix arg non-nil means rename all frames named OLD-NAME to NEWNAME.
OLD-NAME may be a frame, its name, or nil. Default is `selected-frame'.
NEW-NAME is a string or nil. Default NEW-NAME is current `buffer-name'.
The code is about 7 lines long. Ultimately it uses
standard function `modify-frame-parameters'.
> or to call a frame to the front for example, like I'd call
> a buffer to the front.
By "call to the front", do you mean select the frame,
giving it focus? That's standard command `select-frame' or
`select-frame-by-name' (or function `select-frame-set-focus').
Or do you mean change its z-order value (bring it
forward)? That's standard command `raise-frame'.
(Use `i frame z-order' in the Elisp manual. That takes
you to node `Raising, Lowering and Restacking Frames'.)
> On macos ... I can access the name of a given frame,
Function `get-frame-name' from library `frame-fns.el'.
Essentially (cdr (assq 'name (frame-parameters frame)).
Many of the functions and commands in `frame-fns.el'
and `frame-cmds.el' have simple, short, definitions.
> I change its name,
`rename-frame' - see above.
> I can call it to the front or to the back, I can modify its
> contents, I can rearrange the size and placement of each frame, etc.
Dunno what you mean by modify its contents.
But repositioning and resizing aren't hard.
`frame-cmds.el' has several commands for such things,
including incremental movement (e.g. `move-frame-up)
and incremental resizing (e.g. `enlarge-frame').
The latter is just this:
(set-frame-height frame (+ (frame-height frame) increment))
> I can't work on "buffers" because the concept does not exist, but I
> think you see what I mean.
No, I'm not sure I do.
> I can't seem to be able to do that in emacs for emacs frames.
Most frame changes are done ultimately with
`modify-frame-parameters'. The Elisp manual is
pretty good on this subject. Start with node
`Frames'.
___
https://www.emacswiki.org/emacs/download/frame-cmds.el
https://www.emacswiki.org/emacs/download/frame-fns.el
next prev parent reply other threads:[~2020-05-31 3:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 6:26 "grouping" buffers Jean-Christophe Helary
2020-05-27 21:02 ` Douglas Lewan
2020-05-31 3:33 ` Perspectives (was Re: "grouping" buffers) Jean-Christophe Helary
2020-05-27 22:58 ` "grouping" buffers Jakub Jankiewicz
2020-05-31 2:45 ` Jean-Christophe Helary
2020-05-31 3:49 ` Drew Adams [this message]
2020-05-31 5:02 ` Jean-Christophe Helary
2020-05-31 7:21 ` Yuri Khan
2020-05-31 7:34 ` Jean-Christophe Helary
2020-05-31 12:35 ` Perry Smith
2020-05-31 16:39 ` Drew Adams
2020-05-31 14:31 ` Eli Zaretskii
2020-05-31 14:41 ` Jean-Christophe Helary
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=38d5c557-715d-43b2-ae02-d0f73c3f3600@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=jean.christophe.helary@traduction-libre.org \
/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).