hi,
I've found that i rarely want to actually to toggle a trace and that i often can't remeber if i'ev already traced the function at point or not. this patch changes slime-toggle-trace-fdefinition ot slime-trace-fdefinition. If no prefix argumnet is supplied tre function at point is traced, always, if one prefix argument is supplied it is untraced.
On 2/2/08, Marco Baringer mb@bese.it wrote:
I've found that i rarely want to actually to toggle a trace and that i often can't remeber if i'ev already traced the function at point or not. this patch changes slime-toggle-trace-fdefinition ot slime-trace-fdefinition. If no prefix argumnet is supplied tre function at point is traced, always, if one prefix argument is supplied it is untraced.
This fits my use-model pretty well -- I tend to turn trace on one function at a time, and then untrace the whole lot with (untrace). Most annoying to have to watch the minibuffer to make sure I don't accidentally trace something I've already traced...
Cheers,
-- Nikodemus
FWIW, I like this behavior better too.
On Feb 2, 2008, at 4:50 PM, Nikodemus Siivola wrote:
On 2/2/08, Marco Baringer mb@bese.it wrote:
I've found that i rarely want to actually to toggle a trace and that i often can't remeber if i'ev already traced the function at point or not. this patch changes slime-toggle-trace-fdefinition ot slime-trace-fdefinition. If no prefix argumnet is supplied tre function at point is traced, always, if one prefix argument is supplied it is untraced.
This fits my use-model pretty well -- I tend to turn trace on one function at a time, and then untrace the whole lot with (untrace). Most annoying to have to watch the minibuffer to make sure I don't accidentally trace something I've already traced...
Cheers,
-- Nikodemus _______________________________________________ slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
* Marco Baringer [2008-02-02 21:43+0100] writes:
hi,
I've found that i rarely want to actually to toggle a trace and that i often can't remeber if i'ev already traced the function at point or not.
C-c C-t prints the status. So, if you can't remember whether a function is traced: toggle two times. But I guess most people don't bother to think so far; the enable/disable version of the commands is probably easier to use than the toggle variant.
this patch changes slime-toggle-trace-fdefinition ot slime-trace-fdefinition. If no prefix argumnet is supplied tre function at point is traced, always, if one prefix argument is supplied it is untraced.
The prefix argument was already used for another purpose: to enable (unreliable) parsing on the Emacs side, for labels etc. I would prefer to disable that parsing instead of enabling it.
Helmut.