unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56483: Request to append string to the documentation of a function
@ 2022-07-10 15:20 carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-11 10:05 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-10 15:20 UTC (permalink / raw)
  To: 56483

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

Currently I am appending a string `str` to the documentation of a function `myfun` using

(put myfun 'function-documentation
       (concat
          (documentation myfun t)
           str)

Whilst the strategy works, this requires adding `str` after the function `myfun` has been defined.
Does there exist the possibility to add `str` directly inside the docstring of the function when I am
defining the function itself, avoiding the `(put` command mentioned earlier after the implementation
of the function myfun? 

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

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

* bug#56483: Request to append string to the documentation of a function
  2022-07-10 15:20 bug#56483: Request to append string to the documentation of a function carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-07-11 10:05 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-11 10:05 UTC (permalink / raw)
  To: carlmarcos; +Cc: 56483

carlmarcos@tutanota.com writes:

> Whilst the strategy works, this requires adding `str` after the
> function `myfun` has been defined.  Does there exist the possibility
> to add `str` directly inside the docstring of the function when I am
> defining the function itself, avoiding the `(put` command mentioned
> earlier after the implementation of the function myfun?

You can make a macro around `defalias'.  In any case, this is not an
Emacs bug -- if you need help using Emacs, use one of the appropriate
mailing lists for that.

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-07-11 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-10 15:20 bug#56483: Request to append string to the documentation of a function carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-11 10:05 ` Lars Ingebrigtsen

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