From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32676: [PATCH] Add option to highlight the 'next-error' error message Date: Thu, 05 Nov 2020 22:20:04 +0200 Message-ID: <871rh7y2rv.fsf@mail.linkov.net> References: <20180910050802.25922-1-erjoalgo@gmail.com> <83a7ollcq2.fsf@gnu.org> <874let1o3k.fsf@gmail.com> <831s9xl54b.fsf@gnu.org> <874leq1hw4.fsf@mail.linkov.net> <87worlgh0k.fsf@mail.linkov.net> <878swkxqo1.fsf_-_@mail.linkov.net> <874kmxz7e0.fsf@gnus.org> <874kmwy7k8.fsf@mail.linkov.net> <878sc8yn0i.fsf@gnus.org> <875z7avb9c.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36362"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 32676@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 05 21:24:17 2020 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 1kalns-0009M0-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 21:24:16 +0100 Original-Received: from localhost ([::1]:39390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kalnr-0005S6-Nu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 15:24:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kalne-0005Rj-9Z for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 15:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kalne-0006gV-0Z for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 15:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kalnd-0005Nx-SO for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 15:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Nov 2020 20:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 32676-submit@debbugs.gnu.org id=B32676.160460779220644 (code B ref 32676); Thu, 05 Nov 2020 20:24:01 +0000 Original-Received: (at 32676) by debbugs.gnu.org; 5 Nov 2020 20:23:12 +0000 Original-Received: from localhost ([127.0.0.1]:54254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kalmp-0005Mt-Te for submit@debbugs.gnu.org; Thu, 05 Nov 2020 15:23:12 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:46055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kalmo-0005MO-Hi for 32676@debbugs.gnu.org; Thu, 05 Nov 2020 15:23:11 -0500 Original-Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id A46AF100003 for <32676@debbugs.gnu.org>; Thu, 5 Nov 2020 20:23:02 +0000 (UTC) In-Reply-To: <875z7avb9c.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 16 Oct 2020 11:13:51 +0300") 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:192753 Archived-At: > I tried to add the attribute ':extend t' to the next-error-message face, > but it has no effect. Maybe because currently highlighting is not added > to the trailing newline. Indeed, with this patch it works: > > diff --git a/lisp/simple.el b/lisp/simple.el > (defface next-error-message > - '((t (:inherit highlight))) > + '((t (:inherit highlight :extend t))) BTW, I noticed that org-mode has a special variable that puts the face over the trailing newlines for headings. I propose to mention in the docstring that it's possibly to extend the face: diff --git a/lisp/org/org.el b/lisp/org/org.el index 1ab8ab6888..c1b8ec9d24 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -3685,7 +3685,8 @@ org-fontify-emphasized-text (defcustom org-fontify-whole-heading-line nil "Non-nil means fontify the whole line for headings. This is useful when setting a background color for the -org-level-* faces." +org-level-* faces and extending it to the edge of the window +by using the face attribute `:extend'." :group 'org-appearance :type 'boolean)