From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: crashes during Feval from within WINDOW_WANTS_HEADER_LINE_P Date: Sun, 02 Mar 2008 00:46:46 -0500 Message-ID: References: <76EEBC00-5E78-4BC8-8AE6-8D657F71E94E@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204436832 1240 80.91.229.12 (2 Mar 2008 05:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2008 05:47:12 +0000 (UTC) Cc: emacs- devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 02 06:47:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVh2p-0002Tv-4X for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 06:47:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVh2I-0000uK-Ak for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 00:46:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVh2A-0000rd-Ri for emacs-devel@gnu.org; Sun, 02 Mar 2008 00:46:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVh28-0000p1-Lb for emacs-devel@gnu.org; Sun, 02 Mar 2008 00:46:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVh28-0000on-DO for emacs-devel@gnu.org; Sun, 02 Mar 2008 00:46:48 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVh28-00080R-Dp for emacs-devel@gnu.org; Sun, 02 Mar 2008 00:46:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAKvNyUdMCpz5Wmdsb2JhbACQZgEggTSYCIEA X-IronPort-AV: E=Sophos;i="4.25,433,1199682000"; d="scan'208";a="15451402" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 02 Mar 2008 00:46:47 -0500 Original-Received: from pastel.home ([76.10.156.249]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id IIW51447; Sun, 02 Mar 2008 00:46:47 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D27A88279; Sun, 2 Mar 2008 00:46:46 -0500 (EST) In-Reply-To: <76EEBC00-5E78-4BC8-8AE6-8D657F71E94E@gmail.com> (David Reitter's message of "Sat, 1 Mar 2008 12:03:37 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:91040 Archived-At: > I'm getting crashes after extending a macro. I would appreciate your help. > I have added to the WINDOW_WANTS_HEADER_LINE_P macro (dispextern.h) > a function call to an elisp function whose name is stored in `window- > wants-header-line-function': > && (NILP(Vwindow_wants_header_line_function) || \ > !NILP (safe_call_win(Vwindow_wants_header_line_function, (W))))) I'd be surprised if this macro is only used at places where it is safe to run elisp code. When doing such things, I highly recommend you run with -DENABLE_CHECKING (which I don't guarantee will catch your problem, but may). Stefan