all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Usage examples of dedicated windows and popup frames?
Date: Fri, 08 Jul 2011 19:54:01 +0200	[thread overview]
Message-ID: <8762nc8xqe.fsf@member.fsf.org> (raw)
In-Reply-To: <jwvliw8sqi7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 08 Jul 2011 12:11:35 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

Hi Stefan,

>>   (setq pop-up-frames 'graphic-only
>>         display-buffer-reuse-frames t)
>>
>> Most of them were opened for showing completion possibilities, but
>> after I've finished completion they became useless.  It would be
>> great if those would be closed automagically...
>
> "They" should be iconified automatically and only one frame should be
> (re-)used for *Completions*.

Hm, not what I get.  With emacs -Q updated yesterday:

1. Goto *scratch* and eval the form above.

2. (def<TAB> ==> a comletion frame pops up *and gets input focus*

3. C-x 5 o to get back to the original frame

4. (defalia<TAB> ==> defalias is the sole completion, and at that point
   in time, the completion frame shows *scratch*, too, just like the
   frame I'm typing in.

Oh, now I did another completion, and this time the completion frame was
indeed iconified.  Unfortunately, it doesn't come up automatically when
completing again.  Doing it manually shows that it contains the new
completion list.

Another annoyance (but not Emacs' fault) is that the usability highly
depends on the window manager.  Here, using GNOME3 the window placement
is not that advanced.  The popup frames often appear on top of the emacs
frame I'm typing in.

So decided to use pop-up-frames by default, but keep completion and
other temporary stuff (buffers starting/ending with *) in the current
frame:

  (setq pop-up-frames 'graphic-only
        display-buffer-reuse-frames t
        special-display-regexps '(("^\\*.*\\*$" pop-to-buffer-same-frame)))

Using that (emacs -Q), completion now pops up a new window showing
*Completions*, and also a new frame showing the same buffer...

If I understand the docs correctly, then I could also use

  (setq special-display-regexps '(("^\\*.*\\*$" ((same-frame . t)))))

but with that, completions still appear in a popup frame and no popup
window is shown at all.

Bye,
Tassilo



  parent reply	other threads:[~2011-07-08 17:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 14:19 Usage examples of dedicated windows and popup frames? Tassilo Horn
2011-07-08 14:47 ` Richard Riley
2011-07-08 14:49 ` John Yates
2011-07-08 16:11 ` Stefan Monnier
2011-07-08 16:34   ` Drew Adams
2011-07-08 16:51     ` Stefan Monnier
2011-07-08 17:38       ` Drew Adams
2011-07-08 17:54   ` Tassilo Horn [this message]
2011-07-08 18:55     ` Stefan Monnier
2011-07-09 13:00       ` martin rudalics
2011-07-09 15:03         ` Drew Adams
2011-07-10  0:43           ` chad
2011-07-10  9:00             ` martin rudalics
2011-07-10  9:43             ` Drew Adams
2011-07-12 17:47               ` chad
2011-07-12 18:55                 ` Drew Adams
2011-07-13  6:24                 ` martin rudalics
2011-07-13 23:09                   ` chad
2011-07-10 23:45           ` undisplay temporary dialog buffers when done [was: ... dedicated windows and popup frames] Drew Adams
2011-07-09 17:22         ` Usage examples of dedicated windows and popup frames? Tassilo Horn
2011-07-10  9:00           ` martin rudalics
2011-07-10  9:39             ` Tassilo Horn
2011-07-10 15:30               ` martin rudalics
2011-07-10 16:00                 ` Tassilo Horn
2011-07-10 21:13                   ` Drew Adams
2011-07-08 16:11 ` Drew Adams

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=8762nc8xqe.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.