From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Fill column indicator functionality Date: Fri, 05 Apr 2019 16:06:17 +0300 Message-ID: <831s2gd2k6.fsf@gnu.org> References: <83h8bgfj53.fsf@gnu.org> <20190402170031.l64saf2qdr3gez3u@Ergus> <83d0m4fhe6.fsf@gnu.org> <20190402174857.ydvsrgplftya4nti@Ergus> <83a7h8feho.fsf@gnu.org> <20190402212251.ee6jlzptyll24ebo@Ergus> <83sguzekc5.fsf@gnu.org> <20190403102234.gyk45tfk4uypilhn@Ergus> <83d0m3e43f.fsf@gnu.org> <20190405103614.oivi4mtlnklldli4@Ergus> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="241467"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 05 15:07:44 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 1hCOZL-0010aR-K1 for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2019 15:07:43 +0200 Original-Received: from localhost ([127.0.0.1]:41810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCOZK-0000eV-IX for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2019 09:07:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCOYP-0000dB-3s for emacs-devel@gnu.org; Fri, 05 Apr 2019 09:06:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCOYM-0002uC-Cq; Fri, 05 Apr 2019 09:06:43 -0400 Original-Received: from [176.228.60.248] (port=3354 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hCOYC-0004Vf-Rk; Fri, 05 Apr 2019 09:06:40 -0400 In-reply-to: <20190405103614.oivi4mtlnklldli4@Ergus> (message from Ergus on Fri, 5 Apr 2019 12:36:14 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:234979 Archived-At: > Date: Fri, 5 Apr 2019 12:36:14 +0200 > From: Ergus > > I don't really find a right method to fix this because the > char-displayable-p function seems not to be accurate in many > cases. There was a discussion about this before, but there was not a > final agreement I think. And from the char-displayable-p documentation: > > ``` > On a multi-font display, the test is only whether there is an > appropriate font from the selected frame's fontset to display > CHAR's charset in general. Since fonts may be specified on a > per-character basis, this may not be accurate. > ``` > > Any suggestion here? Can you reproduce the problem, given the information Robert provided about the font he uses? Once you can reproduce the problem, I suggest to use the macro FACE_FOR_CHAR to find the ID of a face suitable for displaying the indicator character, instead of using DEFAULT_FACE_ID. You can find examples of using this macro elsewhere in xdisp.c.