From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22083: 25.0.50; hg: adding tag enhances the rev, modeline does not reflect Date: Fri, 04 Dec 2015 10:55:17 +0200 Message-ID: <83610eioei.fsf@gnu.org> References: <87h9jzy70u.fsf@mat.ucm.es> <566103DA.2050901@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449219381 3828 80.91.229.3 (4 Dec 2015 08:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 08:56:21 +0000 (UTC) Cc: 22083@debbugs.gnu.org, oub@mat.ucm.es To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 04 09:56:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1a4m9y-00039t-Ea for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 09:56:10 +0100 Original-Received: from localhost ([::1]:39480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4m9x-0008I6-PZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 03:56:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4m9t-0008FG-B8 for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 03:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4m9q-0008VW-5E for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 03:56:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4m9q-0008VE-2r for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 03:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4m9p-00057S-QF for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 03:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2015 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22083-submit@debbugs.gnu.org id=B22083.144921933619638 (code B ref 22083); Fri, 04 Dec 2015 08:56:01 +0000 Original-Received: (at 22083) by debbugs.gnu.org; 4 Dec 2015 08:55:36 +0000 Original-Received: from localhost ([127.0.0.1]:38200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4m9P-00056g-Bj for submit@debbugs.gnu.org; Fri, 04 Dec 2015 03:55:35 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:52727) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4m9M-00056W-F3 for 22083@debbugs.gnu.org; Fri, 04 Dec 2015 03:55:33 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NYT00L00SIFQ300@mtaout25.012.net.il> for 22083@debbugs.gnu.org; Fri, 04 Dec 2015 10:52:35 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYT00ASWSNNKFH0@mtaout25.012.net.il>; Fri, 04 Dec 2015 10:52:35 +0200 (IST) In-reply-to: <566103DA.2050901@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109576 Archived-At: > From: Dmitry Gutov > Date: Fri, 4 Dec 2015 05:09:14 +0200 > > > Closing and reopening the buffer the modline reflects HG-30 > > > > Instead of HG-31. > > > > Can anybody confirm this, bug or feature? > > I don't know if it's a bug, but it's definitely lack of a feature: > unlike, say, Git, the Hg backend doesn't define its own mode-line-string > handler, so the mode line displays what vc-default-mode-line-string > returns, and it uses the current revision without any tags. > > Do we really want to display the current tag in the mode-line? Do we > want to see the word "tip" in there? IMO, the answer depends on 2 factors: . what the hg users expect . what can be usefully shown in the small space we can afford for this on the modeline More generally, I don't see the current display as a bug, because this part of the mode line shouldn't be expected to tell too much about the version anyway. Modern dVCSes are not like RCS or CVS: showing something like rXX.YY is no longer possible, or meaningful. A file under Git shows me a (silly, IMO) "Git-BRANCH_NAME" string that tells absolutely nothing about the current revision. If we wanted to be sure some useful revision-specific information is shown, we would need to change the Git implementation to show what "git describe" returns, for example. So IMO before we discuss Uwe's request, we should decide what exactly is the meaning of that string we show in the modeline. I don't think it is well defined as things stand now.