[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: edit-definition from backtrace
- To: Tom McDougal <mcdougal@gargoyle.uchicago.edu>
- Subject: Re: edit-definition from backtrace
- From: Bill St. Clair <bill>
- Date: Tue, 11 Sep 90 17:35:46 -0400
- Cc: info-macl@cambridge.apple.com
- In-reply-to: Your message of Tue, 11 Sep 90 14:20:39 -0500. <9009111920.AA00297@tartarus.uchicago.edu>
On the rare occasion that I hit an error :-), I often want
to be able to jump directly from the backtrace stack to a
function definition. This requires
1) double-clicking on the function to get a window
with data on that function
2) double-clicking on "Edit definition"
This would seem to be a common enough sequence that there
should be a shortcut. Clicking on the function and pressing
Option-. would seem to be a natural shortcut, but it doesn't
work.
If a shortcut exists, a friendly pointer to it would be, well,
friendly. :-) If one does not exist, let me now petition for
this capability in a future version of MACL.
The following will cause <option>-clicking on the top pane of the backtrace
dialog to edit the definition, if it can be found. This feature will be
globally available in the new inspector for MACL 2.0.
---------------------------------------------------------------------------
(defobfun (view-click-event-handler ccl::*backtrace-dialog-class*) (where)
(usual-view-click-event-handler where)
(when (option-key-p)
(let* ((frame-dialog (second (dialog-items)))
(function (ask frame-dialog (objvar ccl::frame-lfun))))
(when (functionp function)
(edit-definition (function-name function))))))
-Bill