From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Display feature request: gud-overlay-arrow Date: Tue, 21 Mar 2006 22:58:48 +0100 Message-ID: References: <17439.13250.269939.241145@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142978455 1814 80.91.229.2 (21 Mar 2006 22:00:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2006 22:00:55 +0000 (UTC) Cc: nickrob@snap.net.nz, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 21 23:00:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FLouB-0005Dq-OJ for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 23:00:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLouL-0000A2-OM for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 17:00:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FLou7-000064-2k for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:00:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FLou5-0008Ua-MQ for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:00:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLou5-0008UK-Hy for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:00:37 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FLou7-0007M1-5X; Tue, 21 Mar 2006 17:00:39 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id DB81CFAC025; Tue, 21 Mar 2006 23:00:20 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 21 Mar 2006 14:26:16 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:51944 Archived-At: Richard Stallman writes: > I guess it would be easier to do if we had a "post-switch-buffer-hook" that > is called (after post-command-hook) whenever a new buffer is selected > in the command loop. > > I really don't like the idea that Emacs could run hooks when switching > buffers. It would make things rather uncontrollable. Quite the opposite, IMHO. It cannot possibly be worse than the current abuse of the post-command-hook to do all sorts of things that would be better done by specific hooks like: post-switch-buffer-hook (when last command switched buffers) post-switch-window-hook (when last command switched windows) post-modify-buffer-hook (when last command modified selected buffer) I'm pretty sure there are modes which uses various post-command-hook tricks to accomplish the equivalent of these hooks. -- Kim F. Storm http://www.cua.dk