From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: VC's modeline Date: Sat, 13 Feb 2016 22:01:06 +0200 Message-ID: <56BF8B82.1000209@yandex.ru> References: <20160208185311.9470.7389@vcs.savannah.gnu.org> <56B8F682.7040404@dancol.org> <83io1zosv7.fsf@gnu.org> <56B8FA6D.9070105@dancol.org> <87zivax3li.fsf@wanadoo.es> <87r3glx0vu.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455393684 25225 80.91.229.3 (13 Feb 2016 20:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2016 20:01:24 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 13 21:01:23 2016 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 1aUgNc-0001sU-Eu for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 21:01:20 +0100 Original-Received: from localhost ([::1]:44549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgNb-0000Qn-Nq for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 15:01:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgNX-0000QP-Pd for emacs-devel@gnu.org; Sat, 13 Feb 2016 15:01:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUgNS-0003ts-RQ for emacs-devel@gnu.org; Sat, 13 Feb 2016 15:01:15 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:35955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUgNS-0003td-KK for emacs-devel@gnu.org; Sat, 13 Feb 2016 15:01:10 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id g62so8512331wme.1 for ; Sat, 13 Feb 2016 12:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=yWhKPGKm1fTK9mhSdT0V9Y0t3yOPb80Edb52ryvFvBc=; b=dTwCAH96n8YaS9BCiGceKfSP86+7HVPznM8OqI3O6VlT2mhQPKCm0oCjjnB6N5aDIb dvjFo5GsrWq4KGK0QucbdxgEIcWLpJPV7MzhPrFqSq1be4TFYU1Ezru+mQEm8WHWBBbo Vd9plLR15gnr+yzZdKvWw8+M6w7vk8J3HACEJZuvJvf+0NUz1WrgzA8A6+K7XJKgkxqQ 0vVZ6WbyErqrh8Kdd19HoWEoleO5wNmF4NlmQV6cbtr3oSyFbXmyscYomuYOBGz44rqw 1j2YQQ6Y/mPxYgL4dPoC3mBkLCrHU6Au+EWVVkFnM7WpZbiPlAr89vvkR0GS3G48lPYp Vj/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=yWhKPGKm1fTK9mhSdT0V9Y0t3yOPb80Edb52ryvFvBc=; b=TOgzRULd9+RJH+E7l1zLoes0lESD8HoqjTUnFpLvD487LCIaKlMwfA9xEnQCMXmj9c EskyD8AE2eZeJ8AbPLnoBq2Fma6NOXwNgRm8UwsD0wSkYfVFLHRgxLuQIts2duZQm3Vc Oj0nkleR4kC/tGsTQvBTpVsV91Izn83VepDH7yIYOY0e+lXVrnL3K+0S+RWbXlEHoRyd ghExgSpWsV+u98qAqqbtwyg4T5AzJw08yAnIf9tYkgAujXDcecvlY54dmcDnvK2pGife 9RX/sXG+gxqsxGK03bn/quucP1e0/d9hbNez/uoaouO3+2gsCg0tc75vq2adBDtSfSg6 ZUvA== X-Gm-Message-State: AG10YOQGjB1DOAnZ8oK32JtN8lgTssc6JXiTNp1+pgGDDz2+RHsj5GoDZg0bD2zmqgxD8Q== X-Received: by 10.194.5.36 with SMTP id p4mr8112627wjp.167.1455393669252; Sat, 13 Feb 2016 12:01:09 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id c7sm8048434wmd.13.2016.02.13.12.01.07 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Feb 2016 12:01:08 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a 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:199899 Archived-At: On 02/10/2016 05:16 PM, Stefan Monnier wrote: > As mentioned, I do think it's good that this info can be displayed. > What I think is wrong is to compute this info eagerly/unconditionally by > default. > E.g. we compute this info even if the file is never displayed. I second this. But along these lines, we should compute the current backend lazily as well. Until the buffer's mode line is being displayed (i.e. the buffer is visible), or we call some VC command, there's no need to know the buffer's backend. > Of course this gets worse if find-file-noselect is called in a loop to > collect info about various files none of which are ever displayed. Right, this would also make it easier to implement find-file-delayed (the facility to visit buffers in the background quickly, in a read-only fashion, concealed from most user-level commands).