From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Re: Debugging new major mode Date: Tue, 16 Jun 2009 23:48:31 +0100 Message-ID: <1245192511.15893.0.camel@drserver> References: <11b141710906130707v1fcd6f0bm7db921f4d83b49e@mail.gmail.com> <87zlcb6c77.wl%xma@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245192621 11482 80.91.229.12 (16 Jun 2009 22:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2009 22:50:21 +0000 (UTC) Cc: emacs list To: Xavier Maillard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 00:50:17 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 1MGhTs-0008LS-00 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 00:50:16 +0200 Original-Received: from localhost ([127.0.0.1]:58305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGhTr-0007cI-1d for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2009 18:50:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGhSK-0006Yy-Tz for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 18:48:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGhSG-0006Q4-84 for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 18:48:40 -0400 Original-Received: from [199.232.76.173] (port=36757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGhSG-0006Pk-2n for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 18:48:36 -0400 Original-Received: from mail-ew0-f210.google.com ([209.85.219.210]:44493) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGhSE-0006gp-IJ; Tue, 16 Jun 2009 18:48:34 -0400 Original-Received: by ewy6 with SMTP id 6so717768ewy.42 for ; Tue, 16 Jun 2009 15:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=cY/PoV5SyiDPwJE/wAMVKT7fPIiO08iGdw91vLXWk7k=; b=e0XUC2ifAJhA5sDBIq2AlIwc1ReVV2T2LUk4d21WYMUhu2CTSc0Ue9oduhgmYb2epu yL/Z2oZr00ZjM8AUPzjepfAoiOGAaX2gDYisAsTVdpsCNaT0tO6B5gitIFoiqJq++Yxx x5eV5/DaUOVi6RV/ERFKE56sFB7yO01s/un+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=wkSs+jk/vfKnpAiTYSYAlLqrbFbIgLTkb72T5Vv8gWdC4tPkwb5QeRPEezHjxB5H3/ OD1aoQ4/7LHl5jnalywifoMkioOlwO/Q00u5lZuWWW2MUM42lHIuh3DoTJsKngGT56Cx zzzFG0Zj4taawuTGvuVbjvKMJn3ddHU5p5a/I= Original-Received: by 10.211.168.5 with SMTP id v5mr1899331ebo.15.1245192513634; Tue, 16 Jun 2009 15:48:33 -0700 (PDT) Original-Received: from ?192.168.1.2? ([92.24.85.65]) by mx.google.com with ESMTPS id 28sm394577eyg.54.2009.06.16.15.48.32 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Jun 2009 15:48:32 -0700 (PDT) In-Reply-To: <87zlcb6c77.wl%xma@gnu.org> X-Mailer: Evolution 2.26.2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65329 Archived-At: 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