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-annotate: HG, change display, switch Date: Sat, 31 Oct 2015 15:08:13 +0200 Message-ID: <5634BD3D.8090205@yandex.ru> References: <87oaffqk59.fsf@mat.ucm.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 1446296918 13200 80.91.229.3 (31 Oct 2015 13:08:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 13:08:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 14:08:38 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 1ZsVtc-0000gH-Mn for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 14:08:36 +0100 Original-Received: from localhost ([::1]:55597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsVtc-0000BB-Bo for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 09:08:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsVtQ-0000AP-Ar for emacs-devel@gnu.org; Sat, 31 Oct 2015 09:08:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsVtJ-0001pm-3m for emacs-devel@gnu.org; Sat, 31 Oct 2015 09:08:24 -0400 Original-Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:38144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsVtI-0001pX-Sz for emacs-devel@gnu.org; Sat, 31 Oct 2015 09:08:17 -0400 Original-Received: by wicll6 with SMTP id ll6so25672692wic.1 for ; Sat, 31 Oct 2015 06:08:16 -0700 (PDT) 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=Aqa/FVexB05VDxuST6yPQ9ccFxrr3IPdKktv1SvBxz4=; b=XC4Pa/2pEgExCYxUEIUuzB8MHskCzpyGH6kkKWsIMEw9iMW0koSZQZ8ZBDwmuyK9bs lyqsBEw2SzEvemI5XdCzyYbfTHQvL2/u/mBHXmtJtA8kmw5EpCnQKLn/QPWLbW6A0B7I MulmZ3vsntlN6cMvkM9Q+NiK+vObWqhxKpsehw7YYCkqVro3eV5j55smj3ZXrVcOzB5k 9Cb6HmHsQ4J2siGH7uLnH3DCMWP92ZLng4zrCsibFqrJDlp1jWmLYAH1FWA9y4iS+5v7 uZaftKXGULUgsYjYlvuXt/OrPF459JeQKIpLYEPv+pbB0ewl/HwSM+azUwLoeNdAbyem GgLw== X-Received: by 10.194.143.115 with SMTP id sd19mr5076362wjb.94.1446296896111; Sat, 31 Oct 2015 06:08:16 -0700 (PDT) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id w73sm7857442wme.12.2015.10.31.06.08.14 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Oct 2015 06:08:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: <87oaffqk59.fsf@mat.ucm.es> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22b 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:193015 Archived-At: On 10/31/2015 02:48 PM, Uwe Brauer wrote: > Any comments? > > That leaves me to propose: > > (defun vc-hg-annotate-command (file buffer &optional revision) > "Execute \"hg annotate\" on FILE, inserting the contents in BUFFER. > Optional arg REVISION is a revision to annotate from." > (apply #'vc-hg-command buffer 0 file "annotate" "-dq" "-u" "-n" > (append (vc-switches 'hg 'annotate) > (if revision (list (concat "-r" revision)))))) Thanks for looking into this. > However with this switch the colour display does not work neither. > > Could somebody who knows the code could please comment on this issue? You also need to update vc-hg-annotate-re, to recognize the new output. The value returned by vc-hg-annotate-time, which uses that regexp, affects the highlighting.