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: Display feature request: gud-overlay-arrow Date: Tue, 21 Mar 2006 17:01:03 -0500 Message-ID: <87veu7cvnp.fsf-monnier+emacs@gnu.org> References: <17439.13250.269939.241145@kahikatea.snap.net.nz> <20060322.044009.07761515.jet@gyve.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142978496 1979 80.91.229.2 (21 Mar 2006 22:01:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2006 22:01:36 +0000 (UTC) Cc: nickrob@snap.net.nz, storm@cua.dk, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 21 23:01:32 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 1FLouq-0005Kk-RQ for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 23:01:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLov0-0001OS-RX for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 17:01:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FLoun-0001N5-HJ for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:01:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FLoul-0001I4-Fl for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:01:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLoul-0001Hi-C0 for emacs-devel@gnu.org; Tue, 21 Mar 2006 17:01:19 -0500 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FLoul-0007Sp-U9; Tue, 21 Mar 2006 17:01:20 -0500 Original-Received: from alfajor ([70.55.140.81]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060321220104.QUEB10262.tomts22-srv.bellnexxia.net@alfajor>; Tue, 21 Mar 2006 17:01:04 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id E6B4FD73BE; Tue, 21 Mar 2006 17:01:03 -0500 (EST) Original-To: Masatake YAMATO In-Reply-To: <20060322.044009.07761515.jet@gyve.org> (Masatake YAMATO's message of "Wed, 22 Mar 2006 04:40:09 +0900 (JST)") 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:51945 Archived-At: >> 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. > > Why it would do? > I think `post-switch-buffer-hook' may be quite useful. > e.g. we can give different colors for different buffers. I don't understand how those three points of view relate to each other. I strongly suspect that you all three talk about something very different. Here is my guess at what's happening: - Yamamoto wants a set-display-buffer-hook. - Richard is afraid of the idea of set-buffer-hook. - Kim suggested yet some other kind of hook. I'm not sure what it's supposed to do and how/when/why someone would use it, based on his description. All I understand is that it would be called at most once per command and only if "a new buffer is selected", tho it's no clear what might have caused this change (the command, presumably?) and whether he's talking about a change in (current-buffer) or in (window-buffer (selected-window)). -- Stefan