emacs-devel
[Top][All Lists]
Advanced

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

#2 [Was: Re: Function attributes for make-docfile]


From: Dmitry Antipov
Subject: #2 [Was: Re: Function attributes for make-docfile]
Date: Mon, 12 Jan 2015 15:28:19 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 01/12/2015 08:49 AM, Paul Eggert wrote:

Good idea, but I worry that the comments are fragile.  How about the following
idea for improving the proposed syntax?  Move the directives to be inside the
DEFUN, making it clearer that they're part
of the function definition mechanism.  Something like this, say:

   DEFUN ("eq", Feq, Seq, 2, 2, 0,
          doc: /* Return t if the two args are the same Lisp object.  */
          attribute: const)

and similarly for 'noreturn' instead of (or in addition to) 'const'.

Ah yes, this looks better, and not too hard to (re)implement.  The only
minor issue is that 'const' is unconditionally highlighted as a C keyword
but 'noreturn' isn't.

OK to install?

Dmitry

Attachment: function_attributes_2.patch
Description: Text Data


reply via email to

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