Subject: [PATCH] Autoload `re-disassemble'

From: Ihor Radchenko <[email-masked]>
Date: Wed, 01 May 2024 11:28:48 +0000

Tags: patch

Hi,

I have recently discovered a new `re-disassemble' command while reading
NEWS. However, the command is not available by default - one needs to
(require 'disass).  I think it should be autoloaded, just like another
function in disass.el - `disassemble'.

In GNU Emacs 30.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2024-05-01 built on localhost
Repository revision: cde58b309588008707cc8b00919eb24801e42eb6
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101013
System Description: Gentoo Linux

Configured using:
 'configure --enable-checking=yes,glyphs CFLAGS=-g3'

>From 91ddb836b5e1594adf41f2658d4c07b053873f9d Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Ihor Radchenko <[email-masked]>
Date: Wed, 1 May 2024 14:26:09 +0300
Subject: [PATCH] Autoload `re-disassemble'

* lisp/emacs-lisp/disass.el (re-disassemble): Autoload the command to
make it more discoverable.
---
 lisp/emacs-lisp/disass.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index 60881ab176b..8a4d2f6ffb9 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -292,6 +292,7 @@ disassemble-1
 	  (insert "\n")))))
   nil)
 
+;;;###autoload
 (defun re-disassemble (regexp &optional case-table)
   "Describe the compiled form of REGEXP in a separate window.
 If CASE-TABLE is non-nil, use it as translation table for case-folding.
-- 
2.44.0

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>