From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bigger fringe bitmaps Date: Thu, 17 Mar 2022 11:30:25 +0200 Message-ID: <83lex9gc3y.fsf@gnu.org> References: <87sfrhu6et.fsf@wavexx.thregr.org> <87h77xpgg6.fsf@yahoo.com> <87wngtf2hb.fsf@wavexx.thregr.org> <83mthpgfao.fsf@gnu.org> <87sfrhklob.fsf@wavexx.thregr.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 17 10:33:33 2022 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 1nUmVh-0008u6-E0 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 10:33:33 +0100 Original-Received: from localhost ([::1]:41572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUmVg-0002Ga-3E for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 05:33:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUmSv-0001MY-7M for emacs-devel@gnu.org; Thu, 17 Mar 2022 05:30:43 -0400 Original-Received: from [2001:470:142:3::e] (port=52716 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUmSu-00079M-Lh; Thu, 17 Mar 2022 05:30:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dz+hQamggldJqbCHreDB7CJ/bIMFhak6tgwdVVauX54=; b=BQy/RWdqBQ13 lpJHy9gAS3mnT0dsjVRJ4Z/T0qXbjL+NO23N5SYMmamIFMiJ3CPRXKHn6dVBb65b9to1xqvH1H80M sCOOmSbS8pxwnIdICyXCHn1h8hh/5b1q4hU6wn5dano3SiyWfqTQ7cuhLEGeWWKWQOd/8RN9LPL7c VeJb341EZUIQ6NaQgu4QJKhVo0che2WBi8nIa/IlU1i5h4ojRmKIyDww7AE8byzucKyH3D1kies9e 8/pgH1szlfPevm3Bw2OVqCk7WPvWt5BImSYHhFGh4qvuoxqEi3LBV3W23UIoro/QfZJnFhiC41Zjk WOmLEpqgjzfZc6KO8CPhAw==; Original-Received: from [87.69.77.57] (port=2360 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUmSl-0005LK-Ft; Thu, 17 Mar 2022 05:30:38 -0400 In-Reply-To: <87sfrhklob.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Thu, 17 Mar 2022 09:34:08 +0100) 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" Xref: news.gmane.io gmane.emacs.devel:287252 Archived-At: > From: Yuri D'Elia > Cc: emacs-devel@gnu.org > Date: Thu, 17 Mar 2022 09:34:08 +0100 > > On Thu, Mar 17 2022, Eli Zaretskii wrote: > > I did comment on that. To repeat: it could be a useful new feature, > > but I don't think it should be _the_ solution for showing stuff on the > > fringes on hidpi terminals; we should be able to produce legible > > display of the bitmaps on those terminals. > > Seen it, I was just prompting for more feedback on the idea and discuss > if this could be a good and/or bad idea. I think it's a good idea. It "just" needs to be implemented... > > Solving this in the limited fringe screen estate will need some > > non-trivial ideas. And what about 'half-width' or 'minimal' > > fringe-styles? > > I mentally imagine this as just scaling the font smaller to fit the > fringe width, centering each character vertically. Emacs doesn't know how to scale a font at display time. The font is "scaled" (or, rather, selected) when the face using the font is defined. So dynamically changing the font of a face when the user plays with fringe-style would be another complication that needs to be taken care of. > >> Especially the fact that this would potentially mean an usable fringe > >> mode on character displays that can be toggled, so that you don't need > >> to provide an alternate signaling mechanism if you rely on the fringe to > >> show makers (like gud). > > > > I don't think I follow. Emacs doesn't support fringes on TTY > > displays, so what do you mean by "usable fringe mode on character > > displays"? > > That would be part of the advantage of allowing a character to be used > in lieu of a bitmap (either as a feature or as a fallback). > > On a TTY we could just reserve the first/last column for the "fringe" > and display the lowest-common-denominator format available. How is this different from what overlay-arrow already does? It is even more flexible, as it is not limited to a single column. > > This is already supported, see overlay-arrow-string. Or do you mean > > something else? > > Yes, but it doesn't behave exactly in the same way as the fringe does. In what way does it not behave the same? > (and I also as I just discovered, if I disable the fringe on a graphical > display I do not get the overlay arrows as a fallback -- or did I miss > some variable to control this behavior?) What did you try? See the "Overlay Arrow" node in the ELisp manual for what is available.