From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#42138: 26.3; Incompatibility between font-lock-add-keywords and enriched.el Date: Tue, 30 Jun 2020 15:08:22 +0200 Message-ID: <20200630130822.GE451135@odonien.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="B8ONY/mu/bqBak9m" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12121"; mail-complaints-to="usenet@ciao.gmane.io" To: 42138@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 30 18:39:32 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 1jqIxB-0008jZ-Ni for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jun 2020 18:17:49 +0200 Original-Received: from localhost ([::1]:60894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqG0a-0005qr-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jun 2020 09:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqG0U-0005qk-OR for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 09:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqG0U-0001qg-Ex for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqG0U-0000sx-9d for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2020 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42138 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15935225133363 (code B ref -1); Tue, 30 Jun 2020 13:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jun 2020 13:08:33 +0000 Original-Received: from localhost ([127.0.0.1]:50437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqG00-0000sA-Nu for submit@debbugs.gnu.org; Tue, 30 Jun 2020 09:08:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqFzy-0000s1-Kf for submit@debbugs.gnu.org; Tue, 30 Jun 2020 09:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqFzy-0005DO-Ea for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 09:08:30 -0400 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]:38274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jqFzw-0001l0-8A for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2020 09:08:30 -0400 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 49x4RZ4Sc8zKmtM for ; Tue, 30 Jun 2020 15:08:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id C2f37n8Cji16 for ; Tue, 30 Jun 2020 15:08:23 +0200 (CEST) Content-Disposition: inline X-MBO-SPAM-Probability: 0 X-Rspamd-Score: -6.55 / 15.00 / 15.00 X-Rspamd-Queue-Id: 8AF041786 X-Rspamd-UID: b5b2bf Received-SPF: pass client-ip=80.241.56.151; envelope-from=mail@vasilij.de; helo=mout-p-101.mailbox.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 09:08:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.6 (--) 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:182562 Archived-At: --B8ONY/mu/bqBak9m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After opening enriched.txt and running any kind of code using the `font-lock-add-keywords` function (for example whitespace-mode or hl-todo-mode), the enriched highlighting is gone. Is this a bug or intentional? If it's intentional, is there some way for the code using `font-lock-add-keywords` to detect this condition, other than checking for the presence of enriched-mode? Alternatively, is there a recommended way to add highlighting of keywords that's compatible with enriched-mode? In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-05-19 built on felixonmars2 Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Enriched: decoding document... Indenting... Note: file is write protected Whitespace mode enabled in current buffer You can run the command =E2=80=98whitespace-mode=E2=80=99 with M-x whit-m R= ET Whitespace mode enabled in current buffer Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-wide-int --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-p= lt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MESSAGES:=20 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: whitespace-mode: t enriched-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t use-hard-newlines: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils whitespace disp-table enriched elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 101223 9021) (symbols 48 20550 1) (miscs 40 62 154) (strings 32 29069 1125) (string-bytes 1 778480) (vectors 16 14213) (vector-slots 8 506032 11338) (floats 8 49 68) (intervals 56 902 0) (buffers 992 12)) --B8ONY/mu/bqBak9m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEE0dAcySl3bqM8O17WFmfJg6zCifoFAl77OUYACgkQFmfJg6zC ifrFNAf/fUvJjMQzezoImI5iRHYkKATd4+6j1DqWFrZxPObxRtjA7x2zqOKIOl4I UeCIca2ktQCpxuTFe5W9aFUOgkx6R2GtXI3tcWE0s96gGv/rt7UOwUpWUq9VI7Xz 2JXBnRvw+54EvscGhLWC4DSx/3oHlJUq04VkFoRkKQY2iGvTY5I57gppjQaNiEJb /RyGKQlbtnTqd50UiadFuRmnS87b2ev/gIrXe+iv+j1SscRYgaZkwzQVTtry8hGR RAUKe/wZFpc7bk4bRUAUPyfLcU6PoGUgfHUekBs28iW5kY1M+cGn6rnZugdAOBxB tfcLMcrWU2iGEPY5AFQm4F5+fTTIVQ== =z3Bh -----END PGP SIGNATURE----- --B8ONY/mu/bqBak9m--