all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.