unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53507: 27.1; syntax highlight in the eval-expression prompt
@ 2022-01-24 17:23 ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-25 12:52 ` bug#46092: " Lars Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-24 17:23 UTC (permalink / raw)
  To: 46092@debbugs.gnu.org; +Cc: 53507

There is some progress thanks to Stefan who gave a hint on the emacs help list.

There is a check in font-core.el which disables font lock for buffers starting
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))
 (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.

This is good, the only problem left to solve is that snippet affects
quitting from the minibuffer for some reason.






^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-01-27 23:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` bug#46092: " Lars Ingebrigtsen
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).