From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Phillip Lord" Newsgroups: gmane.emacs.help Subject: Debugging byte compiled files Date: Sat, 4 Mar 2006 16:54:15 -0000 Message-ID: <6942EE35B530F84EAD432959F5E4DAB501C4BA09@largo.campus.ncl.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1141500096 31460 80.91.229.2 (4 Mar 2006 19:21:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2006 19:21:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 20:21:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFcJr-0005t4-Bu for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Mar 2006 20:21:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFcJv-0005Je-DP for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Mar 2006 14:21:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FFa1P-0005az-7Y for help-gnu-emacs@gnu.org; Sat, 04 Mar 2006 11:54:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FFa1L-0005YY-Mn for help-gnu-emacs@gnu.org; Sat, 04 Mar 2006 11:54:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFa1L-0005YP-Iw for help-gnu-emacs@gnu.org; Sat, 04 Mar 2006 11:54:19 -0500 Original-Received: from [128.240.234.65] (helo=cheviot3.ncl.ac.uk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FFa3F-0002K6-7y for help-gnu-emacs@gnu.org; Sat, 04 Mar 2006 11:56:17 -0500 Original-Received: from largo.campus.ncl.ac.uk (largo.ncl.ac.uk [10.8.234.184]) by cheviot3.ncl.ac.uk (8.13.1/8.13.1) with ESMTP id k24Gs7v9022775 for ; Sat, 4 Mar 2006 16:54:07 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Debugging byte compiled files Thread-Index: AcY/rEU3j+H+lBFmTxqO/0KRAYqxdA== Original-To: X-Newcastle-MailScanner-Information: Please contact Postmaster@newcastle.ac.uk for more information X-Newcastle-MailScanner: Found to be clean X-Newcastle-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1) X-Newcastle-MailScanner-From: npl25@cpx.ncl.ac.uk 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:33537 Archived-At: I've recently found a bug in my own pabbrev.el package. It's taken me so long because it only occurs when the file is byte compiled and I don't routinely byte compile my own packages.=20 I think that the problem is coming from this macro... (defmacro pabbrev-save-buffer-modified-p (&rest body) "Eval BODY without affected buffer modification status" `(let ((buffer-modified (buffer-modified-p))) ,@body (set-buffer-modified-p buffer-modified))) the backtrace looks something like this... (macro . #[(&rest body) "\301\302\303=08\304\"BB\207" [body let ((buffer-modified (buffer-modified-p))) append ((set-buffer-modified-p buffer-modified))] 5 ("/home/oub/emacs/site-lisp/versch/pabbrev.elc" . 17814)]) Backtrace is:=20 backtrace() pabbrev-command-hook-fail((invalid-function (macro . #[... "\301\302\303=08\304\"BB\207" [body let ... append ...] 5 ...])) "pre") pabbrev-pre-command-hook() run-hooks(pre-command-hook) I have no real clear idea how to debug this. The error happens frequently but not repeatedly, and it all happens in the pre-command-hook. It has=20 never occurred to me without byte compilation.=20 Has anyone got any idea how I go about finding out what the problem is?=20 Cheers Phil