unofficial mirror of emacs-devel@gnu.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

* Re: M-o M-o `font-lock-fontify-block'
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-02-14 15:48 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

> Date: Sun, 14 Feb 2021 12:23:01 +0000
> From: Alan Mackenzie <acm@muc.de>
> 
> 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.

I frequently use M-o M-o to fix potentially incorrect font-lock.

> 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?

The NEWS entry is indeed lacking (and has a typo), but maybe it's okay
given that we make the decision 3 weeks from now?



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

* Re: M-o M-o `font-lock-fontify-block'
  2021-02-14 15:48 ` Eli Zaretskii
@ 2021-02-14 15:56   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-14 15:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Alan Mackenzie, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> 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?
>
> The NEWS entry is indeed lacking (and has a typo), but maybe it's okay
> given that we make the decision 3 weeks from now?

Forgot about that one; now added.

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



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