unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46092: 27.1; syntax highlight in the eval-expression prompt
@ 2021-01-25  6:06 laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-01-27  2:24 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-25  6:06 UTC (permalink / raw)
  To: 46092

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

I use eval-expression a lot for writing and executing smaller snippets, often spanning several lines.

Since it is for evaluating elisp snippets, it should have elisp syntax highlighting
for better readability (highlighted strings, for example) .

[-- Attachment #2: Type: text/html, Size: 303 bytes --]

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

* bug#46092: 27.1; syntax highlight in the eval-expression prompt
  2021-01-25  6:06 bug#46092: 27.1; syntax highlight in the eval-expression prompt laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-01-27  2:24 ` Lars Ingebrigtsen
  2021-01-29 13:27   ` laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-27  2:24 UTC (permalink / raw)
  To: reporter; +Cc: 46092

reporter <laszlomail@protonmail.com> writes:

> I use eval-expression a lot for writing and executing smaller snippets, often
> spanning several lines.
>
> Since it is for evaluating elisp snippets, it should have elisp syntax
> highlighting for better readability (highlighted strings, for example)
> .

That's true -- it's odd that `eval-expression' doesn't use font
locking.  Is there a reason for this, or has nobody just never thought
of it before?

I briefly tried switching it on (by just setting `font-lock-defaults' to
something Elispish), but that didn't work, so does the minibuffer have
something special going on that prohibits font locking?

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





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

* bug#46092: 27.1; syntax highlight in the eval-expression prompt
  2021-01-27  2:24 ` Lars Ingebrigtsen
@ 2021-01-29 13:27   ` laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 3+ messages in thread
From: laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-29 13:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 46092@debbugs.gnu.org


> That's true -- it's odd that`eval-expression' doesn't use font
> locking. Is there a reason for this, or has nobody just never
> thought of it before? I briefly tried switching it on (by just
> setting`font-lock-defaults' to something Elispish), but that
> didn't work, so does the minibuffer have something special
> going on that prohibits font locking?

I tried turning on emacs-lisp-mode in the eval-expression prompt
and the major mode did change from fundamental to elisp mode, but
there is no font locking if I type an expression.

So I have the same question as Lars. Does the minibuffer prevents
font locking from working for some reason?







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

end of thread, other threads:[~2021-01-29 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25  6:06 bug#46092: 27.1; syntax highlight in the eval-expression prompt laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-27  2:24 ` Lars Ingebrigtsen
2021-01-29 13:27   ` laszlomail--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

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).