emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edebug and defuns not on top level


From: David Kastrup
Subject: Re: Edebug and defuns not on top level
Date: Wed, 14 Feb 2007 11:29:13 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> David Kastrup wrote:
>> "Lennart Borgman (gmail)" <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]