From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: Debugging new major mode Date: Sat, 13 Jun 2009 23:44:28 +0200 Organization: GNU's Not UNIX! Message-ID: <87zlcb6c77.wl%xma@gnu.org> References: <11b141710906130707v1fcd6f0bm7db921f4d83b49e@mail.gmail.com> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1244929500 2788 80.91.229.12 (13 Jun 2009 21:45:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 21:45:00 +0000 (UTC) Cc: emacs list To: "Paulo J. Matos" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 23:44:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MFb20-0003zv-Mb for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 23:44:56 +0200 Original-Received: from localhost ([127.0.0.1]:52135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFb20-0002av-4q for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 17:44:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFb1f-0002aq-Oj for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 17:44:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFb1b-0002a8-Vl for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 17:44:35 -0400 Original-Received: from [199.232.76.173] (port=48596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFb1b-0002a5-Md for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 17:44:31 -0400 Original-Received: from out2.smtp.messagingengine.com ([66.111.4.26]:55584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFb1b-0000vq-87 for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 17:44:31 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id DBDAD35F7ED; Sat, 13 Jun 2009 17:44:30 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 13 Jun 2009 17:44:30 -0400 X-Sasl-enc: AhfzSd9qrcBSDyi+pJtlhLe/TU1sBMgbU25REKPWl6zh 1244929470 Original-Received: from zogzog.maillard.im.zogzog.maillard.im (cha51-2-82-244-211-40.fbx.proxad.net [82.244.211.40]) by mail.messagingengine.com (Postfix) with ESMTPSA id 37EB348CA2; Sat, 13 Jun 2009 17:44:30 -0400 (EDT) In-Reply-To: <11b141710906130707v1fcd6f0bm7db921f4d83b49e@mail.gmail.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) Jabber-ID: xma01@jabber.fr X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65269 Archived-At: 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