all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Matt Price <moptop99@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: naming and/or directly addressing particular windows?
Date: Tue, 04 Dec 2012 10:01:26 +0100	[thread overview]
Message-ID: <50BDBBE6.8080504@gmx.at> (raw)
In-Reply-To: <CAN_Dec8Yey2+w09Ub4bcqgJQ0sPUMoDj6E5SfHhVJLLgjjVSNg@mail.gmail.com>

 > in the 'let' expression above, how would I replace \\*foo\\* and *foo*
 > with a regular expression that will match, say,
 >
 > (concat (buffer-name) "-" [:digit:])

Try ".+-[0-9]$" instead of "\\*foo\\*" and "foo-1" instead of "*foo*".

Note that if the purpose of your functions is to display buffers always
approximately at the same location within an Emacs frame, then side
windows (see the function `display-buffer-in-side-window' and the
variables `window-sides-vertical' and `window-sides-slots') might be
more appropriate.

In your case there would be a centered "main window", the "guide window"
at the left and the "metadata window" at the bottom of the frame.

In any case be always aware of two issues:

(1) A user may delete any window at any time (with a few restrictions).
     So be prepared that you may have to re-create your windows and give
     them a name for showing the buffer of your choice.

(2) Emacs and other applications might reuse or split a window at any
     time, for example, to display information like a warning or a
     backtrace.

You can fix some of these by making windows dedicated and/or fixing
their sizes but doing that is not entirely trivial.

martin




  parent reply	other threads:[~2012-12-04  9:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02 17:46 naming and/or directly addressing particular windows? martin rudalics
2012-12-03 12:38 ` Matt Price
2012-12-03 17:42   ` martin rudalics
2012-12-03 19:58     ` Matt Price
2012-12-03 20:58       ` Jambunathan K
2012-12-04 13:52         ` Matt Price
2012-12-04  9:01       ` martin rudalics [this message]
2012-12-05 16:11         ` Matt Price
  -- strict thread matches above, loose matches on Subject: below --
2012-12-01 15:22 Matt Price
2012-12-01 15:59 ` Drew Adams
2012-12-02  5:31   ` Matt Price
2012-12-01 16:58 ` Eduardo Ochs
2012-12-02  2:41   ` Matt Price

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=50BDBBE6.8080504@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moptop99@gmail.com \
    /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.