GNU bug report logs - #52978
Add doc string indices to easy-mmode macros

Previous Next

Package: emacs;

Reported by: Ivan Sokolov <ivan-p-sokolov <at> ya.ru>

Date: Mon, 3 Jan 2022 14:34:02 UTC

Severity: normal

Tags: patch

Fixed in version 29.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Sokolov <ivan-p-sokolov <at> ya.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: Add doc string indices to easy-mmode macros
Date: Mon, 03 Jan 2022 17:33:13 +0300
[Message part 1 (text/plain, inline)]
Subj.

[0001-Add-doc-string-indices-to-easy-mmode-defmap-and-easy.patch (text/x-patch, inline)]
From 3004d0b94127e2af023345943c56a36787deabe6 Mon Sep 17 00:00:00 2001
From: Ivan Sokolov <ivan-p-sokolov <at> ya.ru>
Date: Mon, 3 Jan 2022 17:21:55 +0300
Subject: [PATCH] Add doc string indices to easy-mmode-defmap and
 easy-mmode-defsyntax

---
 lisp/emacs-lisp/easy-mmode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 2d95e91833..cf3ea8c3dd 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -697,7 +697,7 @@ easy-mmode-defmap
   "Define a constant M whose value is the result of `easy-mmode-define-keymap'.
 The M, BS, and ARGS arguments are as per that function.  DOC is
 the constant's documentation."
-  (declare (indent 1))
+  (declare (doc-string 3) (indent 1))
   `(defconst ,m
      (easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args))
      ,doc))
@@ -724,7 +724,7 @@ easy-mmode-define-syntax
 (defmacro easy-mmode-defsyntax (st css doc &rest args)
   "Define variable ST as a syntax-table.
 CSS contains a list of syntax specifications of the form (CHAR . SYNTAX)."
-  (declare (indent 1))
+  (declare (doc-string 3) (indent 1))
   `(progn
      (autoload 'easy-mmode-define-syntax "easy-mmode")
      (defconst ,st (easy-mmode-define-syntax ,css ,(cons 'list args)) ,doc)))
-- 
2.34.1


This bug report was last modified 3 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.