From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: recursive load case in openp Date: Mon, 8 Apr 2002 09:50:17 +0300 (IDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: <1018234542.17903.36.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1018250581 25981 127.0.0.1 (8 Apr 2002 07:23:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2002 07:23:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16uTUT-0006kw-00 for ; Mon, 08 Apr 2002 09:23:01 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16uTij-0004f4-00 for ; Mon, 08 Apr 2002 09:37:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16uSoT-0007iU-00; Mon, 08 Apr 2002 02:39:38 -0400 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16uS4V-0002wA-00 for ; Mon, 08 Apr 2002 01:52:07 -0400 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id JAA28723; Mon, 8 Apr 2002 09:50:18 +0300 (IDT) X-Sender: eliz@is Original-To: Colin Walters In-Reply-To: <1018234542.17903.36.camel@space-ghost> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2462 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2462 On 7 Apr 2002, Colin Walters wrote: > What seems to be happening is that openp eventually calls > encode_coding_string, which eventually calls temp_output_buffer_setup, > which then runs the hook variable `temp-buffer-setup-hook', whose value > defaults to the single symbol `help-mode-setup'. Therefore, since > help-mode is autoloaded, emacs will attempt to load it, and enter Fload, > and therefore reenter openp, try to load help-mode again... > > The following patch fixes the problem on my system; Does anyone have any > objections to fixing the problem in this way? I'd like to find a solution that doesn't prevent legitimate hooks from running. The problem my change introduced is very specific, so I think we should try to find a solution that prevents this specific scenario from screwing up Emacs. I will try to find such a solution. Thanks for reporting the problem and its analysis.