all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Psionic K <psionik@positron.solutions>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Moving frames around screens
Date: Wed, 3 Jul 2024 14:57:39 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488B2D8C983138393CAF9F9F3DD2@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <CADQMGAT+T8Uz-50M25iCNCLHhfjkPQer7jNvfB98=3c-t79GAg@mail.gmail.com>

> I'm adding a command to dslide called `dslide-present'.  It will
> create a frame that has a modal transient UI for positioning the
> frame.  Since the user won't control both frames simultaneously. the
> base frame and presentation frame should be able to swap positions
> 
> This is the kind of problem that really relies on experience with
> different desktop environments.  Are there certain functions and
> strategies I should rely on or avoid to make this work well on
> multiple desktop environments?

Not sure what you're asking, including what
you mean by "different desktop environments".

I've long had commands that let you resize or
move frames around incrementally (e.g. by
holding down a key).

You can certainly move them across different
_monitors_.  I don't see how Emacs desktops
would be related to frame movements, but
perhaps you mean different platforms?
___

Anyway, in case it helps: see frame-cmds.el:

https://www.emacswiki.org/emacs/download/frame-cmds.el

Some suggested key bindings:

* `M-up|down|left|right': move frames around incrementally.
* `C-S-v', `M-S-v', `C-S-next', `C-S-prior': move frames
    to screen edges.
* `C-M-up|down|left|right': resize frames incrementally.
* `C-x {', `C-x }', `C-x ^', `C-u C-x ^': resize windows
    incrementally.
* `C-M-z' or `C-x C-z': iconify/hide all frames.
* `C-M-z' in a lone frame: restore all frames.
* `C-mouse-1' in the minibuffer: restore all frames.
* `C-mouse-1' in Dired: mark/unmark a file.
* `C-mouse-3' on the mode line: remove window from frame.
* `tile-frames-horizontally', `-vertically': tile frames.
* `C-x o': select `other-window' or `other-frame'.

Maybe `move-frame-up' (`M-up') etc. are
similar to what you want to do?  But there's
no "base frame" and "presentation frame" -
you directly move a frame (default: selected
frame) incrementally by holding down a key.

frame-cmds.el requires frame-fns.el:

https://www.emacswiki.org/emacs/download/frame-fns.el


Other frame-command libraries:

`autofit-frame.el' - Automatically fit each frame to its
                     selected window.  Uses `fit-frame.el'.
`fit-frame.el'     - 1) Fit a frame to its selected window.
                     2) Incrementally resize a frame.
`doremi-frm.el'    - Incrementally adjust frame properties
                     using arrow keys and/or mouse wheel.
`thumb-frm.el'     - Shrink frames to a thumbnail size and
                     restore them again.
`zoom-frm.el'      - Zoom a frame or buffer, so its text
                     appears larger or smaller.

Those libraries are also at

https://www.emacswiki.org/emacs?action=elisp-area

      reply	other threads:[~2024-07-03 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-03 12:10 Moving frames around screens Psionic K
2024-07-03 14:57 ` Drew Adams [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488B2D8C983138393CAF9F9F3DD2@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=psionik@positron.solutions \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.