unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: 13740@debbugs.gnu.org
Subject: bug#13740: About a coding convention
Date: Mon, 18 Feb 2013 08:25:15 +0800	[thread overview]
Message-ID: <20130218082515.6ed5dfd2988fa1090af99a10@gmail.com> (raw)

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





             reply	other threads:[~2013-02-18  0:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18  0:25 Xue Fuqiao [this message]
2013-02-19 19:55 ` bug#13740: About a coding convention Glenn Morris
2013-02-21  0:28   ` Xue Fuqiao
     [not found]     ` <8738wqa0sp@ch.ristopher.com>
2013-02-21  2:10       ` Xue Fuqiao
2013-02-21 15:21     ` Stefan Monnier
2013-02-21 17:01     ` Glenn Morris
2020-08-07 11:23       ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130218082515.6ed5dfd2988fa1090af99a10@gmail.com \
    --to=xfq.free@gmail.com \
    --cc=13740@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).