From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oAbeOfYUPWPFSwEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 07:24:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4DsKOfYUPWNqxAAAG6o9tA (envelope-from ) for ; Wed, 05 Oct 2022 07:24:06 +0200 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 94BBD208CD for ; Wed, 5 Oct 2022 07:24:06 +0200 (CEST) Received: from localhost ([::1]:34694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofwt3-0004Wc-H9 for larch@yhetil.org; Wed, 05 Oct 2022 01:24:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofwr4-0004Ta-41 for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 01:22:02 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:50947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofwr2-0001nn-By for emacs-orgmode@gnu.org; Wed, 05 Oct 2022 01:22:01 -0400 Received: by mail-pj1-x102a.google.com with SMTP id lx7so14716902pjb.0 for ; Tue, 04 Oct 2022 22:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=DnWZs/feU94svYcvqj6n5cF0//0B8VFG1bVDa4xhyKw=; b=XcDChNer3bc4zZiQdTyD33W4UwF89du2V6mjRPOVhTk55C1lJvuNORv2910uPZ9nxO VG1cvwOBdO3+9aFnMjNIJbrynWl85aTqmrlFzoidm7XV9QL0MMwJNmy0rkZi07BFdqv1 hsIyC7fZqhPh8g5fMts9bFBNiWy/4pEeoh9VVgA2dquo3j7eccexH/LQSIoU0lLICaRY U+lTmhqD9F3lY+1tOsvDAZwTVcm5jgwU3RiBdQxqSo9ds5/CUMng7vI81o/5KgC59X12 JFSrNJi+CmMdsMJ8y0h12/ICDfe9RbjdiFF9vybklsNIRwsMkAAJHSfnX2wEmCamN6v3 PvcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=DnWZs/feU94svYcvqj6n5cF0//0B8VFG1bVDa4xhyKw=; b=j6UQ0+TGwpeKIIgOzliDaPeW8wJNrMs03PGpzuPIwMZL6xq+c9c2SoItNYOv/zjE/V PFjlmPBbgC1a+8uolmNcbHOTZTuODwiIcC9L/Ba7USNawnzn7EZKYI2aB9rIQ4+RfNuL oV2/Z2o1uyzk7PeHwfD1zZOJkN3xTryVc9LZCVnFdFjIX6uocFXMJsnsJczB6XnA6etR ZQpOY7XMpkVXbrH0BI92RFwk45aiR+mQzyv/mwK9BPkqUV5ysBJPB2hqmoiy5thToWNe vlx4ZTePLTwNwnh3P0JicvwCYC35AHTgevIQJtqZcliL5kYVse8ytQUGD5X74ItOOTgM 1DYg== X-Gm-Message-State: ACrzQf3yteiWimHVb5oocR1VBrE1OZ+h9ZVy38FYBFQCiJMRrLQ3+sem iYi/tAO0BEUCIMM9KSh4efI= X-Google-Smtp-Source: AMsMyM6ZtIngYjXQnrklPwHOqNYMYGuPchbrOGKOptK49/Wfzs1I25+TfJzGuS4tm2i3c8uzOXiSOA== X-Received: by 2002:a17:90a:aa8c:b0:205:98b8:f8d5 with SMTP id l12-20020a17090aaa8c00b0020598b8f8d5mr3332855pjq.159.1664947318798; Tue, 04 Oct 2022 22:21:58 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id q15-20020a170902dacf00b001743ba85d39sm3729251plx.110.2022.10.04.22.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 22:21:58 -0700 (PDT) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: emacs-orgmode Subject: Re: `org-fill-paragraph' (`M-q') in Org Mode source blocks In-Reply-To: <0635605b-4cd0-b120-3e7c-02ee5db041e2@posteo.eu> References: <87y1txwgat.fsf@localhost> <201b44de-1f97-1b23-1767-970ee00f259c@posteo.eu> <87mtadw99f.fsf@localhost> <0635605b-4cd0-b120-3e7c-02ee5db041e2@posteo.eu> Date: Wed, 05 Oct 2022 13:22:50 +0800 Message-ID: <87bkqqalp1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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" 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=1664947446; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DnWZs/feU94svYcvqj6n5cF0//0B8VFG1bVDa4xhyKw=; b=ok1lmln6mSzXCr5fblD5v++YnyjuthrBICW+eMP9KS+j6Ef4BK5yAwgqlhVotRI9MaJ+Xn KJg5H+rhNMo+voDREYWOhZjTzgYoT++rc+weyFVyT95R21djK/Qo0rOgVwKBfbgZRV/rXz AI1Fzlzb0zwpqr4JVYT1EcMS43UP3ZK5O9iKcbHOQRhJ5Ixq3i1N14Y3X7yxX3X9CJDQIy eeQOrlARFYeTaFJQmxbuc7ko3e3gu39oevIImmipIVzj3efzaZn6cadH7Nz94YXdzFPAwa uivsKOql5avBCIFz7RmRTZ6ntaXV3St8EVdCjgZWxQU22kiZszkmErujl/zSKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664947446; a=rsa-sha256; cv=none; b=N22x0tATNZkxoYRpK0P7jroRnYrpkW1Rh04bO4SQL/Iz6R+nF9R+qPGOWAses1UL/erN3Q tC+npgyLt7V8OsNtBx1iA/wfu2k8tuvWs+pAKSdDwlBfYYo4h1EzycOTSJ5qtk/bEKFsrP 3zGM4/eosOn8NDs8IuhlwA0ZpCDVY87fkFvMFx1rqu9l5ipK59X+9m0/A7QFVO+9pJyJRv zxmkasQx7K294pjyIMuirI21TNlooZmrVQ41nKiEPxRLGri6f9SGcEPQwdjlqPbkBzAZV+ wuMVxdYDEPwD0AiFW+xm0DxcpzkLhHVmvmInCD8B5sZ262eO8gQ+rwD0CPaOQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XcDChNer; 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: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XcDChNer; 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: 94BBD208CD X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: 90qfFJTNSaHY S=C3=A9bastien Miquel writes: > Ihor Radchenko writes: >> See the attached. >> I am not sure if we really need the variable. >> AFAIU, acting natively was the default in the past for M-q with no >> region selection. Then, I "fixed" some bug report in 05ee1e6ee06db and >> introduced the bug herein. > > You're right, I had not realised org-fill-element already acted natively. > > Your patch looks and tests good to me. Thanks for checking. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D2c8bd0cc9= b914b4dcc11e337faedbabe195097fb --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92 Fixed.