From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: auto-insert help-buffer Date: Fri, 09 Mar 2007 16:27:10 -0500 Message-ID: References: <45D967C4.5060104@easy-emacs.de> <87fy8fu2kv.fsf@stupidchicken.com> <874povnpa8.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1173476090 19201 80.91.229.12 (9 Mar 2007 21:34:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 21:34:50 +0000 (UTC) Cc: andreas.roehler@easy-emacs.de, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 09 22:34:45 2007 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 1HPmjY-0000VM-T4 for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2007 22:34:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPmjs-00023R-SJ for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2007 16:35:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPmea-0005eh-DV for emacs-devel@gnu.org; Fri, 09 Mar 2007 16:29:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPmeZ-0005eJ-Uu for emacs-devel@gnu.org; Fri, 09 Mar 2007 16:29:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPmeZ-0005eB-K0 for emacs-devel@gnu.org; Fri, 09 Mar 2007 16:29:31 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPme7-0000si-AP for emacs-devel@gnu.org; Fri, 09 Mar 2007 16:29:03 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HPmcI-0000f0-Im; Fri, 09 Mar 2007 16:27:10 -0500 In-reply-to: <874povnpa8.fsf@stupidchicken.com> (message from Chong Yidong on Thu, 08 Mar 2007 21:06:55 -0500) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:67658 Archived-At: ! record_unwind_protect (read_char_help_form_unwind, Qnil); ! help_form_saved_window_configs ! = Fcons (Fcurrent_window_configuration (Qnil), ! help_form_saved_window_configs); I would call record_unwind_protect after pushing the new element. I cancel the window config unwinding as long as the user clicks anywhere using the mouse, not just the help window---it's too much trouble trying to identify the help window. How about if you assume that the most recently displayed window is the help window?