all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Hikaru Ichijyo <ichijyo@macross.sdf.jp>, help-gnu-emacs@gnu.org
Subject: RE: launch a program in an arbitrary frame
Date: Fri, 17 Jul 2015 22:22:35 -0700 (PDT)	[thread overview]
Message-ID: <70d9811c-76aa-4eb1-98a9-15c71e2c89c9@default> (raw)
In-Reply-To: <8xxwpxyducd.fsf@village.keycorner.org>

> I often run ERC to connect to IM services via a local Bitlbee daemon.
> It works best running in its own frame, so I know when people are
> talking to me without having to flip through all my buffers.  (A window
> doesn't seem to be sufficient, since Gnus keeps changing the window
> layout to its Summary/Article split, and the only way I've found to deal
> with that is to keep programs whose layout I care about in separate
> frames.)
> 
> Anyway, it's redundant to have to manually put ERC in its own frame
> every time I launch it.
> 
> I have somethink like this bound to a key:
> 
>   (erc :server "localhost")
> 
> Some programs have the ability to launch in a new frame built into them,
> but shouldn't you be able to do that with almost any program?  If I
> wanted to run the above in an 80x24 frame at a particular X coordinate,
> how would I say that in Elisp?

Here is one possibility perhaps (I don't use ERC).

Find out what the name of the buffer is that you want to have its own
frame.  Then just customize option `special-display-buffer-names' to
include that name.

(If there are multiple such buffers then either add each of their
names to that option value or, if the buffer names follow a simple
pattern, add a regexp that matches those names to the value of option
`special-display-regexps'.)

`C-h v' will tell you info about these user options.  It will also
tell you that Emacs considers them to be deprecated in favor of
(hyper-complex) option `display-buffer-alist'.  If you prefer to
wrestle with that option then go ahead.

To me, `special-display-buffer-names' is super simple, and it does
just what it says it does.  And of course "deprecated" does not
mean "unsupported" - it still works fine, thank goodness.  Anyway,
it's your choice.  If you need help with `display-buffer-alist',
hopefully someone else will have some advice.  My 2 cents is bet
on `special-display-buffer-names'.

By default, a "special-display" buffer is shown in its own frame.
Specifically, as `C-h v special-display-buffer-names' tells you, it:

 "displays the buffer in a way specified by `special-display-function'.
 `special-display-popup-frame' (the default for `special-display-function')
 usually displays the buffer in a separate frame made with the parameters
 specified by `special-display-frame-alist'.

So try customizing option `special-display-buffer-names'.  You can
also customize `special-display-frame-alist', if you want the frame
to have certain properties (e.g. different background color or whatever).



  parent reply	other threads:[~2015-07-18  5:22 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-18  3:21 launch a program in an arbitrary frame Hikaru Ichijyo
2015-07-18  4:12 ` Vaidheeswaran C
2015-07-18  8:29   ` Emanuel Berg
2015-07-18  4:18 ` Vaidheeswaran C
2015-07-18  5:22 ` Drew Adams [this message]
2015-07-18  8:14 ` Emanuel Berg
     [not found] ` <mailman.7087.1437207364.904.help-gnu-emacs@gnu.org>
2015-07-18 15:53   ` Hikaru Ichijyo
2015-07-18 16:35     ` Eli Zaretskii
2015-07-18 17:06     ` Óscar Fuentes
     [not found]     ` <mailman.7100.1437237353.904.help-gnu-emacs@gnu.org>
2015-07-18 17:12       ` Hikaru Ichijyo
2015-07-18 19:26         ` Emanuel Berg
     [not found]         ` <mailman.7109.1437247711.904.help-gnu-emacs@gnu.org>
2015-07-18 22:09           ` Hikaru Ichijyo
2015-07-18 22:45             ` Drew Adams
     [not found]             ` <mailman.7117.1437259681.904.help-gnu-emacs@gnu.org>
2015-07-18 23:28               ` Hikaru Ichijyo
2015-07-18 23:47                 ` Emanuel Berg
     [not found]                 ` <mailman.7122.1437263415.904.help-gnu-emacs@gnu.org>
2015-07-19  0:03                   ` Hikaru Ichijyo
2015-07-19  0:32                 ` Drew Adams
2015-07-19  7:15                   ` Emanuel Berg
2015-07-19 13:03                     ` Drew Adams
     [not found]                   ` <mailman.7140.1437290215.904.help-gnu-emacs@gnu.org>
2015-07-19 10:40                     ` Pascal J. Bourguignon
     [not found]     ` <mailman.7101.1437239201.904.help-gnu-emacs@gnu.org>
2015-07-18 17:47       ` Hikaru Ichijyo
2015-07-18 19:18     ` Emanuel Berg
     [not found]     ` <mailman.7108.1437247198.904.help-gnu-emacs@gnu.org>
2015-07-18 22:01       ` Hikaru Ichijyo
2015-07-18 22:56         ` Emanuel Berg
2015-07-18 23:39           ` Emanuel Berg
     [not found]           ` <mailman.7120.1437262864.904.help-gnu-emacs@gnu.org>
2015-07-18 23:51             ` Hikaru Ichijyo
2015-07-18 23:58               ` Emanuel Berg
     [not found]               ` <mailman.7124.1437264614.904.help-gnu-emacs@gnu.org>
2015-07-19  0:55                 ` Hikaru Ichijyo
     [not found]         ` <mailman.7118.1437260312.904.help-gnu-emacs@gnu.org>
2015-07-18 23:32           ` Hikaru Ichijyo
2015-07-18 23:42             ` Emanuel Berg

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=70d9811c-76aa-4eb1-98a9-15c71e2c89c9@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ichijyo@macross.sdf.jp \
    /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.