unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Phillip Lord" <Phillip.Lord@newcastle.ac.uk>
Subject: Debugging byte compiled files
Date: Sat, 4 Mar 2006 16:54:15 -0000	[thread overview]
Message-ID: <6942EE35B530F84EAD432959F5E4DAB501C4BA09@largo.campus.ncl.ac.uk> (raw)




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. 

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\b\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: 
  backtrace()
  pabbrev-command-hook-fail((invalid-function (macro . #[...
"\301\302\303\b\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 
never occurred to me without byte compilation. 

Has anyone got any idea how I go about finding out what the problem is? 

Cheers

Phil

             reply	other threads:[~2006-03-04 16:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-04 16:54 Phillip Lord [this message]
     [not found] <mailman.602.1141491264.5838.help-gnu-emacs@gnu.org>
2006-03-04 23:33 ` Debugging byte compiled files John Paul Wallington
2006-03-06  8:51 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2006-03-07 18:48 Phillip Lord
2006-03-07 19:16 ` John Paul Wallington
2006-03-07 18:51 Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6942EE35B530F84EAD432959F5E4DAB501C4BA09@largo.campus.ncl.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).