From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id c7XjCnRWoWDzEAAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 19:29:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KNXoBXRWoWDlUQAAB5/wlQ (envelope-from ) for ; Sun, 16 May 2021 17:29:24 +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 701D5135FE for ; Sun, 16 May 2021 19:29:23 +0200 (CEST) Received: from localhost ([::1]:48256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liKZt-0002zj-JX for larch@yhetil.org; Sun, 16 May 2021 13:29:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liKZW-0002zP-JL for emacs-orgmode@gnu.org; Sun, 16 May 2021 13:28:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]:52149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liKZT-0003Hm-Jv for emacs-orgmode@gnu.org; Sun, 16 May 2021 13:28:58 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E7C05240028 for ; Sun, 16 May 2021 19:28:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1621186130; bh=MeBaqqUeS8CosIY0H3/Cmktz8EIptYDBnMoNR3fzXsI=; h=Subject:To:Cc:From:Date:From; b=Z6nNRVCDv6XhTiTlfPXK3pkWDU0PZs/0v5y8ck2fsW+9+NBUF1PLaGHcgy93nus7J KnslnhN0NGmchXIGjlPSvdWHfyHZPQ7l1aX/4U6d4ahmtGmszKE/yeCtfbPkqKIuqp 3vblD4LDTRvivYwacpXrwqFuQM9PD1r43LnzwMia0aBUQxBKXT4DWby7tcqX34fmdU h4mSqlcSq40X7WZfuBBcyBDP4jsCXiJdNZ4Rrua77T7peH6jBzCm/8nSW3Ri6jckgZ 46wcMrHY1B0cN8qDmmF/pZQPz5UC//0MVCYs+Zj+qYOqWcnSSdWER5t9EOiCveuvSY 5Qm5VeUYUlLsA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fjq4L3Dggz9rxW; Sun, 16 May 2021 19:28:50 +0200 (CEST) Subject: Re: [Patch] Bug: org-indent-region doesn't restore cursor position when org-src-tab-acts-natively is t [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)] To: Bastien References: <603f9c4e-c621-7592-5b20-a7354c11d5d2@posteo.eu> <87zhdz1par.fsf@gnu.org> <878slijpzg.fsf@gnu.org> <4545c239-c8bf-fa16-2591-b0ee541ea732@posteo.eu> <87d0andkmi.fsf@gnu.org> <0b735431-d1e3-090d-da9f-904bd538b57f@posteo.eu> <875z8tomtx.fsf@gnu.org> <5afb1142-5167-fc44-783d-937ad2bd5584@posteo.eu> <3072e244-4615-aaad-4019-621bb3d1d4f8@posteo.eu> <87cztqswrb.fsf@gnu.org> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: Date: Sun, 16 May 2021 17:28:50 +0000 MIME-Version: 1.0 In-Reply-To: <87cztqswrb.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------67E8C9C126C73FBA7C9530C2" Content-Language: fr Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode@gnu.org 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=1621186163; h=from:from:sender:sender:reply-to: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=S3huUqKbl63d54jbl04zEge4I+Y3OTWcrfvOcPpAP88=; b=QtX++HvLEZM11JD4mR7xKjpNsr33+2zyzUL17OESgrpsoedmOD20fipB1Cuevn4L4oUw03 /aC5G7vBWzEJ8bsELWCYQL9lOxtRk8YjwjYbZQRYiKqSYzjtqa2Qj1e8PAw5JQQxv238KD 2hoqFMOpZpQM9suATdfPGyN3ZvnwFt/HLIUupNkuyEY57iDJVzG6FSGkiEwzgdorIcYT4c ZM6N8M7CBTLDmLXrk8rEvbqA7KZ4EeMP9nLsB+KpbM+M83YZv3jXDJHwbEBIonj7o5p0+e fAB/gqx/1OwXWzHK7rL5EUBfZIOyBiMsCe14rMg4c0ZlX72QScMqX0WF9WolkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621186163; a=rsa-sha256; cv=none; b=s1xNzTrUriTqqf4TEu9oFw9UYxrLD4ddkRkeCoz20O7bZFW12513cPm7CQc5USaFHSeGoj dzh/C1tPO/Pdn64OYRgZI0jKKr9C6Y11XtqXGHAbmnWBRDBHCJGBiOHYbuTzr8SBNyDuLR qgN9C7m9bIYygW8sFFRrOT5jga3Mhs4xJbcFn09A4h9EwXNe3NfWiq++ChL+FNLWQrFyKt 5XI817BOlrHtHDzS0Ii3DLj3oeASZ4G9WsVVIOlbMlryo/JVBxG2orN1+23U6pUu9p62Cy KY4XXboTiianjdHZJuVTmCsAs3R84htYqtIo3wuz2E6I14XKMadgyKSpON/Rbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=Z6nNRVCD; dmarc=pass (policy=none) header.from=posteo.eu; 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: -1.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=Z6nNRVCD; dmarc=pass (policy=none) header.from=posteo.eu; 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: 701D5135FE X-Spam-Score: -1.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: j6c+x4QJxIX8 This is a multi-part message in MIME format. --------------67E8C9C126C73FBA7C9530C2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Bastien, Bastien writes: > Sorry it took so long to apply this patch, this is now done in maint. No problem, thank you for getting back on this. I think something went wrong though. I've attached as a new patch a part of the previous one that wasn't applied. Without it, some write-back buffers are never killed. Regards, -- Sébastien Miquel --------------67E8C9C126C73FBA7C9530C2 Content-Type: text/x-patch; charset=UTF-8; name="0001-org-src.el-org-edit-src-exit-Fix-write-back-buf-not-.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-org-src.el-org-edit-src-exit-Fix-write-back-buf-not-.pa"; filename*1="tch" >From f293a9d5808c413ce785646ebf5f480df3a00a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= Date: Sun, 16 May 2021 19:13:53 +0200 Subject: [PATCH] org-src.el (org-edit-src-exit): Fix write-back-buf not getting killed * lisp/org.el (org-edit-src-exit): Fix write-back-buf not getting killed --- lisp/org-src.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index df3c76e13..5604e6568 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -1255,8 +1255,8 @@ Throw an error if there is no such buffer." (narrow-to-region beg end) (replace-buffer-contents write-back-buf) (goto-char (point-max)))) - (when (and expecting-bol (not (bolp))) (insert "\n"))) - (when write-back-buf (kill-buffer write-back-buf)))) + (when (and expecting-bol (not (bolp))) (insert "\n"))))) + (when write-back-buf (kill-buffer write-back-buf)) ;; If we are to return to source buffer, put point at an ;; appropriate location. In particular, if block is hidden, move ;; to the beginning of the block opening line. -- 2.31.1 --------------67E8C9C126C73FBA7C9530C2--