all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jidanni@jidanni.org
To: 10392@debbugs.gnu.org, help-gnu-emacs@gnu.org
Cc: yamaoka@jpl.org
Subject: bug#10392: I need to turn off defadvice warnings
Date: Sat, 07 Jan 2012 06:47:13 +0800	[thread overview]
Message-ID: <87boqga0hq.fsf_-___27265.7682690353$1325891616$gmane$org@jidanni.org> (raw)
In-Reply-To: <8739c4tmq8.fsf@jidanni.org>

OK,
(info "(elisp) Advising Functions")
should mention that advising functions will produce warnings.
And to turn off the warnings, one needs to (setq ad-redefinition-action 'accept),
and one cannot just turn them off for one advice, with e.g., let().

;(let ((ad-redefinition-action 'accept))
  (setq ad-redefinition-action 'accept)
  (defadvice gnus-summary-select-article-buffer (after jump-to-html-part
						     activate)
  "Jump to an html part that emacs-w3m rendered, if any."
  (unless (get-text-property (point) 'mm-inline-text-html-with-w3m)
    (let ((pos (text-property-any (point-min) (point-max)
				  'mm-inline-text-html-with-w3m t)))
      (gnus-goto-char pos))))
;)





  parent reply	other threads:[~2012-01-06 22:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 22:47 I need to turn off defadvice warnings jidanni
2011-12-28 21:22 ` bug#10392: mention ad-handle-definition startup warnings jidanni
2012-01-06 20:15   ` Glenn Morris
2012-01-06 22:47   ` jidanni [this message]
2012-01-06 22:47 ` I need to turn off defadvice warnings jidanni
2012-01-06 23:49 ` Tassilo Horn

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='87boqga0hq.fsf_-___27265.7682690353$1325891616$gmane$org@jidanni.org' \
    --to=jidanni@jidanni.org \
    --cc=10392@debbugs.gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yamaoka@jpl.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.