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?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Fill column indicator functionality Date: Fri, 15 Mar 2019 10:35:02 -0400 Message-ID: <78caa81d-dad0-7096-cc98-45043642a57c@gmail.com> 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> <234b0a33-65e5-5170-47ce-c0eaab762aef@gmail.com> <83y35gz0oh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="113491"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 15 15:46:09 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 1h4o64-000TP8-9f for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 15:46:08 +0100 Original-Received: from localhost ([127.0.0.1]:56523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4o63-0003eh-2M for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 10:46:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4o1G-0008Lr-O6 for emacs-devel@gnu.org; Fri, 15 Mar 2019 10:41:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4nvN-0005AK-7Q for emacs-devel@gnu.org; Fri, 15 Mar 2019 10:35:06 -0400 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:39487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4nvM-0005A4-VZ; Fri, 15 Mar 2019 10:35:05 -0400 Original-Received: by mail-qt1-x832.google.com with SMTP id t28so10307010qte.6; Fri, 15 Mar 2019 07:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2gXvLRFBD9o5iFtOdulptDLp1jRepGM7UI9IVPJr4YA=; b=uSJoHcBXBZuJqmZin4Rd/vfpBptBeqYNTX+kH8VyhmyBGClnuVP0O0MESmtZ8bjhCN BGCmubd235pdr7L7aGnRqW+3yqZ1iYiiwaIL8Quwppn/3rUDahKogKN4huhE1auPGEFC 0yLN1vdFTWHMqk5EegsIpx/22OewhOSbq10xVT1AVn6CL/8DlawpkItGLBXiD158LbkU GwwcE/+lX6cI20P+PCesxLgZl2y5dJHIyGvz/jhA4bNTV8uGVj66YBUc9SOu29n6y9yc ziiGiOLqtLvjK/jtGE9XbeqbouUeKqVaL3R5DcfzOpjjW0XEybTuETuONjPk56lzKyam Zkyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2gXvLRFBD9o5iFtOdulptDLp1jRepGM7UI9IVPJr4YA=; b=U8cWW2Atevr3SdQAGtT7dzwZG/3TUhpfxjppwuNW3NXYn1CbM1vLZgDfJv/3IIADkz 5VOZxQpkQ22KmtD8ft4lzesJPIKYq9FnCVZbfFjVkXBJQdxIWxpYLRZiL1/tn/6c9LKR uSVycVQ8m3JNw/kYBXQYIv5cggd44IL90wHfbDVd+LRlMBZeVE7vGJkXufXwYBXeZ2M5 0Bd0L7fC7ot9KUCa1lh5ryqt+ZiPxTvELfslSh2RtnCR7P5O183rk+bwXhUIc38A8IBG LZQ1ac5eXoOXyuVhNr7SxaWsOnijd27bnMlY9jpmzIxtbmh6j1kanJSndTTaHacyU7zC Zfcg== X-Gm-Message-State: APjAAAWdSYkmWk4ISBbRqIV12zbT+EoaTP1SIEMhxNVIplpMA6cltx3z knrcpTKDVNBwCpBFqclxze84e2fI X-Google-Smtp-Source: APXvYqyEN3OlLkGSc1682VEwew2QTOCI04PqW8LGwlEjYddiXiSd2UwPWgzMfNd3l8uTvTygizZCcA== X-Received: by 2002:ac8:1aec:: with SMTP id h41mr2927946qtk.345.1552660503999; Fri, 15 Mar 2019 07:35:03 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:8867:e47c:fac:51b? ([2601:184:4180:66e7:8867:e47c:fac:51b]) by smtp.googlemail.com with ESMTPSA id h18sm1166662qkj.50.2019.03.15.07.35.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 07:35:03 -0700 (PDT) In-Reply-To: <83y35gz0oh.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::832 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:234162 Archived-At: On 15/03/2019 10.12, Eli Zaretskii wrote: >> From: Clément Pit-Claudel >> This was actually going to be my follow-up question :) I see lines of variable height in many of most of my Emacs mode, through a combination of factors: >> >> - Font switches due to symbols picked by prettify-symbols-mode not being available in my main programming font >> - Variable-pitch fonts being used by AucTeX for section and paragraph titles >> - Varying font sizes to indicate nesting depth in Org-mode >> - Changing line spacing to separate top-level items in org-mode > > Does the fci mode support those use cases? Not well, no. There are discontinuities, and if I use wide characters (like CJK spaces, e.g. ' '), portions of the line are misaligned. > But yes, we have several methods of scaling display elements which > could be used to solve these use cases. I just don't think we should > block the feature until they are fixed. However important are the use > cases you enumerated, they are not the majority in Emacs, right? No, I don't think they are the majority of Emacs :) >> Also, as a second follow-up question: we already have code to draw boxes around characters; would it be hard to extend that code to allow customization of which sides to draw? Alternatively, would it be hard to add a vertical strike-through face property? (I've used horizontal strike-through as a way to display horizontal lines in the past) > > I'm not sure where are you going with this. Yes, Emacs is capable of > drawing horizontal and vertical lines of specified pixel-width, but > the issue here is not whether we can do it, the issue is how to do > that in a way that fits as much as possible the current basic design > and implementation of the display engine. Otherwise, the job becomes > so large that we probably won't have this feature any time soon. > > Specifically, drawing a "vertical strike-through" still doesn't solve > the problem with the height of the line, because the glyph we will > "strike through" will still need to have a suitable height, right? Maybe? At the moment boxes and backgrounds already span the full line height, so I'm assuming strike-throughs would as well. All that I was pointing out is that the box display code already draws lines that reliably span the entire line height. Clément.