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:56:33 +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="30335"; 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:57:11 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 1nBh71-0007eR-0H for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 18:57:11 +0100 Original-Received: from localhost ([::1]:32980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBh6z-0002Rx-Hm for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 12:57:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBh6W-0002Ro-8m for help-gnu-emacs@gnu.org; Sun, 23 Jan 2022 12:56:40 -0500 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:36316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBh6U-0008Ej-3D for help-gnu-emacs@gnu.org; Sun, 23 Jan 2022 12:56:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1642960595; bh=S97cUwbc6k6GPoxiF2tBcWnF3DKDRCkkW4dYaO7LnsA=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: From:To:Cc; b=Bor4G96VXHHgvAOERFVT9Z71gRg7igIR/5OcbHWvpkWhSk9ZKag4qlhyKhOpW6hBZ +TQGSHORx0HdrhnrppF/pjuMvDuVoaG5V6HOXbHl2rk/R2De8kxX4JoouPcv7kCRI6 GQ7/7Q2c2BX7qm0ShLgCXGPEJjeC+bvA/xiE/WX9ymyEi43SG4JDSrFlsWCnRRx8OQ YLPsVypG37jGTm1gx/LFIRS0IResCW7429QEClJ0/afQ+J4utn+StWe+DW7wAnwDaK UEKBpuTaHY6HZI0hy3WateC186gsKTZqRW3+AVAqG+f+iU0oMTwZSGmn6ecPRp0aWq bjPjEnPNh8j2w== In-Reply-To: Received-SPF: pass client-ip=185.70.40.138; envelope-from=laszlomail@protonmail.com; helo=mail-40138.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:135513 Archived-At: > And lo! If you go to eval-expression, paste this code > into the prompt: Turns out it doesn't work with emacs -Q. It only worked for me, because I commented out the part in my emacs which prevents it working from the minibuffer: (when (or noninteractive (eq (aref (buffer-name) 0) ?\s)) (setq font-lock-mode nil)) So it's not just a matter of adding a function to minibuffer set up hook. The C-g stops working problem still occurs with -Q, though, if I change the major mode of the minibuffer to elisp mode.