emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] add outline-regexp for woman.el


From: Juri Linkov
Subject: Re: [PATCH] add outline-regexp for woman.el
Date: Tue, 20 Dec 2022 10:37:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> This is a simple patch to add outline-regexp in woman.el to enable folding
> using outline-minor-mode.

Thanks.

> diff --git a/lisp/woman.el b/lisp/woman.el
> index 2b456fed3c..b2d73b71f3 100644
> --- a/lisp/woman.el
> +++ b/lisp/woman.el
> @@ -4576,6 +4576,7 @@ woman-bookmark-jump
>  
>  (put 'woman-bookmark-jump 'bookmark-handler-type "WoMan")
>  
> +(setq-local outline-regexp "^[A-Z]+")
>  (defvar woman-version "0.551 (beta)" "WoMan version information.")
>  (make-obsolete-variable 'woman-version 'emacs-version "28.1")

This will change the value in a random buffer that was current
when woman.el was loaded.  Please see how outline-regexp
is defined in man.el.

Also please send patches to bug-gnu-emacs@gnu.org



reply via email to

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