emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#13740: closed (About a coding convention)


From: GNU bug Tracking System
Subject: bug#13740: closed (About a coding convention)
Date: Fri, 07 Aug 2020 11:24:02 +0000

Your message dated Fri, 7 Aug 2020 04:23:22 -0700
with message-id 
<CADwFkmmhD_MFsTah+CG4QdGrOTnGfPc84R2zOupc4L0+VgGU6g@mail.gmail.com>
and subject line Re: bug#13740: About a coding convention
has caused the debbugs.gnu.org bug report #13740,
regarding About a coding convention
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
13740: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13740
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: About a coding convention Date: Mon, 18 Feb 2013 08:25:15 +0800
In (info "(elisp) Coding Conventions"):

   * Constructs that define a function or variable should be macros,
     not functions, and their names should start with `define-'.  The
     macro should receive the name to be defined as the first argument.
     That will help various tools find the definition automatically.
     Avoid constructing the names in the macro itself, since that would
     confuse these tools.

I think macros like `cl-defsubst', `cl-defun' should be mentioned here.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



--- End Message ---
--- Begin Message --- Subject: Re: bug#13740: About a coding convention Date: Fri, 7 Aug 2020 04:23:22 -0700 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Glenn Morris <rgm@gnu.org> writes:

> Xue Fuqiao wrote:
>
>> Constructs that define a function or variable should be macros, not
>> functions, and their names should start with `define-', except for
>> some macros in `cl-lib', like `cl-defsubst' and `cl-defun'.
>
> I don't think it is useful to list pre-existing exceptions to a general
> guideline.

Agreed.  Since no one else has voiced an opinion, I'm therefore closing
this bug report.

Best regards,
Stefan Kangas


--- End Message ---

reply via email to

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