From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.help Subject: Re: elisp help needed Date: Sat, 04 Mar 2006 23:26:18 +1100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87irqumm51.fsf@tiger.rapttech.com.au> References: <87irqygkzs.fsf@laptop.rdc1.home> <44061409.9080708@localnet.com> <874q2hw029.fsf@laptop.rdc1.home> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141686562 9225 80.91.229.2 (6 Mar 2006 23:09:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:09:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:09:21 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGOpG-0006jk-Qw for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:09:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGOpF-0001tL-QT for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:09:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!image.surnet.ru!mtu.ru!sn-xt-sjc-15!sn-xt-sjc-08!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:+vuSrfdDm8ACh/NWib7s8zEzT8Y= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 66 Original-Xref: shelby.stanford.edu gnu.emacs.help:137917 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:33566 Archived-At: "Robert D. Crawford" writes: > RD writes: > >> Robert D. Crawford wrote: >>> I have the following lines in my .emacs file: >> >> (remove-hook 'w3m-after-cursor-move-hook #'w3m-print-this-url) >> >>and for some >>> reason, to get it to eval I have to do it by hand every time I >>> restart emacs. I *think* this might be the only code that is not >>> being evaled, but I do not know any way to be certain. I know that >>> there are things below this line that are being correctly evaled. >>> All the code in the customize section seems to be ok, and I have a >>> function that byte-compiles .el files when they are saved that works. >>> Is there some way to know what is being evaled? Thanks, rdc >>> >> >> I use the old "print" method. I salt my .emacs file with (message >> "blah") commands to report progress. > > Yeah, I thought about doing this, but it seemed there should be a better > way. >> >> Is there a command after the remove-hook that puts the hook back? > > That is a good question. I looked at the documentation for the > function and it says: > > w3m-print-this-url is an interactive compiled Lisp function in `w3m'. > (w3m-print-this-url &optional INTERACTIVE-P) > > Display the url under point in the echo area and put it into `kill-ring'. > > This function is advised. > > After-advice `emacspeak': > Produce auditory icon. > > The changes that emacspeak makes on the hook come from the file > emacspeak-w3m.el I think. I guess it could be that the file is not > loaded until after the .emacs file is loaded and w3m is started for the > first time. I am going to put some message lines in the file to see > when it is loaded. > > If it is the case that the file is not loaded until after my .emacs, > what can be done to take care of this, outside of editing the source of > the file itself? I think that is a very bad idea. > Robert, I think something changed in the emacspeak-w3m which stops this workaround for removing that function. However, if you look into the customize group for w3m, you will find there is a hook variable which adds that function, so you can just remove it. From memory, it is w3m-after-cursor-move-hook. Tim -- Tim Cross tcross@rapttech.com.au There are two types of people in IT - those who do not manage what they understand and those who do not understand what they manage.