From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#71284: 30.0.50; [PATCH] Add support for outline-minor-mode to Eshell Date: Thu, 06 Jun 2024 09:19:52 +0300 Organization: LINKOV.NET Message-ID: <865xumpp87.fsf@mail.linkov.net> References: <048207b3-4d91-34cd-8e2d-ccf41b7bd832@gmail.com> <868qzq1n3r.fsf@mail.linkov.net> <86frtvrgtn.fsf@mail.linkov.net> <52b77c3b-f556-b436-c8c5-1f157681fa53@gmail.com> <86o78i4j8u.fsf@mail.linkov.net> <28afde26-8d83-8b5f-b617-a2797ea5e1fc@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6936"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 71284@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 08:25:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sF6Yj-0001fN-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 08:25:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF6YL-0000tB-2x; Thu, 06 Jun 2024 02:24:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sF6YJ-0000sj-KI for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:24:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sF6YJ-0001BT-CE for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:24:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sF6YX-00016O-Nv for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 06:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71284 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71284-submit@debbugs.gnu.org id=B71284.17176550634128 (code B ref 71284); Thu, 06 Jun 2024 06:25:01 +0000 Original-Received: (at 71284) by debbugs.gnu.org; 6 Jun 2024 06:24:23 +0000 Original-Received: from localhost ([127.0.0.1]:41720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF6Xu-00014R-IB for submit@debbugs.gnu.org; Thu, 06 Jun 2024 02:24:22 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF6Xt-000147-Gi for 71284@debbugs.gnu.org; Thu, 06 Jun 2024 02:24:21 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 44DE41C0004; Thu, 6 Jun 2024 06:23:59 +0000 (UTC) In-Reply-To: <28afde26-8d83-8b5f-b617-a2797ea5e1fc@gmail.com> (Jim Porter's message of "Wed, 5 Jun 2024 18:52:15 -0700") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286660 Archived-At: >> The multi-line headers have such disadvantage that the outlines >> are not compact anymore. Also multi-line headers might have >> more technial issues with displaying an ellipsis at the end. > > Given that you mentioned a few other cases where multi-line headers might > be nice (assuming the number of lines is small), maybe it would make sense > to see what an implementation of that looks like. I'll see about writing > a patch for this. It would be nice to solve this long-standing problem. > (Another interesting thing I might try is to see if we could provide some > custom single-line abbreviation for multi-line headers. That would let us > have compact headers when they're collapsed, even if the "header" part is > really multiple lines when expanded.) Or maybe showing an outline should also show its pre-heading lines (maybe this would require adding e.g. outline-pre-header-regexp that matches the first line of such preface lines). This would be especially useful in cases when there are dozens of comment lines before the outline heading with the function name in programming language modes.