From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#37395: [PATCH v3] diff-mode.el: take into account patch separators Date: Tue, 08 Oct 2019 02:12:43 +0300 Message-ID: <1570489963.135652.2@yandex.ru> References: <1568323985.28657.0@yandex.ru> <20190916202643.27946-1-Hi-Angel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="135820"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37395@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 08 01:14:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHcCj-000ZCv-Nk for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Oct 2019 01:14:13 +0200 Original-Received: from localhost ([::1]:50074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHcCi-0002NY-Iu for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 19:14:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59354) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHcCb-0002NE-9N for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 19:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHcCa-00053c-40 for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 19:14:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHcCa-00053Y-0e for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 19:14:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHcCZ-0002Dy-PS for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 19:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2019 23:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37395 X-GNU-PR-Package: emacs Original-Received: via spool by 37395-submit@debbugs.gnu.org id=B37395.15704899928477 (code B ref 37395); Mon, 07 Oct 2019 23:14:01 +0000 Original-Received: (at 37395) by debbugs.gnu.org; 7 Oct 2019 23:13:12 +0000 Original-Received: from localhost ([127.0.0.1]:49258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHcBk-0002Cf-48 for submit@debbugs.gnu.org; Mon, 07 Oct 2019 19:13:12 -0400 Original-Received: from forward101o.mail.yandex.net ([37.140.190.181]:50689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHcBe-0002C2-LV for 37395@debbugs.gnu.org; Mon, 07 Oct 2019 19:13:09 -0400 Original-Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 2C0393C00F42; Tue, 8 Oct 2019 02:13:00 +0300 (MSK) Original-Received: from iva5-d6550783a3c3.qloud-c.yandex.net (iva5-d6550783a3c3.qloud-c.yandex.net [2a02:6b8:c0c:74a5:0:640:d655:783]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id p3q70fjJg6-Cx6SAtx1; Tue, 08 Oct 2019 02:13:00 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1570489980; bh=NCeaDb7Uw/uFqi3+y2htztLvTo4TCOkzuYbBwp+l5GY=; h=In-Reply-To:Cc:To:Subject:From:References:Date:Message-Id; b=wyhl1VHbZcBcnwoKUjkOTcTRXzYqgkfHmeVDrnMNivi1bLg5mi3Owyb7LB87nnzFv XX/SHhgBs8L9WDTx0HpvDMtE7wJqafbPVmhCwlsZ/FiUD18BVRi2kY2sowA5cIr5w7 N/GXG65WMXuSTyV2265MdXvAi4x9dXlmzzSTZXQs= Authentication-Results: mxback15j.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by iva5-d6550783a3c3.qloud-c.yandex.net (nwsmtp/Yandex) with ESMTPSA id zVO4upHYle-Ciq8rMtS; Tue, 08 Oct 2019 02:12:44 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) In-Reply-To: <1570489462.135652.1@yandex.ru> X-Mailer: geary/3.35.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:168593 Archived-At: On =C2=F2, =EE=EA=F2 8, 2019 at 02:04, Konstantin Kharlamov=20 wrote: > Well, according to #git channel on Freenode and this answer=20 > https://stackoverflow.com/questions/39834729/what-does-the-diff-git-outpu= t-in-git-diff-refer-to=20 > apparently, it's there unless someone explicitly changed config for=20 > it to not be there. >=20 > But any other ideas to detect git format are welcome. I personally=20 > would prefer to not do detection at all, because I'm sure the case=20 > where we could misdetect text and miscalculate the diff header is too=20 > statistically insignificant. =85as well as consequences insignificant too, in case it somehow have=20 happened, I should add. =