From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id c3frI7mJcGMSFwEAbAwnHQ (envelope-from ) for ; Sun, 13 Nov 2022 07:07:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iNTzIrmJcGMEZwEA9RJhRA (envelope-from ) for ; Sun, 13 Nov 2022 07:07:53 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 446553B58C for ; Sun, 13 Nov 2022 07:07:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou68z-00084S-GW; Sun, 13 Nov 2022 01:07:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ou68v-000846-0J for emacs-orgmode@gnu.org; Sun, 13 Nov 2022 01:06:57 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ou68t-00075b-7k for emacs-orgmode@gnu.org; Sun, 13 Nov 2022 01:06:56 -0500 Received: by mail-lj1-x231.google.com with SMTP id h12so9098644ljg.9 for ; Sat, 12 Nov 2022 22:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yY0ogwFw0JEFsBpbuXBHxCI41yjfkN1c496IBQRdzkM=; b=TkIab/c8SgjaRKKwzGmTRsN+pzC9x8weG8awDDL5UzF4mSzrkc+LhHVTCp+DV65vH/ TIwlapV69Gsrguhag7RaJWyIMC6CkT/4GozmXukHypUse+l1brI8Lfqx9rLYf/uHi//l rbRhilROY/WN305wUGmbjCc4REaM7PiTr6MNGb1iWEUXo+Hc7bpBxF7JgaxWcvo1k2Py H+YZ/CEoWvtRImWbt9zX8ma47OJhQoCrRLsW7iR8lRW3wmoDcSbJMieCva4LLBvo03Lv rlC1udJkB8kYIvTaWcTnNpQhyNpdijqEnpqgPUokApyEi8BqGECaFfaFs0yHL/mfTxMk 5MRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yY0ogwFw0JEFsBpbuXBHxCI41yjfkN1c496IBQRdzkM=; b=BKfmvYCUcNy3+2B+LlyEzA0/XR9nX/fxsxt0jbcsQ4/B+ZxDhVZfl2p/5UCWs0LNvM m3lCTieRFWo9mxJoAlhiry2Mfp195pS2BoY+JFrgsj1kLzMHSvyichKoVg8lf3KrEKkQ Ed3CNcTWB4VjneftzewEGvmZ8q9qyM2eEUshksrdIsd8yYPrkFPUA73eYLNRkkzlzOAZ Im87xdXUl18TZ9OGuC1mJUjjBj/KYUAysWtQVJ/sMrpNKZ044qfQHckB/NmLkvdAZzXu /yHP2cMj7/azq2d5ccn4GAgAReM7cLB+EljYn3jV40UXFg50jBdMNfopUnSvcO+WBUem ERDw== X-Gm-Message-State: ANoB5pnaSaa/xUw9RkiqC5zKc+qQVb2l367+bybgKjXjkAgfFHqP+Hxt L9jTJBjP3gHiKicR5kfpk37rarJRQC1vvfSVTfo= X-Google-Smtp-Source: AA0mqf7ZG9yslYHy+w6B1S7GGqkuTKygPPYJg6RPzB2y1zPx4ryPQlfsdpO4VvUIKevKAWz8GRW4bmSlrUz8IWRgfOY= X-Received: by 2002:a05:651c:1252:b0:26f:db16:4735 with SMTP id h18-20020a05651c125200b0026fdb164735mr2620609ljh.323.1668319613361; Sat, 12 Nov 2022 22:06:53 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Sat, 12 Nov 2022 22:06:51 -0800 (PST) In-Reply-To: <87zgcv773a.fsf@localhost> References: <87zgcv773a.fsf@localhost> From: Samuel Wales Date: Sat, 12 Nov 2022 23:06:51 -0700 Message-ID: Subject: Re: [OT] org and diff To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=samologist@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668319673; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yY0ogwFw0JEFsBpbuXBHxCI41yjfkN1c496IBQRdzkM=; b=ZFLk8RdAvOPj45FtdnUO1qebADufEB5+9vcqTG2n6vX7/dM6YpQ2qe134m3OoEd00Vgz1c ztHaTsEeIpBlLapp/YJYpD7Aml3Gxm/w2LepX9mALitP94Mi3MHVcQVmTtQyL1PsL3gzRx WAC1AH4DFLaU0pIfX/lSyW9s/fBGbL8HYZ1XeZwtEOjmVSxJWz4juyI0MtupAxyfxad0S0 SVV8Gxp3axE2jcIqtMngkzM03Y6/XvFAQg9HaAAzUPWpbvcdTEv6h1qmzgsawALIJ2NxpH a5kf68tt4sYeEN0f/rU2BZO0/1YgF0gUM2Er7yQjFDOp4XBf8nKjpQAZ/Kr2Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668319673; a=rsa-sha256; cv=none; b=ouOTDqYuJlpJL1EdvOKmf/h5uMvF69y7aNsFoCcnxC66D+MkF+uVdHSK4NRuL1n0pW6u3W kWFahtWwR65WEp16kLO2Wvm1sbukZRrqn7emtSHbPHWc1AQzm8JJV3bCg6KrwkKc76H+LR xd+isCp3hOb5o0KdpgM9pz1j5zUTlSQrAS/cmTp41AOWdZLsmTnJpCeReMF7GCHYCY2HTc KxrdHQ3qZjCuq1prJizSoqQjxtHXE1+iWNtRq82bIHiNJr6XVYRCXhkyjZpsNyknLgZMyD qMaP4atzhqSxBzYNPQQhUlFtdGAf7XSP5O3Oq+KiH3XqZiPFUZVllGqRykfeVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="TkIab/c8"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="TkIab/c8"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 446553B58C X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: vQYCtPkRxIa3 On 11/12/22, Ihor Radchenko wrote: > I have the following in my ~/.gitconfig: > > [diff "org"] > xfuncname = "^(\\*+ +.*)$" > > [core] > attributesfile = /home/yantar92/.gitattributes > > And ~/.gitattributes: > > *.org diff=org this looks interesting. i thought this stuff was just for configuring the helper text on the hunk headers that tell you what function the hunk is in, kind of thing. [which i thought there wasn't much you could do with for org even in principle.] however, i will try it to see if it actually changes the diff hunk contents. > > This will help grouping changes under the same heading. i think this is what i want. at least probably. > > Source: https://protesilaos.com/codelog/2021-01-26-git-diff-hunk-elisp-org/ idk why but this page is blank for me. then if i try to disable noscript restrictions, noscript says "This is a privileged page, whose permissions cannot be configured". so i guess the blog, or whatever it is, is incompatible with my firefox-esr. in addition, i encountered a broken org-capture extension problem with your email post in gmail. first i selected text, and i didn't get the "captured" notification from the org-capture extension. well, that's probably firefox-esr's weird selection something or other. selection color and my black bg are simiar so i couldn't tell. but nothing got captured. but then i selected it accurately and i /did/ get the captured notification. but nothing was captured to emacs. and that is precisely the problem that is being discussed on a couple of other ml threads: getting notified that capture from firefox worked, reliably. [the org-capture extension notifies you, but it doesn't really know whether capture worked.] > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com