From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Emery Newsgroups: gmane.emacs.help Subject: Re: Emacs 21 and w3 on Debian Date: Mon, 23 May 2005 11:57:48 +0200 Organization: Home, France Message-ID: <87wtpq1cyr.fsf@spamfoil.invalid> References: <87sm0fbjx4.fsf@tiger.rapttech.com.au> <874qcvqar0.fsf@spamfoil.invalid> <87oeb2c2x5.fsf@tiger.rapttech.com.au> <87psvipco6.fsf@spamfoil.invalid> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1116844717 21939 80.91.229.2 (23 May 2005 10:38:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 May 2005 10:38:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 23 12:38:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DaAHP-0008I0-LO for geh-help-gnu-emacs@m.gmane.org; Mon, 23 May 2005 12:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DaAKq-0007Zo-47 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 May 2005 06:39:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.ip.ndsoftware.net!proxad.net!infeed-1.proxad.net!news3-e.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: T-gnus/6.17.3 (based on No Gnus v0.3) SEMI/1.14.6 (Maruoka)FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.0.50 (gnu/linux) MULE/5.0 (SAKAKI) Cancel-Lock: sha1:tjmcCa3NROJH4rg50fbPPYUm53w= Original-Lines: 40 Original-NNTP-Posting-Date: 23 May 2005 11:57:27 MEST Original-NNTP-Posting-Host: 82.233.241.49 Original-X-Trace: 1116842247 news3-e.free.fr 6530 82.233.241.49:43613 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:131468 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26924 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26924 Klaus Straubinger writes: > Thierry Emery wrote: > >> (defadvice w3-finalize-image-download (around set-inhibit-read-only activate) >> (let ((inhibit-read-only t)) >> ad-do-it)) > > Thank you for your improvements. They work good for me. > Do have any possibility to bring them into the CVS version? I have a CVS client installed, if that is what you are asking ? Who is in charge of the CVS version you mention ? >> (defadvice widget-image-value-create (around set-inhibit-read-only activate) >> (let ((inhibit-read-only t)) >> ad-do-it)) > > Is this really necessary? Oops, no -- i had written it chronologically before the first `defadvice' and have not checked afterwards whether it was still useful ... thanks for testing it ! > I have been able to achieve good results with the following: > > (defadvice widget-image-value-set (around set-point activate) > (save-excursion > (let ((p (widget-get (ad-get-arg 0) 'where))) > (if p (goto-char p))) > ad-do-it)) > > This avoids redefining the whole function and using eval-after-load. Yes, this is more elegant on the user side ! Thierry -- thierry |dot| emery |at| free |dot| fr