From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: RE: Request for pointers and advice: displaying several buffers inside a single window Date: Sat, 11 Apr 2020 03:19:31 +0800 Message-ID: <87mu7jxi64.fsf@localhost> 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 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dim1212k@gmail.com, adam@alphapapa.net, casouri@gmail.com, emacs-devel@gnu.org To: Drew Adams , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 10 21:23:53 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 1jMzFo-000RGo-4M for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 21:23:52 +0200 Original-Received: from localhost ([::1]:38100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMzFn-0003rB-6S for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 15:23:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32834) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMzFF-0003LY-45 for emacs-devel@gnu.org; Fri, 10 Apr 2020 15:23:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMzFD-0008Qd-UR for emacs-devel@gnu.org; Fri, 10 Apr 2020 15:23:17 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:43679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMzFB-0008P0-VY; Fri, 10 Apr 2020 15:23:14 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id x26so178295pgc.10; Fri, 10 Apr 2020 12:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=HELMqMp2IuJCeNikbp4ok1wZUZgOfbc4N2PmUyTv93o=; b=sN1x2vUDVerqVG0fRMKySQn1PMAGUeO9ne47YZY0awhPCIu5OdN1+Th+UJNvTh5n6Z TM+DEVJ0TdJgJ0pcp52xiRRd02Z27zs4kNOIakwp6LhfuQBEIBDzqWAq3V1flQwvFowg rDyiX85PElOENFtUgoiz5vzHnJ7fgCmM/W/fsC+zJKsNdzpXh89jeTqFJhJRlRYyhfC5 F2hscVrI6TiYOGC+2UhFdvZPbshwzYLhTpJ9dInGqIA35poMEJLy0Lzpu1XyJ+im9dHR yXiRPiKE0oqGgAntnD5nT4RAXMEyRCvSasdnAGCtpvY25TDpxprhN5kTVSpBPShXclwU tQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=HELMqMp2IuJCeNikbp4ok1wZUZgOfbc4N2PmUyTv93o=; b=eAuQ4qQAfuDZ0InRAAHG99xauZUIQs/Twm+7TCRGgP92kSEY3GOGAnXAVt2Ve/jy9Q 7iF/KtKC1vc/de21MRztuG8Y5a+zVw+L9iU5l19A8+cnoOWIyJ7/44GkavJNnvCqhqdC Fe8n9/fOxX/c3xWU/jYbH5j4cjVVnWk8Bigw09bK0X8Ol0Rd67C7HmnxGqKjXcDd/eeD 4HM/yI8743ZllGNuORwzXST/+Q2bS+S2K5QoEbAQ7JiSXacBpPwjWg66ARwZ8M/PL+1g v+JxPGS5zw5wTujDu1suyL5oUdR9lQCjUhdFRPu4dACj0yAZlTZhC4Fve/tiMIT74fLV qwtA== X-Gm-Message-State: AGi0Pua9+OmmJeIevUWs4LqO8Jk1HXEkX2W38x08j20w1fvy+5zlrv/v WanV1jVk+T2+r5bAvZ3uhJ8= X-Google-Smtp-Source: APiQypLnAH2qDig6qHkXooJLysPM6/SE8CWlUQJEjdNI4Zhls/ihcS39xG3QmYypytVqKnb9xNcIbg== X-Received: by 2002:aa7:83c5:: with SMTP id j5mr6559466pfn.100.1586546592754; Fri, 10 Apr 2020 12:23:12 -0700 (PDT) Original-Received: from localhost ([45.35.9.245]) by smtp.gmail.com with ESMTPSA id 18sm2448212pfv.118.2020.04.10.12.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 12:23:12 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::533 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:246796 Archived-At: > FWIW, this is what library zones.el offers. The zones ("segments") in a given set of zones can be for the same buffer or different buffers. Thanks for the reference. I tried zones once, but abandoned exactly because I was looking for showing all zones at once (not cycling through them). > But if your question/request is about displaying text from different buffers in the same Emacs window then zones.el won't help you. Yep. Displaying and editing (with synchronised changes in those buffers). Drew Adams writes: >> I would rather say that "segment" is a text between two markers in an >> arbitrary buffer. Just like narrowing. >> >> > If so, how is this different from narrowing in indirect buffers that >> > we have now? >> >> 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 list 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 given set of zones can be for the same buffer or different buffers. > > But if your question/request is about displaying text from different buffers 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 -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg