unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52978: Add doc string indices to easy-mmode macros
@ 2022-01-03 14:33 Ivan Sokolov
  2022-01-09 15:45 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Sokolov @ 2022-01-03 14:33 UTC (permalink / raw)
  To: 52978

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

Subj.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-doc-string-indices-to-easy-mmode-defmap-and-easy.patch --]
[-- Type: text/x-patch, Size: 1345 bytes --]

From 3004d0b94127e2af023345943c56a36787deabe6 Mon Sep 17 00:00:00 2001
From: Ivan Sokolov <ivan-p-sokolov@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


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

* bug#52978: Add doc string indices to easy-mmode macros
  2022-01-03 14:33 bug#52978: Add doc string indices to easy-mmode macros Ivan Sokolov
@ 2022-01-09 15:45 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2022-01-09 15:45 UTC (permalink / raw)
  To: Ivan Sokolov; +Cc: 52978

close 52978 29.1
thanks

Ivan Sokolov <ivan-p-sokolov@ya.ru> writes:

> From 3004d0b94127e2af023345943c56a36787deabe6 Mon Sep 17 00:00:00 2001
> From: Ivan Sokolov <ivan-p-sokolov@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

Thanks for the patch!  I've fixed up the commit message and pushed it to
master as commit 4509095d79.





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

end of thread, other threads:[~2022-01-09 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 14:33 bug#52978: Add doc string indices to easy-mmode macros Ivan Sokolov
2022-01-09 15:45 ` Stefan Kangas

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