From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46092: bug#53507: 27.1; syntax highlight in the eval-expression prompt Date: Tue, 25 Jan 2022 13:52:56 +0100 Message-ID: <87fspcx9hz.fsf@gnus.org> References: 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="4991"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53507@debbugs.gnu.org, "46092@debbugs.gnu.org" <46092@debbugs.gnu.org> To: ndame Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 25 15:49:07 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 1nCN86-00015Z-0j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 15:49:06 +0100 Original-Received: from localhost ([::1]:49104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCN84-0007u7-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 09:49:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCLKu-0004po-02 for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 07:54:14 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCLKk-0000is-16 for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 07:54:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCLKk-00062W-1I for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 07:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jan 2022 12:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46092 X-GNU-PR-Package: emacs Original-Received: via spool by 46092-submit@debbugs.gnu.org id=B46092.164311518823127 (code B ref 46092); Tue, 25 Jan 2022 12:54:01 +0000 Original-Received: (at 46092) by debbugs.gnu.org; 25 Jan 2022 12:53:08 +0000 Original-Received: from localhost ([127.0.0.1]:47299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCLJs-00060s-53 for submit@debbugs.gnu.org; Tue, 25 Jan 2022 07:53:08 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:34762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCLJq-00060H-2F; Tue, 25 Jan 2022 07:53:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+roqPH4j6KTKeG17XYjOW4nrjOhFnDjKCfx3lgfaEDs=; b=Sf/8vk324NDuity3Un8syJvj4y 4a81b38pAQOXk4VgdJByYp65bng4kddDo6ofW+4Y/OYX0JxBFR1g0ROFHGb8w1IpxL5z7/gzqhgvc wuAa8bpolm0IlzphIevmsFANniQ3kD9EHc9B3ogXVWHWAwoMhcJ1lPzdmDrFCtYaDOm0=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCLJh-0003lR-1t; Tue, 25 Jan 2022 13:52:59 +0100 X-Now-Playing: David Bowie's _Brilliant Adventure (9): Re:Call 5_: "I'm Afraid Of Americans (Showgirls soundtrack version)" In-Reply-To: (ndame's message of "Mon, 24 Jan 2022 17:23:44 +0000") 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:225182 Archived-At: ndame writes: > ;; 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. Yes -- but I don't think this is something we can change at this point. It's likely to break various things. So if you want to do font locking things in the minibuffer, you have to use minibuffer-setup-hook (or one of the other hooks) and set things explicitly. So I don't think there's anything to be done on the Emacs side here, but perhaps I'm misunderstanding what this report is about? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no