[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] emacspeak-w3m.el and problems

Can someone expand on why the use of macros is a problem? I'm
interested as I've been looking at providing emacspeak support for an
application and have been experiencing problems with advising one of
the functions. I really wanted to know if there is an issue with using
defadvice and macros that I may not be aware of and I'm always
intrested in knowing more about elisp and possible limitations/issues
that may exist with using things like macros.

In my current problem, there is a function which controls display of
some data in another window. I originally thought I could advise this
function so that after it was called, emacspeak would speak the
contents of the window. However, its not turned out to be that simple.
As soon as I advise the function, it stops working correctly - it no
longer scrolls the information in the other window. Even if I just
advise the function without doing anything but essentially putting a
defadvice wrapper around it, the behavior of the function changes. 

I then tried to be a bit clever and redefined the key the function was
bound to to another function which just calls the display function and
then emacspeak to speak the window. This also changes the behavior of
the original display function. The window will get spoken, but it does
not scroll when you hit the key as it is supposed to. 

The function in question is definitely a function, but it does use a
number of macros and I'm wondering if there is some weird macro
expansion going on that I'm not understanding. 


> I'm not on the w3m lists -- so at least I've not made them aware
> of this. If you and others use w3m heavily, I suggest you join
> their mailing list and contribute -- I'm sure they will be receptive.
> >>>>> "Robert" == Robert D Crawford <rdc1x@comcast.net> writes:
>     Robert> "T. V. Raman" <raman@users.sf.net> writes:
>     >> many of these errors are because things that shouldn't be
>     >> macros are defined as macros in w3m --- see my earlier
>     >> message about cleaning up w3m itself and changing those to
>     >> defsubst where appropriate.
>     Robert> 
>     Robert> OK, as long as I know it wasn't something I did.
>     Robert> 
>     Robert> Have the developers of w3m been made aware of their
>     Robert> errors?  I have no idea what is appropriate where, so
>     Robert> it wouldn't do any good for me to post a message to
>     Robert> them.
>     Robert> 
>     Robert> Thanks, rdc -- Robert D. Crawford rdc1x@comcast.net
>     Robert> 
>     Robert> "The only real way to look younger is not to be born
>     Robert> so soon."  -- Charles Schulz, "Things I've Had to
>     Robert> Learn Over and Over and Over"
>     Robert> 
>     Robert> -----------------------------------------------------------------------------
>     Robert> To unsubscribe from the emacspeak list or change your
>     Robert> address on the emacspeak list send mail to
>     Robert> "emacspeak-request@cs.vassar.edu" with a subject of
>     Robert> "unsubscribe" or "help"
> -- 
> Best Regards,
> --raman
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman 
> IRC:    irc://irc.freenode.net/#emacs
> -----------------------------------------------------------------------------
> To unsubscribe from the emacspeak list or change your address on the
> emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
> subject of "unsubscribe" or "help"

To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"

Emacspeak Files | Subscribe | Unsubscribe | Search