From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: Adding indent-bars to ELPA Date: Wed, 24 Jul 2024 15:32:21 -0400 Message-ID: <3769876B-384A-4882-8228-E6CA9DF9D22A@gmail.com> References: <864j8e7gl5.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 24 21:32:43 2024 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 1sWhj7-0009nv-RC for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jul 2024 21:32:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWhiw-0004En-T5; Wed, 24 Jul 2024 15:32:30 -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 1sWhiv-0004Ec-9H for emacs-devel@gnu.org; Wed, 24 Jul 2024 15:32:29 -0400 Original-Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWhis-0001wP-Qv; Wed, 24 Jul 2024 15:32:29 -0400 Original-Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5c6661bca43so146921eaf.0; Wed, 24 Jul 2024 12:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721849543; x=1722454343; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pCUd/kcNj2DpRKVGsAa7d+5CYDgiLASIlUzQB7ytqbs=; b=KTbbyrfmoV9DMO/pozWrmVnMcOpcP4wNEnEZNvUN3k8yl9HRBlzWhvlrQVgmgW47ea TrcaD5motaN3uEN3JrFoCaDDnPVMN/EzX2/L2ZPwDTL2dJDjHuEEK5p0IFK+dc5wCWS/ 6PIEXCrN/tPRIJg20w7dZqy9/52Sj7DS9FqI/gnH6WUZxv72n4HH02SZTyANtv0qMHni Ay/TF8lDQH71RZC0zLST7UGT5tsWmjDqIcn8Xd0cIxUmGCOvdqHf4b24hW46UeNtN/pb cgFs/vwTVfIN8cHRwKZfY7RX/4+cbHz13ANoU+FUbOFP3+AkSX0ohofW0nNixRW3zMFi fVcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721849543; x=1722454343; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pCUd/kcNj2DpRKVGsAa7d+5CYDgiLASIlUzQB7ytqbs=; b=ws5cnjWp/Gruircdwa+vnbPpxLwk9SjdlVqBhaKb9J98l8SJFpgbreBbRz2oMUUbyo z4saWwtEa+w5nUfzEH7MDyhJkIOWL7eR2zOKUSCXT6eY7fvzZZNoz6P3rDnLyIzjRKDO nzfAcBFC9WqEvGwJ9G0ErsSxbTsW+zNPuKTMUsDi6KUo1exk/uJGcg/Fy/SayHHXcfH+ OMa/kes8DHZXehAur0RtqwA7gisEddH8uNZq9wJPiHW/mOizmTX0wc/CrQKzxBmjkQe2 X08PmJzKaYc6wqDf0jmpBPx8D5q8ehv5XhsAjMG0ZNU/lv9TzSAupWtmp2tk04NWqaWc U8dw== X-Gm-Message-State: AOJu0Yywh7/K+GDKYXla12sImkavolNk8UyLeklnHnbRWkJV/vVR/A0O TSSQjXtZDZ/yXqDxdHMyUkvspW/V7JKPLsDGDoDsBjQeMzKfuFuOLy8FQQ== X-Google-Smtp-Source: AGHT+IFLZusyKaHv7Au4F02KxOqA0Y7TvPM4JjMGoMzQQw5qyiLFFFvW10qb2qO8xR6z8c7RH1RhaQ== X-Received: by 2002:a05:6820:4c0a:b0:5c6:9320:53a3 with SMTP id 006d021491bc7-5d5ae7f284emr961248eaf.4.1721849543462; Wed, 24 Jul 2024 12:32:23 -0700 (PDT) Original-Received: from smtpclient.apple ([198.30.180.20]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a198fbf7f9sm607646285a.49.2024.07.24.12.32.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2024 12:32:22 -0700 (PDT) In-Reply-To: <864j8e7gl5.fsf@gnu.org> X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::c36; envelope-from=jdtsmith@gmail.com; helo=mail-oo1-xc36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322060 Archived-At: > On Jul 24, 2024, at 3:08=E2=80=AFPM, Eli Zaretskii = wrote: >=20 >> From: JD Smith >> Date: Wed, 24 Jul 2024 14:33:16 -0400 >>=20 >> I propose the addition of indent-bars to ELPA. >>=20 >> https://github.com/jdtsmith/indent-bars=EF=BF=BC >> jdtsmith/indent-bars: Fast, configurable indentation guide-bars for = Emacs >> github.com >>=20 >>=20 >> This mode provides highly configurable indentation guide bars using = stipple or character display. Recent versions add optional = treesitter-enabled local "scope" for additional focus. There are many = options to influence the behavior and appearance of the bars. >=20 > Interesting feature. FWIW, I think this should be built-in, and > implemented in the display engine, not as a Lisp add-on. Something to build towards for sure. Perhaps internal display engine = support for all the heavy graphics lifting, and lisp config for = treesitter etc. would be an interesting model. In any case it's working = well now for lots of users for over a year, so ELPA seems like the next = step. > It seems to work well, but has some problems with RTL text. To see > this, visit xdisp.c, turn on the mode, then go to around line 1900, > set bidi-paragraph-direction to 'right-to-left', and scroll up and > down several times: you will see broken bars, both with > indent-bars-prefer-character nil and non-nil. Hmm, I can say it's definitely never been tested with RTL. Is that a = mode people typically use for column-oriented content like code or = config files? Do you mean broken bars in the top partially displayed = line? I don't see any artifacts in RTL other than this, but I can't = rule out build-dependent issues of course.=