From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mohsin Kaleem Newsgroups: gmane.emacs.bugs Subject: bug#48901: [kisara.moe] Re: [kisara.moe] Re: bug#48901: [kisara.moe] 28.0.50; Support text-based fringe contents alongside bitmaps Date: Tue, 15 Jun 2021 23:10:33 +0100 Message-ID: <877diulqxy.fsf@kisara.moe> References: <875yyp7qfk.fsf@kisara.moe> <83y2blg59g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5530"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48901@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 16 00:13:09 2021 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 1ltHIz-0001JS-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Jun 2021 00:13:09 +0200 Original-Received: from localhost ([::1]:38552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltHIy-00006N-DB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Jun 2021 18:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltHIs-00005R-Gj for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 18:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltHIs-0000Tk-8w for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 18:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltHIs-0005Ak-3s for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 18:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mohsin Kaleem Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jun 2021 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48901 X-GNU-PR-Package: emacs Original-Received: via spool by 48901-submit@debbugs.gnu.org id=B48901.162379514919845 (code B ref 48901); Tue, 15 Jun 2021 22:13:02 +0000 Original-Received: (at 48901) by debbugs.gnu.org; 15 Jun 2021 22:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:50981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltHIL-0005A1-8z for submit@debbugs.gnu.org; Tue, 15 Jun 2021 18:12:29 -0400 Original-Received: from 119.ip-51-38-65.eu ([51.38.65.119]:52786 helo=mail.kisara.moe) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltHIJ-00059r-0T for 48901@debbugs.gnu.org; Tue, 15 Jun 2021 18:12:27 -0400 Original-Received: from mk-desktop (97e2b34b.skybroadband.com [151.226.179.75]) by mail.kisara.moe (Postfix) with ESMTPSA id 4E057A186A; Wed, 16 Jun 2021 00:12:25 +0200 (CEST) In-Reply-To: <83y2blg59g.fsf@gnu.org> 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:208601 Archived-At: Eli Zaretskii writes: >> From: mohsin kaleem >> Date: Mon, 07 Jun 2021 14:30:23 +0100 >> >> >> This is more a feature request than a bug-report. At the moment the >> recommended way to show extra information about certain lines in a >> buffer is the fringe. This is done by defining a fringe-bitmap and then >> having that render onto the fringe, however this is a graphical >> only solution and terminal frames don't support this. Some packages such >> as flycheck let you work around this by rendering what you would've >> rendered on the frame, onto the margin which supports rendering regular >> strings (alongside any other string-properties such as faces) that can >> be visible in both terminal and GUI frames. >> However as a solution that isn't ideal, for one margins weren't designed >> for this purpose and for another there doesn't seem to be a way to set >> the background or other properties of a margin to make it resemble the >> fringe (in my case I'd like the background of the margin to match >> the fringe background but only for the left margin where I will show the >> fringe indicators). There's also the issue with interference between >> this representation and other packages such as olivetti that use the >> margin to center text. >> I'd like to recommend we support rendering both text and bitmaps onto >> the fringe, rendering nothing (or perhaps a block element) if a package >> tries to render a bitmap on a terminal frame. > > Sorry, I don't understand: you begin by saying that fringe bitmaps > have a disadvantage for TTY frames, and end by requesting a different > features with the same disadvantage? Or what did I miss? Dear Eli, Apologies I seem to have misunderstood the usage or implementation of fringes vs. margins. In retrospect the distinction isn't all that important. I've tried using the margin based approach for the past few days and the only issue I still have left is that there's no-way to specify the default face for the margin (something akin to the `fringe' face). Ideally I'd like to be able to do so separately for the left and right margins (as I really only intend to use one of them), but otherwise the rest of the issues I raised in my original email can be disregarded. What are your thoughts on having a dedicated face for the margin? Thank you, --- Mohsin K.