* Emacs debugging help...
@ 2002-10-24 18:01 eric
2002-10-24 20:19 ` D. Goel
2002-11-02 17:47 ` Ivan Kanis
0 siblings, 2 replies; 4+ messages in thread
From: eric @ 2002-10-24 18:01 UTC (permalink / raw)
Hello All,
I've recently decided to begin developing and debugging emacs lisp
programs. However, I'm not sure how to use the debugger, and, for
anything more complicated than a simple function, the documentation
I've discovered is less than adequate.
The particulars of the current situation are:
I'm using VM for reading mail. When my sister sends me email from
work, she uses Microsoft Outlook, which writes HTML mail. Now, I know
this is wrong, and I've tried to convince her otherwise, but at this
point the politics are less interesting to me than the technology. In
any case, VM tries to display the HTML email with w3, and w3 fails
(somewhere). However, VM is written well, and catches the error, and
does something else. I want to figure out what went wrong, that I
might fix it.
VM reports the failure to *Messages* as
Inline HTML display failed: (wrong-type-argument stringp nil)
which is generated in a particular function in a
(condition-case
...)
Now, when I set 'debug-on-error' to t, Emacs doesn't drop into the
debugger at the time this error is raised. I guess that's because it
doesn't pick this up as an error, (because the error never makes it to
the toplevel?) and I have no debugging information; just the (sort of)
bad behaviour.
Now, if I put a
(debug)
just before the function call in the VM source code, recompile and
reinstall, I get into the (not too well understood by me yet) debugger
at around the right time, but then there's still reams of code to step
through (manually, with the 'd' key).
Clearly, there has to be a better way. What am I missing?
What I'm looking for are useful tips, tricks, and general debugging
advice, that I might be a more productive and useful member of the
community.
I have the latest VM and w3 sources, and would like to understand
these projects better. I figure that fixing things which bother me is
a good way to start.
Thanks,
Eric
**
Eric Moncrieff eric@mantis.styx.org
"If, in your bold creative way, you hold yourself free to draw a
giraffe with a short neck, you will really find that you are not
free to draw a giraffe." --G. K. Chesterton
**
GPG Fingerprint: C278 AECC 3292 C26B E9DA 0FD7 EE20 4AA7 E1AD 0D79
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs debugging help...
2002-10-24 18:01 Emacs debugging help eric
@ 2002-10-24 20:19 ` D. Goel
2002-11-02 17:47 ` Ivan Kanis
1 sibling, 0 replies; 4+ messages in thread
From: D. Goel @ 2002-10-24 20:19 UTC (permalink / raw)
eric@mantis.styx.org writes:
[...]
>
> Clearly, there has to be a better way. What am I missing?
You could try (find-function) to go to the suspected function and then
(edebug-defun) .. see the manual for the latter..
DG http://deego.gnufans.org/~deego/
--
RMS on Treacherous Computing and Digital Restrictions Management ---
http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs debugging help...
2002-10-24 18:01 Emacs debugging help eric
2002-10-24 20:19 ` D. Goel
@ 2002-11-02 17:47 ` Ivan Kanis
1 sibling, 0 replies; 4+ messages in thread
From: Ivan Kanis @ 2002-11-02 17:47 UTC (permalink / raw)
eric> I'm using VM for reading mail. When my sister sends me
eric> email from work, she uses Microsoft Outlook, which writes
eric> HTML mail. Now, I know this is wrong, and I've tried to
eric> convince her otherwise, but at this point the politics are
eric> less interesting to me than the technology.
I know the problem, here is the cure.
I looked at Outlook Express and it possible to turn off html e-mail
per recipient. Here are the instructions to send to your sister:
Tools -> Address Book
Select my name in the list of addresses
Click on the properties button
Click on the "name" tab
Check the checkbox that says "Send e-mail with plain text only"
Ivan
--
/-----------------------------------------------------------------------------*
| "The books that the world calls immoral are the books | Ivan Kanis |
| that show the world its own shame." | ivank@juliva.com |
| (Oscar Wilde) | www.juliva.com |
*-----------------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Emacs debugging help...
@ 2002-11-04 15:32 Bingham, Jay
0 siblings, 0 replies; 4+ messages in thread
From: Bingham, Jay @ 2002-11-04 15:32 UTC (permalink / raw)
Ivan,
You gave the instructions for Outlook Express, Eric said Outlook. They are different.
The only per addressee option that I found in Outlook is to always send in rich text rich text format. I don't think that this will help Eric either.
-_
J_)
C_)ingham
. HP - NonStop Austin Software & Services - Software Product Assurance
. Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-
-----Original Message-----
From: Ivan Kanis [mailto:ivank@juliva.com]
Sent: Saturday, November 02, 2002 11:48 AM
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs debugging help...
eric> I'm using VM for reading mail. When my sister sends me
eric> email from work, she uses Microsoft Outlook, which writes
eric> HTML mail. Now, I know this is wrong, and I've tried to
eric> convince her otherwise, but at this point the politics are
eric> less interesting to me than the technology.
I know the problem, here is the cure.
I looked at Outlook Express and it possible to turn off html e-mail
per recipient. Here are the instructions to send to your sister:
Tools -> Address Book
Select my name in the list of addresses
Click on the properties button
Click on the "name" tab
Check the checkbox that says "Send e-mail with plain text only"
Ivan
--
/-----------------------------------------------------------------------------*
| "The books that the world calls immoral are the books | Ivan Kanis |
| that show the world its own shame." | ivank@juliva.com |
| (Oscar Wilde) | www.juliva.com |
*-----------------------------------------------------------------------------/
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-04 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-24 18:01 Emacs debugging help eric
2002-10-24 20:19 ` D. Goel
2002-11-02 17:47 ` Ivan Kanis
-- strict thread matches above, loose matches on Subject: below --
2002-11-04 15:32 Bingham, Jay
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.