unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Barry Fishman <barry_fishman@acm.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: "Warning: `save-excursion' defeated by `set-buffer'" madness
Date: Sun, 14 Feb 2010 14:38:13 -0500	[thread overview]
Message-ID: <m3aavbbobe.fsf@barry_fishman.acm.org> (raw)
In-Reply-To: <jwvfx53n5jm.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 14 Feb 2010 11:32:00 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> > Is there any way I can get rid of these warnings globally?  It's
>>> > really annoying to have *Compile-Log* pop up every now and then.
>>> I put the following in my .emacs file:
>>> ;; Shut off compiler error pop-up warning about
>>> ;;    save-excursion defeated by set-buffer
>>> (setq byte-compile-warnings '(not suspicious))
>> Oh, great, thanks!
>> I knew there had to be a way...
>
> I really hope you did first report the warning to get it fixed.  I
> currently only know of one external package (BBDB) where this warnings
> pops up like this, so if you're using BBDB, try to install a newer
> version.

You think a new version would help?  The CVS head of BBDB still looks
like it would generate the compiler warning.  Not to mention w3m, w3,
and possibly other packages used with Gnus, that I don't feel like
scanning through at the moment.  They are easy enough to find just using
grep.

I do report problems that I find to the appropriate developers.  In this
case the issue is not necessarily a true bug but more a statement about
how the Emacs code should be written.  It is not the kind of thing I
feel I should be enforcing.  If you can't get these things fixed
upstream, why do you think I can?  I did fix all of my own code, and the
packages that I use that no longer had upstream support.

I send an off-list message to Štěpán because he did not seem to be
getting a reply from anyone on the list, and I thought it seemed cruel
to have him suffer because the Emacs developers want to send an annoying
message to the external package developers.  There already had been
discussion on the list about the issue, and I saw no value in going over
it again.  I just showed him what he wanted, which is how to shut off
the message, which nobody else seemed to have posted to the list.

I run repo versions of Emacs and the external Emacs packages that I use,
when they are avaliable.  In part it is in self defence.  The
development versions tend to be reliable, and when interfaces are
changed it usually happens one at time, rather that all at once.  This
gives me an opportunity to fix them in my code.  I do report bugs that I
find (and patches if I can) to the upstream developers.

If I just used releases, I would see multiple problems all at once, and
have to go back through the development mailing list to figure out what
to do, long after any discussion was over.  I have too much of my own
code for that approach to work.

-- 
Barry Fishman




  parent reply	other threads:[~2010-02-14 19:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-12 20:40 "Warning: `save-excursion' defeated by `set-buffer'" madness Štěpán Němec
     [not found] ` <m3zl3c3fl4.fsf@barry_fishman.acm.org>
2010-02-14  0:17   ` Štěpán Němec
     [not found]     ` <jwvfx53n5jm.fsf-monnier+emacs@gnu.org>
2010-02-14 19:38       ` Barry Fishman [this message]
2010-02-15 11:19         ` Štěpán Němec
2010-02-15 15:44           ` Drew Adams
     [not found]           ` <jwv3a12bmqj.fsf-monnier+emacs@gnu.org>
2010-02-15 15:50             ` Štěpán Němec
2010-02-15 17:53               ` Drew Adams
     [not found]               ` <jwvk4ue8e8u.fsf-monnier+emacs@gnu.org>
2010-02-15 21:56                 ` Drew Adams

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=m3aavbbobe.fsf@barry_fishman.acm.org \
    --to=barry_fishman@acm.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).