From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: RE: weird defadvice bug with byte-compilation] Date: Fri, 09 Dec 2005 23:14:32 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134188394 3866 80.91.229.2 (10 Dec 2005 04:19:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2005 04:19:54 +0000 (UTC) Cc: cyd@stupidchicken.com, drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 10 05:19:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkwCB-00063e-AN for ged-emacs-devel@m.gmane.org; Sat, 10 Dec 2005 05:18:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkwCY-0005y6-BL for ged-emacs-devel@m.gmane.org; Fri, 09 Dec 2005 23:19:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ekw9F-00047Z-Hd for emacs-devel@gnu.org; Fri, 09 Dec 2005 23:15:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ekw9E-00047F-Id for emacs-devel@gnu.org; Fri, 09 Dec 2005 23:15:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ekw9E-000479-5Z for emacs-devel@gnu.org; Fri, 09 Dec 2005 23:15:48 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkwAX-00006p-6Y for emacs-devel@gnu.org; Fri, 09 Dec 2005 23:17:09 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Ekw80-0003XM-Sl; Fri, 09 Dec 2005 23:14:32 -0500 Original-To: Eli Zaretskii In-reply-to: (message from Eli Zaretskii on Fri, 09 Dec 2005 15:17:06 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47370 Archived-At: Debugger entered--Lisp error: (void-variable my-mode) (and my-mode) x-create-frame(((visibility) (height . 14) (width . 80) (unsplittable . t))) x-create-frame-with-faces(((height . 14) (width . 80) (unsplittable . t))) make-frame(((height . 14) (width . 80) (unsplittable . t))) I think I see the reason for this error: (let ((map (make-sparse-keymap "II"))) (setq mymap (make-sparse-keymap)) (define-key menu-bar-search-menu [ise] '("" . ise)) (put 'ise 'menu-enable '(and my-mode)) The menu command's enable condition tests a void variable. So this error seems to be correct. It sounds like some frame's glyph matrices were not freed for some reason? Or maybe they were originally used, and counted, more times than they should have been. So I think the first question is, was glyph_matrix_count correct before check_glyph_memory was called? If so, there must be a bug in free_glyphs. If it was not correct, then how did it get to be wrong? I suspect that it has to do with getting an error while part way through creating a frame. Maybe that left an inconsistent value for glyph_matrix_count.