bug#81553: [PATCH] * lisp/outline.el (outline-occur): Add autoload cookie.

Roi Martin <[email protected]> Tue, 04 Aug 2026 23:32:24 +0200
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain

Tags: patch

The `outline-occur' command is another entry point for outline.el.  For
instance, I have the following in my init file:

  (keymap-set search-map "M-o" #'outline-occur)

This allows me to easily invoke `outline-occur' with `M-s M-o' from any
buffer without having to enable any of the Outline modes or require the
`outline' feature.

Thus, this patch autoloads it.

        Roi


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-lisp-outline.el-outline-occur-Add-autoload-cookie.patch

From 88e2b528278b3ea1cce41ebfef84b21dd4ac55ca Mon Sep 17 00:00:00 2001
From: Roi Martin <[email protected]>
Date: Tue, 4 Aug 2026 11:10:16 +0200
Subject: [PATCH] * lisp/outline.el (outline-occur): Add autoload cookie.

---
 lisp/outline.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/outline.el b/lisp/outline.el
index 1ee86ae871dc..d27085c170f6 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -2193,6 +2193,7 @@ outline-occur-regexp
 does with `outline-regexp', `outline-occur' only checks this regexp at
 the start of a line, so the regexp need not start with `^'.")
 
+;;;###autoload
 (defun outline-occur ()
   "Navigate the current buffer's outline using `occur'.
 The `outline-regexp' variable is used to find the beginning of the
-- 
2.55.0


--=-=-=--