From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Is it time to drop ChangeLogs? (Was: bug#21998: Run 'make change-history' on release branch) Date: Thu, 10 Mar 2016 00:52:53 +0600 Message-ID: References: <56BE7E37.3090708@cs.ucla.edu> <4hd1rw1ubr.fsf@fencepost.gnu.org> <83vb50wxhv.fsf@gnu.org> <87y49vz4cg.fsf@acer.localhost.com> <83bn6quugw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1457549600 8279 80.91.229.3 (9 Mar 2016 18:53:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 18:53:20 +0000 (UTC) Cc: John Wiegley , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 09 19:53:20 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 1adjEV-00034r-0Z for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2016 19:53:19 +0100 Original-Received: from localhost ([::1]:43506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjEU-0003qr-DZ for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2016 13:53:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjER-0003qj-DJ for emacs-devel@gnu.org; Wed, 09 Mar 2016 13:53:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adjEQ-00069H-Gu for emacs-devel@gnu.org; Wed, 09 Mar 2016 13:53:15 -0500 Original-Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:33840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adjEQ-000699-8Y; Wed, 09 Mar 2016 13:53:14 -0500 Original-Received: by mail-lb0-x234.google.com with SMTP id xr8so75702740lbb.1; Wed, 09 Mar 2016 10:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=VoP/glpBvY9weXM26dv/8GuNwFJh4vBRP+zL2RmkH2g=; b=yLgUUsvjG/VIfJGc/lcdxskUvhMwNzhzOwIpKo+bUHvkoixUZFDIT9/WAyHeBiObYw nwlR8YDmoVaWqoVrtVtfWRvvabxWCW8Zt7jxrh+8/6KVJBI6XktoHWgxZGP2wnf3D/kC xAX2nA7W+6vKajz5NAovXV08Zg1pInKZ9M9Uu7G5w54JrNMlaSzfbwg2ewZFX4wFVFDG +AiOhA6VFqW5akZPDIeRxwfFhcIgahFW7uzHjYJtr37/cFr3RlVLhxXDJgBmq46RsAuB mQZGe2RTXFnzZpphf/BL3HKWqKXypkruaCEDR5oPo6Qx70Uqd60ycs5cOpjAImE8mmDq NnsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=VoP/glpBvY9weXM26dv/8GuNwFJh4vBRP+zL2RmkH2g=; b=FDIrIJ+UefSUaTICbDJLVRqfnzkby6IZS7dUOShr4KLt7a2jogmrb0hDkaqx7j5SlX HWDtlrJd5kMYux7aabplW7rbe+VvtBhqEAvoYw5a0qVo3q7RlY+2nXGhvPm+wsombHAW sIt+EAEl4UX7S0QJ8oqU30v8xK8xeYVe3AP03lH8MHq5iK2M8ZeRqWIzlsvH33u7e5Sg gM47S/3fiQLG1vi7z2tJBa7Kc2SHeEjW0O8XohswgOFQOzkiYTXyfY55Mq8Omlr3Uzzo xDSRyqst1CiolSyv6jaPL33Q7W6o0Gc7Tm4/KCILsnewCocS6CGEfKWuKEjlNvOjZtTO 8rzA== X-Gm-Message-State: AD7BkJIDlQd2zfggqi9Wxbv8XunR7HWo5Q7rfhA/9ovtv9LLzYiKkFhb8GlNIl9RkBojdI/Maby6yuvBTptJSw== X-Received: by 10.112.198.132 with SMTP id jc4mr6085109lbc.120.1457549593380; Wed, 09 Mar 2016 10:53:13 -0800 (PST) Original-Received: by 10.112.254.164 with HTTP; Wed, 9 Mar 2016 10:52:53 -0800 (PST) In-Reply-To: <83bn6quugw.fsf@gnu.org> X-Google-Sender-Auth: LnFMjqa-rRQ0FBNTEYINaE2ELLY X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::234 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:201282 Archived-At: On Mon, Mar 7, 2016 at 10:24 PM, Eli Zaretskii wrote: > "git log -p" cannot do the job for changes in many types of files. > For example, try it on Lisp or Texinfo files. I assume you are talking about the function header that is displayed in the hunk headers, and by default contains the nearest preceding line that starts in the zeroth column. Git can in fact be configured to recognize =E2=80=9Cfunctions=E2=80=9D diff= erently, per file type. The gitattributes(5) manual page describes this: Defining a custom hunk-header [=E2=80=A6] First, in .gitattributes, you would assign the diff attribute for paths. *.tex diff=3Dtex Then, you would define a "diff.tex.xfuncname" configuration to specify a regular expression that matches a line that you would want to appear as the hunk header "TEXT". Add a section to your $GIT_DIR/config file (or $HOME/.gitconfig file) like this: [diff "tex"] xfuncname =3D "^(\\\\(sub)*section\\{.*)$"