From: stardiviner <numbchild@gmail.com>
To: "Berry, Charles" <ccberry@health.ucsd.edu>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: [PATCH] Re: [BUG] recently commits on master branch breaks command 'org-babel-demarcate-block'
Date: Sun, 31 May 2020 11:02:00 +0800 [thread overview]
Message-ID: <87pnakbydz.fsf@gmail.com> (raw)
In-Reply-To: <86E57D97-6D20-4583-BDD6-523560CCA40C@health.ucsd.edu>
[-- Attachment #1.1: Type: text/plain, Size: 707 bytes --]
Berry, Charles <ccberry@health.ucsd.edu> writes:
>> On May 29, 2020, at 7:03 PM, stardiviner <numbchild@gmail.com> wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>>
>> When I have a source block (The "|" represents the point):
>>
>> #+begin_src sh :eval no
>> chrome --remote-debugging-port
>> |
>>
>> #+end_src
>>
>> Then press =[C-c C-v d]=, it becomes like this:
>>
>> #+begin_src sh :eval no
>> chrome --remote-debugging-port
>> #+end_src
>>
>> #+begin_src
>> sh :eval no
>>
>> #+end_src
>>
>> - --
>
> Exactly. Commit 5f0a9cca3 adds a `\n' in line 1911 that should have been a space.
>
Thanks! I just did a small patch to fix this.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-fix-5f0a9cca3.patch --]
[-- Type: text/x-patch, Size: 811 bytes --]
From af210eeb78d7611aeb7b6d1a99433cee10e53186 Mon Sep 17 00:00:00 2001
From: stardiviner <numbchild@gmail.com>
Date: Sun, 31 May 2020 10:59:41 +0800
Subject: [PATCH] fix 5f0a9cca3
---
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
--- 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"
- 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)
--
2.26.2
[-- Attachment #1.3: Type: text/plain, Size: 281 bytes --]
> Chuck
>
> [snip]
--
[ 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]
next prev parent reply other threads:[~2020-05-31 3:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-30 2:03 [BUG] recently commits on master branch breaks command 'org-babel-demarcate-block' stardiviner
2020-05-30 20:57 ` Berry, Charles via General discussions about Org-mode.
2020-05-31 3:02 ` stardiviner [this message]
2020-05-31 3:07 ` [PATCH v2] " stardiviner
2020-05-31 16:47 ` Matthew Lundin
2020-06-01 0:43 ` stardiviner
2020-06-01 1:12 ` Matthew Lundin
2020-06-01 7:32 ` [PATCH v3] " stardiviner
2020-06-01 13:50 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnakbydz.fsf@gmail.com \
--to=numbchild@gmail.com \
--cc=ccberry@health.ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).