bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14438: 24.3.50; Honor `hi-lock-auto-select-face' for non-interactive


From: Juri Linkov
Subject: bug#14438: 24.3.50; Honor `hi-lock-auto-select-face' for non-interactive use
Date: Wed, 22 May 2013 23:57:10 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

>       (add-hook 'occur-mode-find-occurrence-hook
>                 (lambda nil (highlight-regexp
>                              (find-tag-default-as-regexp))))

You could use

      (add-hook 'occur-mode-find-occurrence-hook
                (lambda nil (highlight-regexp
                             (find-tag-default-as-regexp)
                             (let ((hi-lock-auto-select-face t))
                               (hi-lock-read-face-name)))))

like I proposed to do in bug#14427 to get the next face automatically.

BTW, what do you think about bug#14405 that adds a new defcustom
`read-regexp-defaults-function' that is more user-friendly
to customize than changing the values of several functions like
`occur-read-regexp-defaults-function' and
`hi-lock-read-regexp-defaults-function'?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]