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: xref and leaving "temporary" buffers open Date: Mon, 03 Aug 2015 06:50:55 -0400 Message-ID: References: <55B2DC8F.3050305@yandex.ru> <55B3489C.2070009@gmx.at> <55B390CE.6020104@yandex.ru> <55B3994A.5010709@gmx.at> <55B3A0B6.6080101@yandex.ru> <55B3B0FC.3080004@gmx.at> <55B3EDBD.8050409@yandex.ru> <55B4C439.1040909@gmx.at> <55B4E5B3.3000108@yandex.ru> <55B65610.7070308@gmx.at> <55B77C57.6010306@yandex.ru> <55B82F77.3090204@yandex.ru> <55BECE10.90800@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438599093 28459 80.91.229.3 (3 Aug 2015 10:51:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 10:51:33 +0000 (UTC) Cc: martin rudalics , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 03 12:51:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZMDKy-0007Sn-Jc for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 12:51:21 +0200 Original-Received: from localhost ([::1]:58557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMDKx-0001K2-H9 for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2015 06:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMDKi-0001JG-Hk for emacs-devel@gnu.org; Mon, 03 Aug 2015 06:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMDKd-0004ky-EU for emacs-devel@gnu.org; Mon, 03 Aug 2015 06:51:04 -0400 Original-Received: from smtp-as-02.vtxnet.net ([194.38.175.140]:55220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMDKd-0004kq-1w for emacs-devel@gnu.org; Mon, 03 Aug 2015 06:50:59 -0400 Original-Received: from smtp-as-02.vtxnet.net (localhost [127.0.0.1]) by smtp-as-02.vtxnet.net (Postfix) with ESMTP id 743185A376; Mon, 3 Aug 2015 12:50:58 +0200 (CEST) Original-Received: from smtp-pri-03.vtxnet.net (smtp-pri-03-1.vtxnet.net [212.147.62.147]) by smtp-as-02.vtxnet.net (Postfix) with ESMTP id B718D59147; Mon, 3 Aug 2015 12:50:56 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by smtp-pri-03.vtxnet.net (VTX Services SA) with ESMTP id B0E2168B843; Mon, 3 Aug 2015 10:50:56 +0000 (UTC) Original-Received: from smtp-pri-03.vtxnet.net ([212.147.62.147]) by localhost (smtp-pri-03.vtxnet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yDEuqkOMDmkv; Mon, 3 Aug 2015 12:50:55 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (dyn.83-228-180-068.dsl.vtx.ch [83.228.180.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-pri-03.vtxnet.net (VTX Services SA) with ESMTP id C7CA168B7E8; Mon, 3 Aug 2015 12:50:55 +0200 (CEST) Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 86B2AAE0CA; Mon, 3 Aug 2015 06:50:55 -0400 (EDT) In-Reply-To: <55BECE10.90800@yandex.ru> (Dmitry Gutov's message of "Mon, 3 Aug 2015 05:12:32 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.38.175.140 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188333 Archived-At: > We'll need to also catch the moment, somehow, when an "incomplete" buffer > become displayed as a result of user's action. And "complete" its > initialization at that point. > Would you use window-configuration-change-hook for that? The way I see it, those buffers would have a name starting with SPC and the name wouldn't have to look "normal". So we don't need to care about what happens when the user uses C-x b to display the buffer. We only need to handle the case where find-file-noselect is called on those files, at which point we should finish the initialization. I'm not exactly sure what we should do for find-buffer-visiting and get-file-buffer. Stefan