unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: xemacs-beta@xemacs.org, emacs-devel@gnu.org
Subject: Re: Suggest FSF incorporation of XEmacs schema to cleanly suppress byte-compilation warnings
Date: Thu, 09 Dec 2004 17:06:07 -0500	[thread overview]
Message-ID: <E1CcWQJ-0005mL-Bn@fencepost.gnu.org> (raw)
In-Reply-To: <87wtvsqplx.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 08 Dec 2004 20:11:34 -0500)

    > (defmacro and-boundp (variable &rest args)
    > (defmacro and-fboundp (function &rest args)

    It'd be better to extend our byte-compiler trick to handle `and'
    additionally to if and cond.

I agree.

declare-boundp is not needed, since defvar does the same job.
with-byte-compiler-warnings-suppressed offers a little more control
that with-no-warnings, but practically speaking I don't see a need for
that extra control.  Using with-no-warnings around a small piece of
code suffices, practically speaking, to reduce the probability of
missing any useful warning to close enough to zero that it isn't
worth documenting another construct just to reduce it further.

There are some constructs suggested that I think would indeed be
useful: declare-fboundp, and perhaps with-boundp and with-fboundp.
However, someone else suggested using (defun foo) for the first,
which has the virtue of paralleling this use of defvar.
Whether the last two are useful enough to document, I am not sure.

I would not mind installing all the rest in a separate file just
for compatibility's sake, however.



      reply	other threads:[~2004-12-09 22:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07 11:15 Suggest FSF incorporation of XEmacs schema to cleanly suppress byte-compilation warnings Ben Wing
2004-12-07 21:36 ` Werner LEMBERG
2004-12-09  1:11 ` Stefan Monnier
2004-12-09 22:06   ` Richard Stallman [this message]

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=E1CcWQJ-0005mL-Bn@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=xemacs-beta@xemacs.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).