From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitrii Korobeinikov Newsgroups: gmane.emacs.devel Subject: Re: [SPAM UNSURE] Request for pointers and advice: displaying several buffers inside a single window Date: Mon, 6 Apr 2020 02:35:19 +0600 Message-ID: References: <86o8s8e81d.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="107964"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake , emacs-devel To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 05 22:36:07 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLBzy-000Rzh-TJ for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 22:36:06 +0200 Original-Received: from localhost ([::1]:51560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLBzx-0005rS-Vs for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 16:36:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLBzS-0005M9-Bd for emacs-devel@gnu.org; Sun, 05 Apr 2020 16:35:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLBzQ-0003qb-Eo for emacs-devel@gnu.org; Sun, 05 Apr 2020 16:35:33 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:32992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLBzP-0003pm-VA for emacs-devel@gnu.org; Sun, 05 Apr 2020 16:35:32 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id a25so15042478wrd.0 for ; Sun, 05 Apr 2020 13:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HEMbRI3bJCxvXTaJRvmrfAalNYaHnt7Q73BwzpRB9dA=; b=kb2nYsNt/6ef1Ozq8QiYmjDd/p5PAj8Il53QywDl6jbCnn/F08XGHI/b1tsvhaotzR KrysVUGZl8YEII8qg6G6BtZdEJSxp40P/UfDRTnn/8fYxPhaMiv0FqvdF8yp9mjTMX8L VPp9bvtR9ENz5EOwe7OnLYaYg2zIZQ+56M15VG8q9nuQGS+u40n5I7UMfgl8V+5Oodd+ /NylTovVSY/2kzjEh9fdv3QlaXcA2r6Q/Vzicg8WcdgGQqEXQ8slFIrW4pSR02K1MN/B EXAkMVq+2u5fpF/t5hV4d7p1ioyRaZ1qb7OF9n307z6v3r0xJKaYmfYKPrsp25qXo2an oT9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HEMbRI3bJCxvXTaJRvmrfAalNYaHnt7Q73BwzpRB9dA=; b=X/dJFrivshDAUxZ8ahhaC3lpAbUt8rPSZk54kqYPcVXxp4PDZdeku4shoWEpS64bqC mgJLcrJX57wE1yi12vTIMHpKxcnqgGrYiX/K6hB7BbUWHt+qXdL3xlyIXD3eweJQmT8y i5TpTivyxXTZXVxfwWsOjsH+2pFfbonYRO14lcSSAJgEqQDqtKzxWUPF/YSnLwcbOCEk MPuMz4rVjcz7tBVJ2rt99TKJUnSLEG0nkgGodKj0WH7Fn/i6zYFMo5/Axtew6kHdqAT9 JABy7lRhnielPh+TexQXHPM27kfjBFWHNoEKLCGwMV0owrKAPG6xpRTTve6uhZAWYuXZ g4kA== X-Gm-Message-State: AGi0Pub/RYHb4iyV9/5aWGCsr1n+h/GtwGZYs+Fd/HkPFZ0ViEDVexjT OpGaWApRleM7Gd2VWMeDaakWyAjknUxojb/iVtU= X-Google-Smtp-Source: APiQypKAi22cKvK5KGcXiIfgL2icN3y1kQsqWIE6yIm2hirC7V9a2FqaCVdT1KcD5N1nE3NcEgcsNgPUE5q+h/i4MGs= X-Received: by 2002:adf:e98a:: with SMTP id h10mr20818753wrm.370.1586118930764; Sun, 05 Apr 2020 13:35:30 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246492 Archived-At: I don't know why, but I never received the email from Stephen in my inbox (Robert's I have). I replied via "reply via e-mail to" button on the tracker, but my reply was filed into a seperate thread [1]. I wonder how not to make that happen again... But, first of all, sorry, I think I have miscommunicated my general intent in the OP. What I meant to say is that in the end I will want the two buffers behave as if they were two regions of the same master buffer (implying, for instance, the possibility of point seamlessly jumping across their borders), and I thought that ommiting the interactivity part and hacking up the renderer would be a good start. That, admittedly, wasn't very far-sighted of me. And now I am beginning to embrace the inevitability of having to extend upon the gap buffer. [1] https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00260.html =D0=B2=D1=81, 5 =D0=B0=D0=BF=D1=80. 2020 =D0=B3. =D0=B2 19:18, Robert Pluim= : > > >>>>> On Fri, 03 Apr 2020 10:30:38 -0800, Stephen Leake said: > > Stephen> Dmitrii Korobeinikov writes: > >> Hi all, > >> > >> I want to explore the feasibility of displaying two (indirect) buf= fers > >> inside a single window, one after another. Each buffer has to look > >> like it's rendered in its own mode. For the starters, each buffer = can > >> start on its own new line in the window. No interaction w/ text is > >> required for now. > > Stephen> This would look the same as two windows each displaying one = buffer, if > Stephen> you could eliminate the mode line in betweeen them. That sho= uld be much > Stephen> easier. > > (setq mode-line-format nil) > > and then make the second window display an indirect buffer to the buffer > displayed in the first window, so you can change the major mode, then > enable follow-mode so that scrolling one scrolls the other. Untested :-) > > Stephen> Hmm. Currently, the bottom line in a window is only partiall= y displayed. > Stephen> So you'd also have to adjust the top window height to allow = displaying > Stephen> the full last line. Or not; depends on what you want. > > I think that only happens if you have one or more of the various > *pixelwise* variables non-nil; the default is to do everything in > multiples of line-height. > > Robert