From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 16 14:31:56 2020 Received: (at submit) by debbugs.gnu.org; 16 Dec 2020 19:31:56 +0000 Received: from localhost ([127.0.0.1]:33732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpcWf-0001ck-6y for submit@debbugs.gnu.org; Wed, 16 Dec 2020 14:31:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:49912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpbmz-0000TM-P7 for submit@debbugs.gnu.org; Wed, 16 Dec 2020 13:44:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpbmz-0003Ii-E6 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2020 13:44:41 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpbmw-0003kk-KK for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2020 13:44:41 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8F2685C0193 for ; Wed, 16 Dec 2020 13:44:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 16 Dec 2020 13:44:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smsegal.ca; h= message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; s=fm1; bh=ScNr/jhWfVX3mEbGEepac3d4g3 Sa/cJhs60H+Cx1LQM=; b=QI5GGEzLMMspazII1oDSMh2oxaJkaCEqQpxFvnhzP/ +BCZaq3k5p5gFpAcT5JB/7sJmO6oKKULIzx4xPpdgwrpNkeqWHkrOMMPRt/vzCiZ jz4Njm26HXU4nsYQ3H7yG5eu0nySA3N6j4VpIb6d2sYBgXgLit4BvUu0mvT1O0AY FBUyoKd1ADC2rdes74G0XfPbkXP+UuzEsxiUvg9TnW0LLbCxpVBlIbZQ0Fd8oNB3 jHeazuOtvgnNsm8O3aptq1lVol6G0iodOXVQz0/oN/tZW+LbybPaY1ybyC/tJclx 6xin/KrE60Uh4a8t1c0SC+prn6yGeniqSk7NpI3v83qQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ScNr/j hWfVX3mEbGEepac3d4g3Sa/cJhs60H+Cx1LQM=; b=XoIUBMSoeg049cug56b+Ij r5k+MigQ3VZbRYyTx6TUW4cy/kp0y/2B5T9xBJwOJ/P0a4khIJz+RGCjnIx7eDXX wbrfQXJe0lfe0JueBVwjMs5itQ6Ms/qohoQOCGj1cEIUpJPO09TW3iIi627waVaj 7CMFF9r/THhYy8kZoOmG3rEOtRs8aiO8XVxTcK4O8pCOsvY9rfniKar2C3o5RluZ rl9rmUEkDnj446oT2pjdkfkIfNEUDgNK1eS4GtaUT+jmZhk6FtpUWHj1uojfAIE0 +5vV8shqTJwZzbleypi6plq3S69/Q7GTHvXlGetBZuN279ULts9DZBIwcxgWJGHA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelvddguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkffuhffvffgtfggggfesthejre dttderjeenucfhrhhomhepufhhrghnvgcuufgvghgrlhcuoehshhgrnhgvsehsmhhsvghg rghlrdgtrgeqnecuggftrfgrthhtvghrnhepfeeiveehieffgfdvgfffhfeffefhfffhve ekheeufeevhfeiffefgeektedtkeegnecuffhomhgrihhnpehgihhthhhusghushgvrhgt ohhnthgvnhhtrdgtohhmpdhgihhthhhusgdrtghomhdpfhgvughorhgrphhrohhjvggtth drohhrghenucfkphepvdegrddvuddvrddvfeefrdduhedunecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhhrghnvgesshhmshgvghgrlhdrtg gr X-ME-Proxy: Received: from [192.168.0.157] (24-212-233-151.cable.teksavvy.com [24.212.233.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 49E031080057 for ; Wed, 16 Dec 2020 13:44:36 -0500 (EST) Message-ID: <5c348c4a8006926c3dac209e34eb2564271b0cf3.camel@smsegal.ca> Subject: 27.1; Adaptive-Wrap causes font-locking errors when combined with consult.el From: Shane Segal To: bug-gnu-emacs@gnu.org Date: Wed, 16 Dec 2020 13:44:34 -0500 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2 (3.38.2-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=66.111.4.26; envelope-from=shane@smsegal.ca; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 16 Dec 2020 14:31:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi, I'm using the adaptive-wrap package in combination with consult[0] and selectrum[0]. When adaptive-wrap-prefix-mode is enabled, searching through lines in an org or latex file with consult-line (similar to swiper from the ivy package) fails to launch, with the following error message: Error during redisplay: (jit-lock-function 228) signaled (error "Invalid face" font-lock-comment-face org-block) face-attribute: Invalid face: font-lock-comment-face, org- blockError during redisplay: (jit-lock-function 228) signaled (error "Invalid face" font-lock-comment-face org-block) This doesn't appear to be a bug with the consult package, as there isn't anything special going on with the font-locking code in consult. See the github issue here[2]. Note that I'm not the consult developer, simply sending this bug report on their behalf. I have a sample init file that can reproduce the error if loaded. This will download the appropriate packages (from github, so if you have moral issues with that, feel free to ignore?): (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el " 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (straight-use-package 'org) (straight-use-package 'use-package) (setq straight-use-package-by-default t) (use-package selectrum :commands selectrum-next-candidate selectrum-previous-candidate :hook (after-init . selectrum-mode)) (use-package consult :straight (:host github :repo "minad/consult") :init :hook (after-init . consult-preview-mode)) (use-package consult-selectrum) (use-package adaptive-wrap :hook ((prog-mode text-mode) . adaptive-wrap-prefix-mode)) To reproduce, open an org file with some source blocks inside, then M-x consult-line. What should happen is a swiper-like search menu should launch and search through the file. What actually happens is the font-locking error shown above occurs. The same issue happens in a latex file, although I haven't done as much exploration into that. Note that this is my first bug report to the emacs mailing list, so please let me know if there's any other information I can provide! [0]: https://github.com/minad/consult [1]: https://github.com/raxod502/selectrum [2]: https://github.com/minad/consult/issues/65 System information: In GNU Emacs 27.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.22, cairo version 1.16.0) of 2020-08-20 built on buildhw-x86-03.iad2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12010000 System Description: Fedora 33 (Thirty Three) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with- png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector- strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8