unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] add outline-regexp for woman.el
@ 2022-12-20  5:28 Yilkal Argaw
  2022-12-20  8:37 ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: Yilkal Argaw @ 2022-12-20  5:28 UTC (permalink / raw)
  To: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

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

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")

[-- Attachment #2: Type: text/html, Size: 664 bytes --]

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

* Re: [PATCH] add outline-regexp for woman.el
  2022-12-20  5:28 [PATCH] add outline-regexp for woman.el Yilkal Argaw
@ 2022-12-20  8:37 ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2022-12-20  8:37 UTC (permalink / raw)
  To: Yilkal Argaw; +Cc: Emacs Devel

> 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



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

end of thread, other threads:[~2022-12-20  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-20  5:28 [PATCH] add outline-regexp for woman.el Yilkal Argaw
2022-12-20  8:37 ` Juri Linkov

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