From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#56820: outline-minor-mode replacing the first character with an arrow Date: Wed, 7 Sep 2022 13:01:50 -0700 Message-ID: <482e7ec4-5ff8-e574-f30f-ca59249d3905@gmail.com> References: <87ilngmaei.fsf@gnus.org> <86wnaojst4.fsf@mail.linkov.net> <86mtbfdqdj.fsf@mail.linkov.net> <83ilm3ko51.fsf@gnu.org> <86edwotx6n.fsf@mail.linkov.net> <83tu5kii23.fsf@gnu.org> <86mtbcqx5u.fsf@mail.linkov.net> <83r10oih91.fsf@gnu.org> <86mtbbuj55.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5630"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, yilkalargawworkneh@gmail.com, 56820@debbugs.gnu.org To: Juri Linkov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 22:03:58 2022 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 1oW1HB-0001D4-8b for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 22:03:57 +0200 Original-Received: from localhost ([::1]:35716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW1HA-0004FP-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 16:03:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW1FK-0002Q6-VF for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 16:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW1FK-0001m2-M7 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 16:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oW1FK-0001ng-6R for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2022 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56820 X-GNU-PR-Package: emacs Original-Received: via spool by 56820-submit@debbugs.gnu.org id=B56820.16625809216916 (code B ref 56820); Wed, 07 Sep 2022 20:02:02 +0000 Original-Received: (at 56820) by debbugs.gnu.org; 7 Sep 2022 20:02:01 +0000 Original-Received: from localhost ([127.0.0.1]:56335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW1FJ-0001nR-9o for submit@debbugs.gnu.org; Wed, 07 Sep 2022 16:02:01 -0400 Original-Received: from mail-pj1-f53.google.com ([209.85.216.53]:42900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW1FG-0001nE-O3 for 56820@debbugs.gnu.org; Wed, 07 Sep 2022 16:02:00 -0400 Original-Received: by mail-pj1-f53.google.com with SMTP id n65-20020a17090a5ac700b001fbb4fad865so45144pji.1 for <56820@debbugs.gnu.org>; Wed, 07 Sep 2022 13:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:cc:to:subject:from:to:cc:subject :date; bh=U5BpV1lYzSbbOkr/EaBXGHyFhiBPpYALi/82+sRIX4w=; b=XsJ8cc7+jj+PDR09frPYz3or/oOgwyl0INEJZjbwcTZ4lz7ZBmSkfFiRHjndig8Xto GzaNMUMXjTPvmIwcb31+Hcj/w1UQZ1hz4lYDSxSbrYpp7pe94fTgUJJhqUcH0ZekE96F pWZcK4MdLEntLUjXQ0rbwr46tiPa1Fi2v+glBhFAoXk9yh9zCKO5o1jxAn73oTKIbGxc h2LU2Uz8jGeTBUCKsgq5+p8jCvoKOJ3MaQx/UYBJuSNTcWkru+FFLkZWXguldr4YYubk cvIYr4DdpfCj1xCXJtqLLDVow1ZuYLDwxvN1k+jM8jEWvBkDm68LqzbEWOAluLfPED4e /pmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:cc:to:subject:x-gm-message-state :from:to:cc:subject:date; bh=U5BpV1lYzSbbOkr/EaBXGHyFhiBPpYALi/82+sRIX4w=; b=EEv60bcm0jpbkijdpyTFZFnfVvP8gPR1A8JqlFVhuEpNaRUshIdlPi3HszxeKZilGw HAp7708pAwCeeonV4QWnZMFTs7fD2Zm2JmNeqrMzYwpUrsMlZ3Gyks2UCy8AZ6Z6L5bq +5JgNKVLyXG+6pEY/VK+Ezmy+pUTFDLE3db6inxyc4wvHqvFgyoBcjZdZ1Dia3Snou2B UVxIH0gfmgYu9tHiD5anWWocq+JeD9NjevHaCeiRXkDDjpTruQBWWqseOrJK6Ws2ZIxh GdlipIam6wd2VKXbABgYaLo14VTnICkaM8QmpHYhF08pU+6zMNumaklaJBesRxiNNCVo OH8A== X-Gm-Message-State: ACgBeo22yKQwxJJAty90lmsAxRI3BI5IQseuDbKMa5v9LEgcHp0y+JXE mkCPvwu+2m9qAgllFmozWukylMo6O6A= X-Google-Smtp-Source: AA6agR61AMXA1FKo4K8OzfW2UtoVTr0xnPBnAquOOrMYXOk/UJvZQCVFOiORwcNrw/g9wYKTWt6Fsw== X-Received: by 2002:a17:90a:e7cc:b0:1fe:3c5c:e70 with SMTP id kb12-20020a17090ae7cc00b001fe3c5c0e70mr138336pjb.195.1662580912552; Wed, 07 Sep 2022 13:01:52 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id m16-20020a170902bb9000b001743ba85d39sm12622677pls.110.2022.09.07.13.01.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Sep 2022 13:01:51 -0700 (PDT) In-Reply-To: <86mtbbuj55.fsf@mail.linkov.net> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:241806 Archived-At: On 9/7/2022 11:36 AM, Juri Linkov wrote: >> This is supposed to be the Emacs answer to the various IDEs being able >> to fold code, right? Then let's try to make it look like in those IDEs. > > This is an interesting question. I tried to search how outlines look > in other IDEs, and found such a screenshot for VSCode. > > IIUC, here the first column with a red circle for a breakpoint > corresponds to Emacs fringes, the second column with line numbers > is the same as display-line-numbers-mode, and the third column is > for outline arrows. This is a good example of a potential conflict with putting the outline buttons in the fringe: line 10 has both an outline arrow *and* a breakpoint. (Emacs usually uses the fringe for breakpoints.) As far as I know, there's no way to show multiple fringe icons on a single line (other than using the right fringe, which would be odd in this case). In this case, it looks like gdb-mi.el supports putting breakpoint icons in the margin, so the conflict could be avoided that way. Still, I'm not sure what the general answer should be. How should Emacs present buttons like this in a way where they don't conflict? For example, should there be a guideline about what kinds of icons/buttons "belong" in the fringe, and what kinds belong elsewhere? Note: this guideline could just inform the default configuration, and then users could customize things if they have different preferences. Or maybe the fringe should be enhanced in some way where it can handle multiple fringe icons in the same position. I'm not sure how that would work though...