diff options
| author | Rudolf Adamkovič | 2025-12-09 13:35:42 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2025-12-20 14:21:42 +0200 |
| commit | 985e942d1ccb71c9b29b35080098b8fb851eecde (patch) | |
| tree | a4459bb7d50ad3969421e8a63f14f1394c5af859 /admin/notes | |
| parent | 9e16010686a99a8b9ee1c01dff248a680605a6ca (diff) | |
| download | emacs-985e942d1ccb71c9b29b35080098b8fb851eecde.tar.gz emacs-985e942d1ccb71c9b29b35080098b8fb851eecde.zip | |
hi-lock: Use active region for default values in more places
* lisp/hi-lock.el (hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use the new function
`hi-lock-read-regexp' to read font-lock patterns, mirroring
`hi-lock-read-face-name' used to read face names. For end users,
all three functions now get the default value from the active
region, rather than just `hi-lock-face-buffer'.
(hi-lock-read-regexp): Extract font-lock pattern reading
functionality from `hi-lock-face-buffer' into this function, to
mirror how faces are read with `hi-lock-read-face-name' and to
promote reuse. (Bug#79976)
Diffstat (limited to 'admin/notes')
0 files changed, 0 insertions, 0 deletions