From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Vivier Newsgroups: gmane.emacs.devel Subject: [PATCH] orgalist: Update bug:31361 workaround for new upstream signature Date: Thu, 09 Mar 2023 11:55:22 +0100 Message-ID: <877cvqmbxh.fsf@hidden> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21769"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas Goaziou To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 09 11:56:16 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1paDwU-0005Ou-Iu for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Mar 2023 11:56:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paDw6-0002YE-34; Thu, 09 Mar 2023 05:55:50 -0500 Original-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 1paDw1-0002Xz-H2 for emacs-devel@gnu.org; Thu, 09 Mar 2023 05:55:45 -0500 Original-Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paDvy-0003ch-W8 for emacs-devel@gnu.org; Thu, 09 Mar 2023 05:55:45 -0500 Original-Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1paDvs-0012Oc-Te for emacs-devel@gnu.org; Thu, 09 Mar 2023 11:55:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zaeph.net; s=selector2; h=Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From; bh=t478QfBTXvGXPHjqdJ7nETDXqhFBIodyWP3WFOh9V/o=; b=Dh+Q+XeUnAxg+5Bf4pfp2P+kO xE7PoXrVFZ4VfQcGI5ay0wqifFKbm9L6nsbUqI7F9ZoOrD1g7uk6u/PF3L8tRUCsa0gqKvgKLVRxK CaoGdSV2HyWa/RwfFanoym4ZGrxjvEBpS1mR0nD35glmJ7yPphWunwGGxBOsUlgrE/daZECYxIuqn 7/0e7GuOfNUihFVOHhQ865wlpFm9aUDt5w8fsVcmFMEsLBmcDM73v3ddYd1M1eTkc3vIxOlIt5QfD vAMS7ufNoTo+mZ8RU//CXv39f3Qsk6fCEFkn/jJXd8pg+QwVJi+qq682gxhkHeuXU4WmrM2cmV4WD G1m7Kfh9Q==; Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1paDvr-00072R-GA; Thu, 09 Mar 2023 11:55:35 +0100 Original-Received: by submission01.runbox with esmtpsa [Authenticated ID (984850)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1paDvo-00064t-1U; Thu, 09 Mar 2023 11:55:32 +0100 Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=zaeph@zaeph.net; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304184 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, This is a quick bug-fix patch for Nicolas=E2=80=99s orgalist (Cc=E2=80=99d): - TINYCHANGE (but I=E2=80=99m CLA=E2=80=99d.). - Tested on master and on 28.2; everything works. - Bumped the copyright. I=E2=80=99m not sure which way you intend ELPA patches to be submitted. I= =E2=80=99ve based my commit on the externals/orgalist branch from emacs/elpa.git; let me know if you=E2=80=99d want me to proceed differently. Best, --=20 Leo Vivier Freelance Software Developer Website: www.leovivier.com | Blog: www.zaeph.net --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Update-bug-31361-workaround-for-new-upstream-signatu.patch >From 00803627bf22f00aa1666977d9d157d9bd1e6183 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Thu, 9 Mar 2023 11:26:59 +0100 Subject: [PATCH 1/2] Update bug:31361 workaround for new upstream signature Upstream, `indent-according-to-mode' has a new signature. - Introduced: Thu Nov 18 08:11:26 2021 +0100 f596f0db82c0b1ff3fe8e8f1d8b07d2fe7504ab6 - Still present in master: Thu Mar 9 12:04:52 2023 +0200 8589de94d8a44cd566eb3fe128f8091d7e958ee9 The old signature raised wrong-number-of-arguments errors on `indent-region'. --- orgalist.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orgalist.el b/orgalist.el index 7bf27e2..6f1d2ec 100644 --- a/orgalist.el +++ b/orgalist.el @@ -880,12 +880,12 @@ C-c C-c `orgalist-check-item'" ;; FIXME: Workaround bug#31361. (unless (advice-member-p 'orgalist-fix-bug:31361 'indent-according-to-mode) (advice-add 'indent-according-to-mode - :around (lambda (old) + :around (lambda (old &rest r) "Workaround bug#31361." (or (orgalist--indent-line) (let ((indent-line-function (advice--cd*r indent-line-function))) - (funcall old)))) + (funcall old r)))) '((name . orgalist-fix-bug:31361))))) (t (remove-function (local 'fill-forward-paragraph-function) -- 2.39.2 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-Bump-copyright.patch >From 03a82f3c925455f26dfdae87f8517f7294d6c806 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Thu, 9 Mar 2023 11:40:12 +0100 Subject: [PATCH 2/2] Bump copyright --- orgalist.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orgalist.el b/orgalist.el index 6f1d2ec..045de9d 100644 --- a/orgalist.el +++ b/orgalist.el @@ -1,6 +1,6 @@ ;;; orgalist.el --- Manage Org-like lists in non-Org buffers -*- lexical-binding: t; -*- -;; Copyright (C) 2017-2020 Free Software Foundation, Inc. +;; Copyright (C) 2017-2023 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou ;; Maintainer: Nicolas Goaziou -- 2.39.2 --=-=-=--