all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: ndame <laszlomail@protonmail.com>
Cc: 53507@debbugs.gnu.org, "46092@debbugs.gnu.org" <46092@debbugs.gnu.org>
Subject: bug#46092: bug#53507: 27.1; syntax highlight in the eval-expression prompt
Date: Tue, 25 Jan 2022 13:52:56 +0100	[thread overview]
Message-ID: <87fspcx9hz.fsf@gnus.org> (raw)
In-Reply-To: <XgBlQfRbG-UbY_0-ocN4cJwLNDZ3km7O8xtxxE33dDPDt01QcIYIXO_pXmrCs1bvjYxNmdR6AWmJ2Gs9vuJASzQU3ETQUNO_3kvzE04k-iA=@protonmail.com> (ndame's message of "Mon, 24 Jan 2022 17:23:44 +0000")

ndame <laszlomail@protonmail.com> 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))
>  (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 
> eval-expression, pastes this code into it:
>
>   (progn (setq font-lock-mode t) (emacs-lisp-mode))
>
> and evals this code right there in context (C-x C-e) then the lisp 
> 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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-01-25 12:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 17:23 bug#53507: 27.1; syntax highlight in the eval-expression prompt ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-25 12:52 ` Lars Ingebrigtsen [this message]
2022-01-25 13:17   ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-25 13:23     ` bug#46092: " Lars Ingebrigtsen
2022-01-25 13:28       ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-26  0:13     ` bug#46092: " Michael Heerdegen
2022-01-26  6:14       ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-26 19:53         ` bug#46092: [External] : " Drew Adams
2022-01-26 23:39           ` Michael Heerdegen
2022-01-27  0:06             ` bug#53507: " Drew Adams
2022-01-27  3:08           ` bug#46092: " ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-27  3:19             ` bug#53507: " Drew Adams
2022-01-27  9:28               ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-27 23:44                 ` bug#46092: " Drew Adams
2022-01-26  0:16   ` bug#53507: bug#46092: " Michael Heerdegen
2022-01-26 14:41     ` Lars Ingebrigtsen
2022-01-26 16:39       ` bug#53507: " Michael Heerdegen
2022-01-27 15:34         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fspcx9hz.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=46092@debbugs.gnu.org \
    --cc=53507@debbugs.gnu.org \
    --cc=laszlomail@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.