unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: `window-adjust-process-window-size-function' and process buffer windows
Date: Fri, 29 Apr 2016 15:54:57 -0700	[thread overview]
Message-ID: <5723E641.3010600@dancol.org> (raw)
In-Reply-To: <m21t5ot4gy.fsf@newartisans.com>


[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]

On 04/29/2016 03:50 PM, John Wiegley wrote:
> Hi Daniel,
> 
> I was wondering if I could ask you far the rationale behind the customization
> variable `window-adjust-process-window-size-function', and a bit more
> information about what "process buffer windows" are, and how they relate to
> process buffers, and other windows.  I don't think we have any clear rationale
> for this feature in any documented place yet.
> 

We want to communicate to subprocesses how much room they have available
to display their content. We send them this information by using
TIOCSWINSZ, which ends up generating SIGWINCH. Suppose we have a
subprocess associated with a buffer, and that buffer is displayed in two
Emacs windows, one larger than the other. Do we tell the subprocess that
it has the width of the smaller or the width of the larger available for
its output? The choice isn't immediately obvious, so it can be
configured the usual way with
window-adjust-process-window-size-function. The above discussion is
largely repeated in the docstring for that variable.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-04-29 22:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 22:50 `window-adjust-process-window-size-function' and process buffer windows John Wiegley
2016-04-29 22:54 ` Daniel Colascione [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

  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=5723E641.3010600@dancol.org \
    --to=dancol@dancol.org \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

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

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).