all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, xemacs-beta@xemacs.org
Subject: Re: Suggest FSF incorporation of XEmacs schema to cleanly suppress byte-compilation warnings
Date: Wed, 08 Dec 2004 20:11:34 -0500	[thread overview]
Message-ID: <87wtvsqplx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <001901c4dc4e$09a8e540$210110ac@NEEEEEEE> (Ben Wing's message of "Tue, 7 Dec 2004 05:15:19 -0600")

> Hello.  We have had running in XEmacs for two years or more some routines I
> wrote to cleanly handle byte-compilation warnings.  The problem was that
> many byte-compilation warnings were unavoidable when doing legitimate
> things.  I came up with a clean solution to this problem and it has worked
> very well; all of the XEmacs core elisp code is now completely warning-free.
> I propose that this be incorporated into GNU Emacs as well.  If agreed, I
> will sign papers and do whatever else is needed.  I am the only author of
> this code.

I agree it's important that every warning message can be avoided in case of
legitimate code.

> (defmacro if-boundp (variable then &rest else)
> (defmacro when-boundp (variable &rest body)
> (defmacro if-fboundp (function then &rest else)
> (defmacro when-fboundp (function &rest body)

These are unneeded in Emacs-CVS since the byte-compiler automatically
recognizes things like (if (boundp 'foo) ...).

> (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.

> (defmacro globally-declare-boundp (variables)

We already have that with the special form (defvar foo)

> (defmacro globally-declare-fboundp (functions)

Such a feature would be very helpful.  Someone recently suggested to use the
special form (defun foo) for that, which I think would be perfect.

> (defmacro declare-boundp (variable)
> (defmacro declare-fboundp (form)
> (defmacro with-boundp (variables &rest body)
> (defmacro with-fboundp (functions &rest body)

> (defmacro with-byte-compiler-warnings-suppressed (type &rest body)
> (defmacro with-obsolete-variable (symbol &rest body)
> (defmacro with-obsolete-function (symbol &rest body)

I'm all for it,


        Stefan

  parent reply	other threads:[~2004-12-09  1:11 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 [this message]
2004-12-09 22:06   ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=87wtvsqplx.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.