From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sPP/Lj8pm2FkgAAAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 06:23:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GPO6Kj8pm2HiSwAA1q6Kng (envelope-from ) for ; Mon, 22 Nov 2021 05:23:11 +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 6E3BA351AB for ; Mon, 22 Nov 2021 06:23:10 +0100 (CET) Received: from localhost ([::1]:42404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mp1nJ-00022Z-Jc for larch@yhetil.org; Mon, 22 Nov 2021 00:23:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moVs6-000784-8l for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 14:17:58 -0500 Received: from [2a00:1450:4864:20::12f] (port=44843 helo=mail-lf1-x12f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moVs3-00056o-Kw for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 14:17:57 -0500 Received: by mail-lf1-x12f.google.com with SMTP id y26so59620417lfa.11 for ; Sat, 20 Nov 2021 11:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=VC74XOmCUJYz25fDRzP/Ghsv15y0xmpksKi75gksYPU=; b=SIbJ+0jaCyuM9TJDc7XwMA7EuiJ+jlcgr4YDlKorzJ3In368wqXb9DEQ9LPaf8rwXR 3OhZtIcmoKZOmog4L8dt12Il4yQSjjCzSeH9hMtN/47EQmEcayFV9aJyo/3WHMMmngNn hE8FIbjYK607JbI7RGyjVrjvJRA+FFx8Uid/HiNb4OG/LreoE8/GKFPjFj5ewFF82qyJ i4c1VOqvXrG9DKL2ZFxlP3BhylQIY2SyvvdGYvrtbkO24p8JLnB2Nrr/E3CshBOtEcdA OrD97jfM3f6I+JW6uphnPn9ugT7Y4aCPyiTNmYjRCyK34UoY8q9xmGjFfgJjjC8YhWrH 5kuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=VC74XOmCUJYz25fDRzP/Ghsv15y0xmpksKi75gksYPU=; b=O+4N/JCR+5mZJoO3qqRSe9UsU4cgYENtPm0T8pp3rxbQAcwKgbc+W4j4uTMxkNGsDz HxjNXiy4fz7W4r9j4i1Cn60kPB/nroAGr+9044KNlhAn4baxmBjoNvNOEYGRHMc0nkLr waXqDmEIc52PW/2mmVk7kOjdCOLKNqhC2RXhAVB/jDnzi7VrtBg1lKpneBo3LA1CYOwN z748MValN0kDKERLsXUbHCoI5GCig59ddDH1avuc4aeX5b//wdzt5m/eB4Tr9kGysqKd DQCqG12Mu7NVnPKpZ7eug/6oqzrlv4c2C6ZvRfRyZmLBQ//fqgaslTJLo7xxv44shZfI dguw== X-Gm-Message-State: AOAM53325mieXqiDDXEUFfQ0DLMJtZkBoAI0Gpu3jIz1q2P9MpY/rq58 a4nNXCHBhbBoNpmDniW639ampfSFX58= X-Google-Smtp-Source: ABdhPJwBseFIO7rp0vMwydmdYg5WzcPqR2SaEqIS0jzUmlCgsYnXKaJSk6MRelQMzHTxE10+8gHTQA== X-Received: by 2002:a05:6512:38c6:: with SMTP id p6mr42526183lft.526.1637435873660; Sat, 20 Nov 2021 11:17:53 -0800 (PST) Received: from [192.168.1.178] (219.109-247-6.customer.lyse.net. [109.247.6.219]) by smtp.gmail.com with ESMTPSA id x17sm301615ljp.95.2021.11.20.11.17.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Nov 2021 11:17:53 -0800 (PST) Content-Type: multipart/alternative; boundary="------------wN9pYg3N3AyY2VCggC5fjKPO" Message-ID: <7407cbf5-2507-620c-afb2-bf7f98e6d96d@gmail.com> Date: Sat, 20 Nov 2021 20:17:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Content-Language: en-US To: emacs-orgmode@gnu.org From: Kristoffer Subject: [FR] org-babel-examplify-region does not add a newline for the example block end X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=kris.lolzby@gmail.com; helo=mail-lf1-x12f.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-Mailman-Approved-At: Mon, 22 Nov 2021 00:18:14 -0500 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=1637558590; 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=VC74XOmCUJYz25fDRzP/Ghsv15y0xmpksKi75gksYPU=; b=ex9OGvOCobRoG5t6ZwyDuZpIbd8WeCc+DjhzK92sasCwyE/9HxX5KDTtX7qlBzuf3hEg6N fgVeXkToqHfeVm+nr90yu7NFS+15KHFM6wSra9RTx0zdLkVbgYN/xZsuM5ZWTPPhtXG+iM XGhrtvl+FQ08dWFWBrCMQdLDaVmuQ16WzW0vkhetxDKRT6RgDwCrxWGOQEOXzKXz9uiWmI eCqoLKUnzRo4mWRTYRYrBcs/DJeTk+GrzrbrPwAnX31PW7DvQ8oZIEeIKHusjlRZXEhffs 8a2Nlug74Tht6n3Q2Bp2xlgF7643vysgVL+YbC5mcA0cXgE0GyAmOYYi9gAzcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637558590; a=rsa-sha256; cv=none; b=OKD4aTwuvy2/TVJ4M0cMDsXiGHfroqO8ewCR94Mc5P9dBF+zjhYv/PL1b5b3C9oeBjCxWY V5xNs0nxMW2ut5la1+4FUF8Uuf5DVf5GCfswWRkGdlBSrWmDa5NT6f3YEcsv6a4JdVz1ZG IHnUHvxv4vzSfhC/TvPIknGoEoTMlBi6Mi0Yf6dM6Gu8FuzMQWCMlxCPad7VraJgkmJFly O0+mWLrJPXbEgRpe/d4ZcGGpz6vyLzUwZKENl9ExsxEl5JgMFb7n5ZJ1bsmrnLDTNozMQa Z4Zqpl63cV6j90c/JO4AHgcoSgEoVpa48rErYQNr05C+6e31uesHsJqaMeyWAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SIbJ+0ja; 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.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SIbJ+0ja; 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: 6E3BA351AB X-Spam-Score: -3.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: w1Zjy3Xk+QpM This is a multi-part message in MIME format. --------------wN9pYg3N3AyY2VCggC5fjKPO Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I've been testing out org-babel-examplify-region in my bookshelf file to mark excerpts from books, but there's an issue I have encountered. If there is a #+end_example after the currently marked region, once you run org-babel-examplify-region, it does not create a #+end_example at the end of the marked region properly unless the last line marked includes the line end. An example is below: This is text, that is marked. #+begin_example This is text, already within an example block #+end_example Marking this text: This is text, that is marked. And running org-babel-examplify-region on the marked region results in: #+begin_example This is text, that is marked.#+end_example #+begin_example This is text, already within an example block #+end_example Which is not a valid example block. I haven't checked the code itself, but I can assume from its behavior that it does not create a new line to place the example block end onto. Behavior for better usability would be to place it onto a new line if other text is present on the same line as the marked region end. E.g. #+begin_example This is text, that is marked. #+end_example #+begin_example This is text, already within an example block #+end_example Alternatively, it could also just make an assumption and always place it onto a new line, but that'd hurt intuitive usability. Regardless, I think something should be done to fix this, but I'm not sure if I'm supposed to categorize this as a [BUG] so I've marked the subject as a [FR] instead. Regards, Kristoffer --------------wN9pYg3N3AyY2VCggC5fjKPO Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hello,

I've been testing out org-babel-examplify-region in my bookshelf file to mark excerpts from books, but there's an issue I have encountered. If there is a #+end_example after the currently marked region, once you run org-babel-examplify-region, it does not create a #+end_example at the end of the marked region properly unless the last line marked includes the line end. An example is below:

This is text,
that is marked.

#+begin_example
This is text,
already within an example block
#+end_example

Marking this text:

This is text,
that is marked.

And running org-babel-examplify-region on the marked region results in:

#+begin_example
This is text,
that is marked.#+end_example

#+begin_example
This is text,
already within an example block
#+end_example

Which is not a valid example block. I haven't checked the code itself, but I can assume from its behavior that it does not create a new line to place the example block end onto. Behavior for better usability would be to place it onto a new line if other text is present on the same line as the marked region end. E.g.

#+begin_example
This is text,
that is marked.
#+end_example

#+begin_example
This is text,
already within an example block
#+end_example

Alternatively, it could also just make an assumption and always place it onto a new line, but that'd hurt intuitive usability.

Regardless, I think something should be done to fix this, but I'm not sure if I'm supposed to categorize this as a [BUG] so I've marked the subject as a [FR] instead.

Regards,
Kristoffer

--------------wN9pYg3N3AyY2VCggC5fjKPO--