From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ndame via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53507: 27.1; syntax highlight in the eval-expression prompt Date: Mon, 24 Jan 2022 17:23:44 +0000 Message-ID: Reply-To: ndame Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16987"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53507@debbugs.gnu.org To: "46092@debbugs.gnu.org" <46092@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 24 18:49:16 2022 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 1nC3Su-0004BM-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 18:49:16 +0100 Original-Received: from localhost ([::1]:33056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC3Sr-0003xK-UU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 12:49:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC35T-0007yN-RM for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 12:25:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC35S-0000OU-FI for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 12:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC35S-00069i-Cd for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 12:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jan 2022 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53507 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "Bug reports for GNU Emacs, the Swiss army knife of text editors" Original-Received: via spool by submit@debbugs.gnu.org id=B.164304504223557 (code B ref -1); Mon, 24 Jan 2022 17:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2022 17:24:02 +0000 Original-Received: from localhost ([127.0.0.1]:45625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC34T-00067m-Ms for submit@debbugs.gnu.org; Mon, 24 Jan 2022 12:24:01 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC34R-00067X-Pi for submit@debbugs.gnu.org; Mon, 24 Jan 2022 12:24:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC34R-0006Zf-JT for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 12:23:59 -0500 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:37755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC34O-0000Jf-7J for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 12:23:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643045026; bh=vCCwwEQy6AMhXQF2odhH+Zf6BAOZtWIihugj7VFDpBU=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:From:To:Cc; b=KAZ8Yumo4TXvO9Aog4YK6GN2DXy+5r+JadYBOHaGWyo5O5d1h5+91rV7Xnb29t6RY DqYVcQwoT62lta0sDwGpSM4Oar43y7txxSge7ylJQFdQ4OROePiBtzCU1R1SofOi8r nIApsZtom1Kc6g0nf0kdORNZ2t8ee3BXVgwJ/I2kAGelztf58SIFKfxl3r/rAcEwOH cg5Tl+y1XkNuUQZfSPK32eZAilNxcXy6FWBmOV9w8aQq511izYcxm0stadSRF/syjU hcqBr8mpKquVFxJLYj02wKR2YRjXhRGoFMuq73G6V81Gcisl7BGyKf3ppmfbIog1aR 86gPqikuyyeoA== Received-SPF: pass client-ip=185.70.43.25; envelope-from=laszlomail@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, 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-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" X-ACL-Warn: , ndame Xref: news.gmane.io gmane.emacs.bugs:225082 Archived-At: There is some progress thanks to Stefan who gave a hint on the emacs help l= ist. There is a check in font-core.el which disables font lock for buffers start= ing with a space and the minibuffer is like that: ;; Don't turn on Font Lock mode if we don't have a display (we're running a ;; batch job) or if the buffer is invisible (the name starts with a space). (when (or noninteractive (eq (aref (buffer-name) 0) ?\s)) =C2=A0(setq font-lock-mode nil)) https://github.com/emacs-mirror/emacs/blob/master/lisp/font-core.el#L133 If one comments these lines, reevalutes the function and then goes to=C2= =A0 eval-expression, pastes this code into it: =C2=A0 (progn (setq font-lock-mode t) (emacs-lisp-mode)) and evals this code right there in context (C-x C-e) then the lisp=C2=A0 code in the minibuffer gets font locking. This is good, the only problem left to solve is that snippet affects quitting from the minibuffer for some reason.