From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ndame Newsgroups: gmane.emacs.help Subject: Re: What is special about the minibuffer in regard to font locking? Date: Sun, 23 Jan 2022 17:17:09 +0000 Message-ID: References: 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="36114"; mail-complaints-to="usenet@ciao.gmane.io" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 18:17:57 2022 Return-path: Envelope-to: geh-help-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 1nBgV3-000990-0j for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 18:17:57 +0100 Original-Received: from localhost ([::1]:47736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBgV1-0008EN-F8 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 12:17:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBgUM-0008E8-M6 for help-gnu-emacs@gnu.org; Sun, 23 Jan 2022 12:17:14 -0500 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]:53712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBgUK-0008Gi-E0 for help-gnu-emacs@gnu.org; Sun, 23 Jan 2022 12:17:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1642958229; bh=XbwNvWqVyLNI4X0KyRSxtKmq16eH20KqNIewnI3SsFw=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: From:To:Cc; b=tnhsqG8gfEDfzeEgPRVpMO+ze6m8kFvWIcyTUiO8qOJ9G36fmbFC8lzn2ZCu8DZsl gmOr/izYvPEBOim0nVKvPZkwcPM7LpSGOSGYIkYzuKhnJZg+NYkFY96BbitjPaRSJx 8tqWE2q8mHbjfAfZQZHSUmBQI38z/8+ddsKT3cHFBNxy6fE9uYHQ2DuvfHduCCsOG3 K3F50o7Fq2vO7RRQ4WixdPgOPQiJibXcNXzZppD/SjlYFVdxyS1snDlzo119ZvEvJh oPbogO3biUgIzttexmbEtCz3m/BkPXkRNI4R0Zi+dx5hmaoBWSfZU39YtMSad2WMUW U1yAN/CqZvuUA== In-Reply-To: Received-SPF: pass client-ip=185.70.40.132; envelope-from=laszlomail@protonmail.com; helo=mail-40132.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_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135512 Archived-At: > I don't think there's anything fundamental here. > Probably just code like: Thanks, I thought it was something more complicated. And lo! If you go to eval-expression, paste this code into the prompt: (progn (setq font-lock-mode t) (emacs-lisp-mode)) and eval it right there in context (C-x C-e) then the pasted code is font locked. So syntax highlight works, but it breaks something else, because then you can't get out of the minibuffer with C-g for some reason. Probably because of the mode change? But you can do an M-x top-level to get out and then the minibuffer works again with C-g, because it's reset to minibuffer-inactive-mode.