all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Debugging new major mode
@ 2009-06-13 14:07 Paulo J. Matos
  2009-06-13 21:44 ` Xavier Maillard
  0 siblings, 1 reply; 3+ messages in thread
From: Paulo J. Matos @ 2009-06-13 14:07 UTC (permalink / raw
  To: emacs list

Hi all,

I have implemented a new major mode, and I can now load it. I have a
file that uses my new mode and the new mode source code in diff
buffers. I use load-file to load the new mode, however, I am not so
sure this is the best method to do it. What is the best method to
debug the new mode?

Cheers,

-- 
Paulo Jorge Matos - pocmatos at gmail.com
http://www.pmatos.net




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging new major mode
  2009-06-13 14:07 Debugging new major mode Paulo J. Matos
@ 2009-06-13 21:44 ` Xavier Maillard
  2009-06-16 22:48   ` Paulo J. Matos
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Maillard @ 2009-06-13 21:44 UTC (permalink / raw
  To: Paulo J. Matos; +Cc: emacs list

Hi,

At Sat, 13 Jun 2009 15:07:33 +0100,
Paulo J. Matos wrote:
> 
> I have implemented a new major mode, and I can now load it. I have a
> file that uses my new mode and the new mode source code in diff
> buffers. I use load-file to load the new mode, however, I am not so
> sure this is the best method to do it. What is the best method to
> debug the new mode?

What do you mean by "debugging" ? What you can do is unit-tests
and see if it behaves the way you thought it should have
been. You can also try all commands/functions of your mode in a
-Q launched session.

Xavier




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugging new major mode
  2009-06-13 21:44 ` Xavier Maillard
@ 2009-06-16 22:48   ` Paulo J. Matos
  0 siblings, 0 replies; 3+ messages in thread
From: Paulo J. Matos @ 2009-06-16 22:48 UTC (permalink / raw
  To: Xavier Maillard; +Cc: emacs list

On Sat, 2009-06-13 at 23:44 +0200, Xavier Maillard wrote:
> Hi,
> 
> At Sat, 13 Jun 2009 15:07:33 +0100,
> Paulo J. Matos wrote:
> > 
> > I have implemented a new major mode, and I can now load it. I have a
> > file that uses my new mode and the new mode source code in diff
> > buffers. I use load-file to load the new mode, however, I am not so
> > sure this is the best method to do it. What is the best method to
> > debug the new mode?
> 
> What do you mean by "debugging" ? What you can do is unit-tests
> and see if it behaves the way you thought it should have
> been. You can also try all commands/functions of your mode in a
> -Q launched session.
> 

Thanks! :) That seems to be what I want!

> Xavier





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-16 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-13 14:07 Debugging new major mode Paulo J. Matos
2009-06-13 21:44 ` Xavier Maillard
2009-06-16 22:48   ` Paulo J. Matos

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.