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: flyspell bug Date: Mon, 03 Oct 2005 15:31:24 -0400 Message-ID: References: <20051002220548.22F6.SLAWOMIR.NOWACZYK.847@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1128368217 16799 80.91.229.2 (3 Oct 2005 19:36:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2005 19:36:57 +0000 (UTC) Cc: slawomir.nowaczyk.847@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 21:36:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMW6U-00081F-T1 for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 21:36:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMW6U-0003yl-9u for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 15:36:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMW3w-00036X-81 for emacs-devel@gnu.org; Mon, 03 Oct 2005 15:33:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMW3o-00031z-Jt for emacs-devel@gnu.org; Mon, 03 Oct 2005 15:33:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMW3n-0002zc-PS for emacs-devel@gnu.org; Mon, 03 Oct 2005 15:33:15 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMW2N-0005oa-DJ for emacs-devel@gnu.org; Mon, 03 Oct 2005 15:31:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EMW20-0001Js-Vo; Mon, 03 Oct 2005 15:31:25 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:43510 Archived-At: Rather I would do it in the top-level command loop, e.g. by saving the current window/buffer/frame before running the pre-command hook and compare them to the value after running the post-command-hook -- and run the appropriate hooks at that time. That way, e.g. set-buffer on its own won't run any unknown Lisp code. I think it would be extremely confusing if switching windows to look around in another buffer were likely to run some Lisp code. It would make debugging very painful, if you could not look at buffers without changing them.