help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defun Self Documentation


From: tomas
Subject: Re: Defun Self Documentation
Date: Thu, 5 Nov 2020 16:45:38 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Nov 05, 2020 at 04:16:09PM +0100, Christopher Dimech wrote:
> 
> When using defun, can one include a Self Documenting string or is
> Self-Documentation only applicable for interactive functions?
> 
> (defun Gdn ()
>    "Description"
>    Body ...
> )

No need to be interactive.

Minor nit: convention in Lisp is

  (defun Gdn ()
     "Description"
     Body ... )

i.e. closing parens don't get a line of their own. Readers will
thank you :)

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]