From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Request for pointers and advice: displaying several buffers inside a single window Date: Fri, 10 Apr 2020 12:01:08 -0700 (PDT) Message-ID: References: <83a73swwd7.fsf@gnu.org> <87wo6nxsjz.fsf@localhost> <83d08fmgul.fsf@gnu.org> <87tv1rxmgc.fsf@localhost> <83a73jmcyo.fsf@gnu.org> <87pncfxk4m.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="11340"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dim1212k@gmail.com, adam@alphapapa.net, casouri@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 10 21:01:56 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 1jMyuZ-0002pX-KP for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 21:01:55 +0200 Original-Received: from localhost ([::1]:37988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMyuY-0006BS-MP for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 15:01:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58407) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMyu0-0005dQ-Et for emacs-devel@gnu.org; Fri, 10 Apr 2020 15:01:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMytz-0008Uy-2l for emacs-devel@gnu.org; Fri, 10 Apr 2020 15:01:20 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:59056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jMytx-0008Td-9t; Fri, 10 Apr 2020 15:01:17 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03AIx7wu057443; Fri, 10 Apr 2020 19:01:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=YFbLyW2Nk3D3NOfEcScltL9uSxLGbzljgyulHaDFc7M=; b=Je9FEWIGxup7iVsPr6hyPoLQvw9juIyjVPBquQjwz0m4ftZSWFhXspQlYLV/RXw1RtqJ dnMEhO0QFoIVF47tPmmKraFIvu9PEApDAS4I/BnAMO6BmztZRcbEXTKGMI9KG/e1qbSy Or402FZ6Hn104r+LDwho8OKAXVldxy8waAlx4wdmgnH9//kg/VF6Nj+gPACrsLrITRnC RliMmYf94bKrvM4rDSuNqkCTn+f3aQNHuSb1UPDbFyL6D+naurDy1XHHXvYdxr9765XB c4z4dVOl2gBsIagBr7ymMXzCqAjwi84ijhWnshOJ+7zJe1nk4n/qoTGCwRb20nO8Z8nN Yg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 309gw4kk70-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Apr 2020 19:01:11 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03AIuqDZ024120; Fri, 10 Apr 2020 19:01:11 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 309ag8cjdc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Apr 2020 19:01:10 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03AJ19PH003822; Fri, 10 Apr 2020 19:01:09 GMT In-Reply-To: <87pncfxk4m.fsf@localhost> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9587 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 malwarescore=0 phishscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004100142 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9587 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1011 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004100142 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.85 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:246793 Archived-At: > I would rather say that "segment" is a text between two markers in an > arbitrary buffer. Just like narrowing. >=20 > > If so, how is this different from narrowing in indirect buffers that > > we have now? >=20 > The difference is that text in a single buffer must not always be > coming from a single buffer (possibly narrowed), but can as well be a lis= t of > "segments". Instead of storing all the buffer text in a single char > array, the buffer text could be represented by a list of "segments". In > a normal buffer, this list will just contain a single element pointing > to the buffer's char array containing its text. However, the list can > be extended with "segments" from other buffers. FWIW, this is what library zones.el offers. The zones ("segments") in a gi= ven set of zones can be for the same buffer or different buffers. But if your question/request is about displaying text from different buffer= s in the same Emacs window then zones.el won't help you. See also library narrow-indirect.el. https://www.emacswiki.org/emacs/download/zones.el https://www.emacswiki.org/emacs/download/narrow-indirect.el