From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Fill column indicator functionality Date: Fri, 15 Mar 2019 14:30:55 +0100 Message-ID: <32B82860-3C7D-41CC-BD2F-8114BBA170B8@acm.org> References: <20190309132207.w2ho3j6p5on6fyzw@Ergus> <838sxo87gc.fsf@gnu.org> <20190311104814.kp2nv6arv47hcykz@Ergus> <83y35l4ee0.fsf@gnu.org> <20190312152928.73o4b5fk4paz7wm5@Ergus> <834l883w15.fsf@gnu.org> <20190312192017.fkfd4h5gsbdue5q3@Ergus> <83imwm3fxf.fsf@gnu.org> <20190313200225.dpqrw7xthkj47fqw@Ergus> <83bm2e35a1.fsf@gnu.org> <20190314030224.l5zseslncw3xc5ox@Ergus> <835zsm2c2s.fsf@gnu.org> <303612d8-e691-f753-84c9-f462d88262b6@gmail.com> <83d0ms1to4.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="141466"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Alp Aker Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 15 14:54:20 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4nHv-000aef-95 for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 14:54:19 +0100 Original-Received: from localhost ([127.0.0.1]:55456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4nHu-00024Q-8u for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 09:54:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4n3X-0007Nw-Jt for emacs-devel@gnu.org; Fri, 15 Mar 2019 09:39:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4mvP-00062P-TG for emacs-devel@gnu.org; Fri, 15 Mar 2019 09:31:04 -0400 Original-Received: from mail173c50.megamailservers.eu ([91.136.10.183]:58336 helo=mail56c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4mvP-00060K-3f for emacs-devel@gnu.org; Fri, 15 Mar 2019 09:31:03 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1552656657; bh=HQb8TIxjy6Fq+dt0/H4uwd7wc3WV953mRidNKAlxudk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=azMuYBtKQXYqgEzVFrBU7xIzsIWLheFBo282rqoBOY6fGOtSYhCbLyweo+tqdTNX3 Q0mYkD1lr6ZOJczb7y8kZavzugAnRxKS6T6Hd+C5T9fn6gxiLKcEpyirlmv0wylxeZ dC3ekhChiIEd1RCFS6PQodXtRrYtIfAtH+9GWUR0= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x2FDUtxW020280; Fri, 15 Mar 2019 13:30:57 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B0211.5C8BA911.0070, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=EarmvsuC c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=JTmkImSPK-pIbo1zhWYA:9 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234155 Archived-At: 15 mars 2019 kl. 14.00 skrev Alp Aker : >=20 >> That's a good question. Indeed, it would be possible to implement >> this with a single thin line being drawn, but I think such an >> implementation would have several disadvantages: >>=20 >> . It will need to be implemented separately for each window-system >> (X, w32, NS), and for TTY frames. By contrast, the implementation >> discussed here is in a single place, is independent of the display >> kind, and is very simple and localized. >=20 > I believe a simpler implementation is possible: Where Ergus's = implementation uses a char glyph, it could also use a line-height image = glyph. Terminal emulators often treat box-drawing characters specially, either = drawing the lines themselves or extending parts of the glyphs in case = there would be gaps. Even XTerm does this, mainly to supplement missing = glyphs. Being its own terminal emulator, Emacs could do the same to avoid gaps = in horizontal and vertical lines that should connect. Box-drawing = characters are attractive for use in tables, diagrams and user = interfaces, and work in both TTYs and window systems. They are sometimes = seen in ASCII+ art in source code comments. The details are fairly window-system-specific but do not have to be = implemented everywhere at once.