unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Štepán Nemec'" <stepnem@gmail.com>,
	"'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, 'Barry Fishman' <barry_fishman@acm.org>
Subject: RE: "Warning: `save-excursion' defeated by `set-buffer'" madness
Date: Mon, 15 Feb 2010 09:53:42 -0800	[thread overview]
Message-ID: <44EB0E48B6F54339816DDEC847B669AD@us.oracle.com> (raw)
In-Reply-To: <20100215155054.GC2289@headley>

> So it's BBDB-related again, but really Icicles-initiated in 
> this case. I didn't suspect Icicles originally, as I had it off when invoking
> `ibuffer', but now that I tried not even requiring Icicles in my init file,
> the problem goes away. Also, even with Icicles loaded, it only happens
> the first time `ibuffer' is invoked; so it's probably related to all
> those re-initializations Icicles is doing; I'm cc-ing Drew in case he
> was interested (icicles.el is Update #: 22624).

Thanks. Feel free to follow up with me off list. Sorry for the inconvenience.

Yes, Icicles toggles Icicle mode twice after you load ibuffer, in order to bind
`M-s i' in `ibuffer-mode-map' to command `icicle-search-ibuffer-marked' (only
when Icicle mode is on).

Your backtrace indicates that `choose-completion-string' is advised. Icicles
does not advise it (instead, it uses `defalias' to redefine it when in Icicle
mode). BBDB advises it, in file `bbdb-com.el'. That explains why the backtrace
for byte-compiling function `choose-completion-string' shows `(if
bbdb-complete-name-callback-data (save-excursion ... ...))'.

In the latest version of Icicles, advice is automatically deactivated (when in
Icicle mode) for any of the standard functions that Icicles redefines (see
variable `icicle-redefined-functions'). (The advice is re-activated when you
quit Icicle mode.) So this problem should not arise in the latest Icicles
version. 

But using BBDB in Icicle mode will no longer use the BBDB advice, which might
pose a problem (the advice deletes the completed BBDB name before replacing it).
You can modify the value of `icicle-redefined-functions' to allow the BBDB
advice (hence to also get back the byte-compiler warning).





  reply	other threads:[~2010-02-15 17:53 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
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 [this message]
     [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=44EB0E48B6F54339816DDEC847B669AD@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=barry_fishman@acm.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stepnem@gmail.com \
    /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).