* Edebug and defuns not on top level
@ 2007-02-14 10:13 Lennart Borgman (gmail)
2007-02-14 10:15 ` David Kastrup
0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-02-14 10:13 UTC (permalink / raw)
To: Emacs Devel
If I use something like this
(when my-platform
(defun my-defun()
...
)
)
I can not directly evaluate my-defun with edebug-defun. What are the
recommendations to do in a case like this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edebug and defuns not on top level
2007-02-14 10:13 Edebug and defuns not on top level Lennart Borgman (gmail)
@ 2007-02-14 10:15 ` David Kastrup
2007-02-14 10:25 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2007-02-14 10:15 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> If I use something like this
>
> (when my-platform
> (defun my-defun()
> ...
> )
> )
>
> I can not directly evaluate my-defun with edebug-defun. What are the
> recommendations to do in a case like this?
I'd try narrow-to-region.
--
David Kastrup
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edebug and defuns not on top level
2007-02-14 10:15 ` David Kastrup
@ 2007-02-14 10:25 ` Lennart Borgman (gmail)
2007-02-14 10:29 ` David Kastrup
0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman (gmail) @ 2007-02-14 10:25 UTC (permalink / raw)
To: David Kastrup; +Cc: Emacs Devel
David Kastrup wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>
>> If I use something like this
>>
>> (when my-platform
>> (defun my-defun()
>> ...
>> )
>> )
>>
>> I can not directly evaluate my-defun with edebug-defun. What are the
>> recommendations to do in a case like this?
>
> I'd try narrow-to-region.
Thanks, that worked. This tip is so useful that I think it deserves a
place in the Info documentation.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Edebug and defuns not on top level
2007-02-14 10:25 ` Lennart Borgman (gmail)
@ 2007-02-14 10:29 ` David Kastrup
0 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2007-02-14 10:29 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> David Kastrup wrote:
>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>
>>> If I use something like this
>>>
>>> (when my-platform
>>> (defun my-defun()
>>> ...
>>> )
>>> )
>>>
>>> I can not directly evaluate my-defun with edebug-defun. What are the
>>> recommendations to do in a case like this?
>>
>> I'd try narrow-to-region.
>
>
> Thanks, that worked. This tip is so useful that I think it deserves a
> place in the Info documentation.
Well, it should also be possible to outdent the defun to column 1 by
deleting the leading blanks. narrow-to-region has merely the
advantage that it does not actually change the file (in the case of
Emacs Elisp source files, they might well be readonly for a user, and
fiddling with read-only settings or creating a local copy might be
less convenient).
--
David Kastrup
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-14 10:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-14 10:13 Edebug and defuns not on top level Lennart Borgman (gmail)
2007-02-14 10:15 ` David Kastrup
2007-02-14 10:25 ` Lennart Borgman (gmail)
2007-02-14 10:29 ` David Kastrup
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).