From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 5iXXMAFdmWHtUwEAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 21:39:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +G3SKwFdmWHrSAAAB5/wlQ (envelope-from ) for ; Sat, 20 Nov 2021 20:39:29 +0000 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 3ABFC239C2 for ; Sat, 20 Nov 2021 21:39:29 +0100 (CET) Received: from localhost ([::1]:58874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moX8x-0004Fy-Ib for larch@yhetil.org; Sat, 20 Nov 2021 15:39:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moX8T-0004Fp-96 for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 15:38:57 -0500 Received: from [2607:f8b0:4864:20::102b] (port=39832 helo=mail-pj1-x102b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moX8Q-0001Ux-Rk for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 15:38:56 -0500 Received: by mail-pj1-x102b.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so13588856pjc.4 for ; Sat, 20 Nov 2021 12:38:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:user-agent:message-id:mime-version; bh=NYXhl9KVfUHNs+NO9dBcRITyBUm1IWaB2vOQGnmevPY=; b=XjaZPEPQ70lAJ32Q22AfwGPJw7olSXoDqlpd6Cq3WQQq6ayyOztzQlDg4v0GIKLdJy 7KP/ZlT5t8myq7wFS4cr28OkweRudGSg28Kg1ojPgfRktIFvCq1l/YECY5CMzFTbyb6/ oZJqauWiztg7IPk/wTbEu3O5SurbPEewZmQsPOPFF9WmgG8SB8b1XVvFj9zK2xcuqAR/ 8Jmo0YVqi4/WTJ5XGZsYBdjA/G8b11lLduboRPF/gnEt4gCW5CGnl5LR2/ILhOpz0ryy vsvtiPRRdStWxdCOuu57HWtJ2Q+QlrLChg8bQ6oN2SIT5FB9WcRXHhxrFQsLAX5wqPNc eRhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:user-agent:message-id :mime-version; bh=NYXhl9KVfUHNs+NO9dBcRITyBUm1IWaB2vOQGnmevPY=; b=E6oYujcfpuMDJUZDsggxcbFxWwu4W1Jfz7qBbcdoRNNGs+MkpobJ33FPnnDS39q+yU P/9wRC57wuMyJY9YDlgMdCW4x64uRfiktiMtID3bR78xk9L/HsT1XxrbQBUCYe7QifYO 7Ovf5qjxlZ2BrOVFXXd8BeHePWQBntC3NxuCn+OhLWhUGj2Ep3uMg/6hZI1UfLCjjKvC 9fvcZzgfTcAHRc3kNVlyuCdLCl3hDkH6N1VFOKoZUneOi/o2E7la8QvtdYT8JWWJ2vWc XzzeScJQBk8RtDcktNXwa57wkC1om5y+HoKQ242qaD3Y7Qwyx/I+bvJgPOLXy485W03s vExw== X-Gm-Message-State: AOAM532K9FrVVe2ZoW1SYyP42qxRmmPpi6Swy/bwqZp1Q6ivkNlCvsye RHj6BWJvjFV0cOXVhtqZMVVBGVZ5M0Y= X-Google-Smtp-Source: ABdhPJw1JkdahNSNUVC2fi8iD9f4+aYwN3yGTZWR4Ikfx4LUmWk2/un7B0dfZNk0HdouNkH+M8wA9w== X-Received: by 2002:a17:903:2045:b0:142:3d07:2866 with SMTP id q5-20020a170903204500b001423d072866mr90403272pla.17.1637440732965; Sat, 20 Nov 2021 12:38:52 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id pc10sm3318513pjb.9.2021.11.20.12.38.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Nov 2021 12:38:52 -0800 (PST) From: Timothy To: orgmode Subject: [Aside] Generating commit messages for Org Date: Sun, 21 Nov 2021 04:27:45 +0800 User-agent: mu4e 1.6.9; emacs 28.0.50 Message-ID: <871r3a8svb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637440769; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NYXhl9KVfUHNs+NO9dBcRITyBUm1IWaB2vOQGnmevPY=; b=HLiTQ0FTShFdfYfxXcWFJRcFM2BVzn+XGrnYeSqiGsgw7vfmHNtGvl/LZof4TivUBTaGJs TszExkHqMezWAwaDFKATX3Tk5JRJEvqqqWSN2k6YOqA7wO1ONpIAo8qQDqBHwp9Nt1eExx 3zQtBmJfxQxNhKllkzgPCxGtB1QP0fezVkbLUcLl5vJss98x8izEW61jpUPtt1j/HA3At6 7wzKgueoWOTwFTuo7ZuE7qFb4D6QOU79a2R4fkZ0U78HyYiHIJhdTMO0cYS/gdtUNElI0t qBjzPthAMi7q2ruQhDbnybrWBPUDfkHgUVRVRsSmKGQzLOGwclhnpkqO939+Xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637440769; a=rsa-sha256; cv=none; b=VhB1rdLScD0oAk2eRmQS0z89Jd2p4iMV5mRyul5V6n9fG2JWFFoAPQy4xVFF895XSl/qLL 4X5rgBfBC/RpBIdjo0mciJcqIcFaWsyCsaGFD0mAZtFgVNhd2diUIGXcMe8Mm+J9ALK018 K2gKTZP4RmMRD76cwSI7n1tg0MnLMSKDfbEQ2t3f7pxLnKsWU0ktATREAr/kT9mFbC5IGe NtkkjUqcCFjof6CWV0T0KwquqoI1Q4V+w3BgVwwlprtzZHm7EcYmlBm2jIfLWpEp9HVKiy Wvwr+IcoBI4rghZRhNryk5s07MpOHtgW653X9GlSLaVj9vJA54ncHPATCEaycg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XjaZPEPQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XjaZPEPQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3ABFC239C2 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: E4YutdPy1fXG --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi All, A few hours ago I noticed that I=E2=80=99ve made a few very minor mistakes = in some of my recent commit messages for Org. Realistically I don=E2=80=99t think I=E2=80= =99m going to stop making occasional mistake any time soon, eve if they do become rarer. So, I= =E2=80=99ve whipped up a magit hook that looks at the diff and fills in a /correct/ ske= leton in the commit message buffer. For example, here=E2=80=99s what I get if a queue a few of my currently uns= taged changes =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 * lisp/org.el (org-place-formula-image, org-format-latex): =E2=94=82=20 =E2=94=82 * lisp/org-macs.el (org-compile-file, org-async-queue): =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 This currently works with elisp functions/variables/etc. and headings from documentation files. I=E2=80=99m sure it has a few rough edges, but it=E2= =80=99s looking promising so far. Maybe a few of you might also find it of interest? (the relevant commit is ). Another thought I=E2=80=99ve had is a commit lint function for flycheck to = check some extra things (two spaces after sentences, commit subject starting with a ca= pital letter, etc.), but I haven=E2=80=99t looked into that at all. All the best, Timothy --==-=-= Content-Type: text/html; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =

Hi All,

A few hours ago I noticed that I=E2=80=99ve made a few very minor mistakes = in some of my recent commit messages for Org. Realistically I don=E2=80=99t think I=E2=80= =99m going to stop making occasional mistake any time soon, eve if they do become rarer. So, I= =E2=80=99ve whipped up a magit hook that looks at the diff and fills in a correct skeleton in the commit message buffer.

For example, here=E2=80=99s what I get if a queue a few of my currently uns= taged changes

* lisp/org.el (org-place-formula-image, org-format-latex):

* lisp/org-macs.el (org-compile-file, org-async-queue):

This currently works with elisp functions/variables/etc. and headings from documentation files. I=E2=80=99m sure it has a few rough edges, but it=E2= =80=99s looking promising so far.

Maybe a few of you might also find it of interest? https://tecosaur.github.io/emacs-con= fig/config.html#commit-message-templates (the relevant commit is https://github.com/tecosaur/emac= s-config/commit/d1e3042a).

Another thought I=E2=80=99ve had is a commit lint function for flycheck to = check some extra things (two spaces after sentences, commit subject starting with a ca= pital letter, etc.), but I haven=E2=80=99t looked into that at all.

All the best,
Timothy

--==-=-=-- --=-=-=--