[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-templ
From: |
Rudolf Adamkovič |
Subject: |
Re: [PATCH] Re: [BUG] Hard-coded begin/end in org-insert-structure-template [9.5.2 (release_9.5.2-24-g668205 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] |
Date: |
Tue, 22 Mar 2022 21:44:18 +0100 |
Ihor Radchenko <yantar92@gmail.com> writes:
> We can auto-magically determine whether to use BEGIN_ or begin_
> depending on the case in template type. Tentative patch attached.
Interesting!
> +with \"#+begin_\" and \"#+end_\" added automatically. If the block
> +type is written using upper case letter, \"#+BEGIN_\" and \"#+END_\"
> +are added instead.
FYI: A typo in "letter" (expected "letters")
(We could also simplify to: "if the block type consists of just
uppercase letter".)
> + (let* ((case-fold-search t) ; Make sure that matches are case-insnsitive.
> + (region? (use-region-p))
FYI: A typo in "case-insnsitive" (expected "case-insensitive")
Looking forward to seeing this merged!
Rudy
--
"I love deadlines. I love the whooshing noise they make as they go by."
-- Douglas Adams, The Salmon of Doubt, 2002
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia