Subject: bug#10392: closed (Re: bug#10392: mention ad-handle-definition startup warnings)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 06 Jan 2012 20:20:02 +0000

Your bug report

#10392: mention ad-handle-definition startup warnings

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
10392: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10392
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#10392: mention ad-handle-definition startup warnings
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Fri, 06 Jan 2012 15:15:25 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

tags 10392 notabug
stop

[email-masked] wrote:

> doesn't mention that e.g., putting
>
> (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))))
>
> in .gnus.el will cause startup warnings
>
>    ad-handle-definition: `gnus-summary-select-article-buffer' got redefined

By itself, it does not.

> for the rest of one's life, with no mention of workarounds to turn them
> off either.

C-h v ad-redefinition-action

Ask on help-gnu-emacs if you need more explanation about using advice.

Subject: mention ad-handle-definition startup warnings
From: [email-masked]
To: [email-masked]
Cc: [email-masked]
Date: Thu, 29 Dec 2011 05:22:55 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

X-Debbugs-Cc: [email-masked]

(info "(elisp) Advising Functions")
doesn't mention that e.g., putting

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

in .gnus.el will cause startup warnings

   ad-handle-definition: `gnus-summary-select-article-buffer' got redefined

for the rest of one's life, with no mention of workarounds to turn them
off either.