unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Cross <tcross@tiger.rapttech.com.au>
Subject: Re: elisp help needed
Date: Sat, 04 Mar 2006 23:26:18 +1100	[thread overview]
Message-ID: <87irqumm51.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: 874q2hw029.fsf@laptop.rdc1.home

"Robert D. Crawford" <rdc1x@comcast.net> writes:

> RD <rjjd@localnet.com> 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.

  parent reply	other threads:[~2006-03-04 12:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01 16:58 elisp help needed Robert D. Crawford
2006-03-01 21:37 ` RD
2006-03-02 11:36   ` Robert D. Crawford
2006-03-02 13:28     ` elisp help needed [solved] Robert D. Crawford
2006-03-04 12:26     ` Tim Cross [this message]
2006-03-04 13:57       ` elisp help needed Robert D. Crawford
2006-03-02 12:50 ` Katsumi Yamaoka
2006-03-02 13:34   ` Robert D. Crawford
  -- strict thread matches above, loose matches on Subject: below --
2003-11-26 22:59 Elisp " Tassilo Horn
2003-11-27  6:29 ` Eli Zaretskii
     [not found] ` <mailman.693.1069918173.399.help-gnu-emacs@gnu.org>
2003-11-27  8:48   ` 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

  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=87irqumm51.fsf@tiger.rapttech.com.au \
    --to=tcross@tiger.rapttech.com.au \
    /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.
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).