all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* M-o M-o `font-lock-fontify-block'
@ 2021-02-14 12:23 Alan Mackenzie
  2021-02-14 15:48 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2021-02-14 12:23 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

On master, I just typed M-o M-o and instead of font-lock-fontify-block,
got a window with the M-o removal message.  I've been using this binding
subconsciously for many years now, and it was a bit of a jolt for it not
to work.

I need this function for refontifying hi-lock-mode patterns which get
split onto two lines by auto filling.  For example I have a pattern for
"bug #12345" with arbitrary whitespace, and this fairly often gets split
by a linefeed.

Clearly, this is a candidate for C-c <letter> for me.  Typing M-x
font-lock-fontify-block would be intolerable after a very short while.

But, more to the point, a user accustomed to M-o M-o is going to have
inordinate difficulty finding the command to bind.  Two of the M-o
bindings are mentioned in NEWS, to give people help.  Why not all of
them?

Also, why must font-lock mode operating on patterns from hi-lock-mode be
unable to fontify over a line-break?  This is surely something it ought
to be able to do.  Setting font-lock-multiline to t doesn't help in this
case.

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2021-02-14 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-14 12:23 M-o M-o `font-lock-fontify-block' Alan Mackenzie
2021-02-14 15:48 ` Eli Zaretskii
2021-02-14 15:56   ` Lars Ingebrigtsen

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.