* Re: better error messages in my *Messages* buffer?
[not found] <mailman.17570.1395256643.10748.help-gnu-emacs@gnu.org>
@ 2014-03-19 19:25 ` Joost Kremers
2014-03-20 2:04 ` Marcin Borkowski
2014-03-20 16:44 ` ian.tegebo
1 sibling, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2014-03-19 19:25 UTC (permalink / raw)
To: help-gnu-emacs
kleinerdrache@gmx.at wrote:
> error in process filter: Wrong type argument: listp, [...]
>
> What do you do in that case to find out which line of your code creates
> that error?
`M-x toggle-debug-on-error is the first thing that comes to mind. Or do
`M-x debug-on-entry RET <your_function> RET'. Make sure the relevant
functions are not byte-compiled. And read up on the debugger:
(info "(elisp) Debugging")
(info "(elisp) Debugger")
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: better error messages in my *Messages* buffer?
2014-03-19 19:25 ` better error messages in my *Messages* buffer? Joost Kremers
@ 2014-03-20 2:04 ` Marcin Borkowski
0 siblings, 0 replies; 4+ messages in thread
From: Marcin Borkowski @ 2014-03-20 2:04 UTC (permalink / raw)
To: help-gnu-emacs
Dnia 2014-03-19, o godz. 19:25:03
Joost Kremers <joost.m.kremers@gmail.com> napisał(a):
> kleinerdrache@gmx.at wrote:
> > error in process filter: Wrong type argument: listp, [...]
> >
> > What do you do in that case to find out which line of your code
> > creates that error?
>
> `M-x toggle-debug-on-error is the first thing that comes to mind. Or
> do `M-x debug-on-entry RET <your_function> RET'. Make sure the
> relevant functions are not byte-compiled. And read up on the debugger:
>
> (info "(elisp) Debugging")
> (info "(elisp) Debugger")
>
Also, Edebug comes to mind.
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: better error messages in my *Messages* buffer?
[not found] <mailman.17570.1395256643.10748.help-gnu-emacs@gnu.org>
2014-03-19 19:25 ` better error messages in my *Messages* buffer? Joost Kremers
@ 2014-03-20 16:44 ` ian.tegebo
1 sibling, 0 replies; 4+ messages in thread
From: ian.tegebo @ 2014-03-20 16:44 UTC (permalink / raw)
To: help-gnu-emacs
Other people have suggested reading the manual regarding debugging and Edebug in particular; I'd agree with that. However, *Messages* really should report from where and when a message arrived. I used the following as a basis for my own tweaking:
http://www.emacswiki.org/emacs/DebugMessages
By itself, I think the above hack is a bit too noisy. In particular, it interrupts completion in the minibuffer.
On Wednesday, March 19, 2014 12:17:05 PM UTC-7, kleine...@gmx.at wrote:
> Hi there,
>
>
>
> learing elisp is fun, but debugging isn't for me at the moment.
>
> >From ruby and from python I'm spoiled with additional info like
>
>
>
> Error X in file Y line Z
>
>
>
> but my *Messages* buffer just tells me:
>
>
>
> error in process filter: Wrong type argument: listp, [...]
>
>
>
> What do you do in that case to find out which line of your code creates
>
> that error?
>
>
>
> Thanks,
>
> Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* better error messages in my *Messages* buffer?
@ 2014-03-19 19:17 kleinerdrache
0 siblings, 0 replies; 4+ messages in thread
From: kleinerdrache @ 2014-03-19 19:17 UTC (permalink / raw)
To: emacs
Hi there,
learing elisp is fun, but debugging isn't for me at the moment.
From ruby and from python I'm spoiled with additional info like
Error X in file Y line Z
but my *Messages* buffer just tells me:
error in process filter: Wrong type argument: listp, [...]
What do you do in that case to find out which line of your code creates
that error?
Thanks,
Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-20 16:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.17570.1395256643.10748.help-gnu-emacs@gnu.org>
2014-03-19 19:25 ` better error messages in my *Messages* buffer? Joost Kremers
2014-03-20 2:04 ` Marcin Borkowski
2014-03-20 16:44 ` ian.tegebo
2014-03-19 19:17 kleinerdrache
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).