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 ms11 with LMTPS id U3feLU4e017CLQAA0tVLHw (envelope-from ) for ; Sun, 31 May 2020 03:02:38 +0000 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 sIR0KU4e014fdwAA1q6Kng (envelope-from ) for ; Sun, 31 May 2020 03:02:38 +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 34E459404D0 for ; Sun, 31 May 2020 03:02:38 +0000 (UTC) Received: from localhost ([::1]:51272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfEF9-00017K-KY for larch@yhetil.org; Sat, 30 May 2020 23:02:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfEEo-000170-4P for emacs-orgmode@gnu.org; Sat, 30 May 2020 23:02:14 -0400 Received: from [183.249.132.153] (port=1850 helo=localhost) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfEEm-0002PX-GO for emacs-orgmode@gnu.org; Sat, 30 May 2020 23:02:13 -0400 Received: by localhost (Postfix, from userid 1000) id 421042413DB; Sun, 31 May 2020 11:02:01 +0800 (CST) References: <874kryi3g6.fsf@gmail.com> <86E57D97-6D20-4583-BDD6-523560CCA40C@health.ucsd.edu> User-agent: mu4e 1.4; emacs 28.0.50 From: stardiviner To: "Berry, Charles" Subject: [PATCH] Re: [BUG] recently commits on master branch breaks command 'org-babel-demarcate-block' In-reply-to: <86E57D97-6D20-4583-BDD6-523560CCA40C@health.ucsd.edu> Date: Sun, 31 May 2020 11:02:00 +0800 Message-ID: <87pnakbydz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 183.249.132.153 (deferred) Received-SPF: softfail client-ip=183.249.132.153; envelope-from=numbchild@gmail.com; helo=localhost X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 23:02:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 53 X-Spam_score: 5.3 X-Spam_bar: +++++ X-Spam_report: (5.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: reject 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: numbchild@gmail.com Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Spam-Score: -0.51 X-TUID: DGuircVFgTRj --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Berry, Charles writes: >> On May 29, 2020, at 7:03 PM, stardiviner wrote: >>=20 >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >>=20 >>=20 >> When I have a source block (The "|" represents the point): >>=20 >> #+begin_src sh :eval no >> chrome --remote-debugging-port >> | >>=20 >> #+end_src >>=20 >> Then press =3D[C-c C-v d]=3D, it becomes like this: >>=20 >> #+begin_src sh :eval no >> chrome --remote-debugging-port >> #+end_src >>=20 >> #+begin_src >> sh :eval no >>=20 >> #+end_src >>=20 >> - -- > > Exactly. Commit 5f0a9cca3 adds a `\n' in line 1911 that should have been = a space.=20 > Thanks! I just did a small patch to fix this. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-fix-5f0a9cca3.patch Content-Transfer-Encoding: quoted-printable From=20af210eeb78d7611aeb7b6d1a99433cee10e53186 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Sun, 31 May 2020 10:59:41 +0800 Subject: [PATCH] fix 5f0a9cca3 =2D-- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index e554e3934..79937e517 100644 =2D-- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1908,7 +1908,7 @@ (defun org-babel-demarcate-block (&optional arg) (if (looking-at "^") "" "\n") indent (if upper-case-p "#+END_SRC\n" "#+end_src\n") (if arg stars indent) "\n" =2D indent (if upper-case-p "#+BEGIN_SRC\n" "#+begin_src\n") + indent (if upper-case-p "#+BEGIN_SRC\n" "#+begin_src ") lang (if (> (length headers) 1) (concat " " headers) headers) =2D-=20 2.26.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Chuck > > [snip] =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7THikUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsN4dwf+OgY+VZ+kPt/dOa6ICY3yhwy7Px2m qmdEc1h1U8P6SV/U0zY+em+B5gxp2WvUOdel7NE7MVFcz4uft9SJolydwWW7OkZT gsfxQ6IzEbfkoM+0DdUZMjuAdRUIgiY0B2KfYeAl4aVaE/AVEPMACcfelKxuvH90 UyANYGg1QMEqTYYaaBcn/bPKUlCsMBogw7+fJD367D5Xk8Xs3iV0Ml9w4tkrZ+Zv +CPUQDtm0futeSKJ9t4XAjlNvmfacf2d9mZDCjqqwyTHv6UJorzjok8fsih7AJtY cY0U82dmAqHni26To71edAW4it/kH59jYunCk13EV5+eyNr5rfpIjEG1aw== =qJU0 -----END PGP SIGNATURE----- --==-=-=--