From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJ63C0s1OmJNiwAAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 21:44:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4LvxCEs1OmKvZgEA9RJhRA (envelope-from ) for ; Tue, 22 Mar 2022 21:44:59 +0100 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 8D9D83DBFB for ; Tue, 22 Mar 2022 21:44:58 +0100 (CET) Received: from localhost ([::1]:48130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWlNB-0004OF-KK for larch@yhetil.org; Tue, 22 Mar 2022 16:44:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWlMi-0004O4-5A for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 16:44:28 -0400 Received: from mr85p00im-ztdg06011201.me.com ([17.58.23.181]:50492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWlMg-0004qH-LI for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 16:44:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1647981863; bh=LS3DjgWfcpPRKs72zIP5OyDUy86rDCoVzpgPu5YIU20=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ghnc1k+z9hBI31kYNJPOfMAcW4kn/AYg/SCTdqFq85pXs8zXWntxrEzvMrwJvXvCt dvBTtiyUoG35H/gMwLmBQdW7P+Q2Psv30B8l0MdgnEwA8N/C6GsSIEtGEqIZnE+AUc 7Trb1/9rp9FGOdpmESZOuZ3YX7//INjO7FivLvD1ij427E+XrU0XucYPjW9eBwGZlk PDye/G7A3cT8aW8Xwzy8sBju2IL76rgIjHbc41yfAcCEqpuVYyL/4Toj0H0Y9GDpYa 3HzCE+ePXaTLYdHDa3bsyr+MHiVZ8Wc9x3GBv9PhgtFJLXaP7F1ZqM+lmQG/c+xTQh pW3ycCmN5OXdg== Received: from Workstation.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06011201.me.com (Postfix) with ESMTPSA id 54DED9603C2; Tue, 22 Mar 2022 20:44:22 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: emacs-orgmode@gnu.org 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/)] In-Reply-To: <871qywerpi.fsf@localhost> References: <871qywerpi.fsf@localhost> Date: Tue, 22 Mar 2022 21:44:18 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.816,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-18=5F01:2022-01-14=5F01,2022-01-18=5F01,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2203220106 Received-SPF: pass client-ip=17.58.23.181; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06011201.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647981898; 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=LS3DjgWfcpPRKs72zIP5OyDUy86rDCoVzpgPu5YIU20=; b=eyMv4KbjWI/6GMr88a3pOkcb5UUNi2Q23QX2JW+kA3puFxxFJ0IQa8aIiEtTDzn1Cm3kMH VKsCvmLU4HD4YqrZO237YeeG5PitUWwO8OPgFQMUB/hghxnRs00878XrQjdR91cYdF1qQU hiQ93tFnLd5CBGw89/nu+2OB/eVPil5FxVxxJoFNkVx+Dt6DbnMtN8sX1doLg8OZfy3pEC iS4wygJseAVqawAHHUSUGNzrR6fkvUg1l+WM5tfjdCCAuGINj7OcSNFFPVLmdGSmQ9NJb1 f/dFsiAenWmVCEzcw0M9RMIT2k+4//F2FnAYGO0RbMcpnm+iZrhBEPrKUO1+LA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647981898; a=rsa-sha256; cv=none; b=OBIbEpmLeRI1b3X1feOT8LXBnMlCqFDhk0t6fG7vSW/VyaGrgPhfeNG0rzn7IgzUyvd5Ww jde69VNusYZkAs+aAZeNfydpCv1uHyMadiNVvkkmb+cZvf1+tnuwRE+OOEHNSbvt6phvFG btZ9gT92agm63lCsjsr2VO+umLhcEaMf5cqf4HGiIaDUP5k8xzML9KFm8lNwsRXZE55O6Z Xjc3jEJa5ALu6IxVP+U46iPjCp/9JhiTsXDDRNGFK9pVF4Kdn++Y4Q+sBJ+IMdiLD99PEa 9kI3idzLDyrGHN95f1s+iK70J6zxI0CpmU306IiKKvPzaBqkcy6K3jCi39T+gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=Ghnc1k+z; dmarc=pass (policy=quarantine) header.from=me.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: -5.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=Ghnc1k+z; dmarc=pass (policy=quarantine) header.from=me.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: 8D9D83DBFB X-Spam-Score: -5.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: l3ebwfBZGSXk Ihor Radchenko 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-insnsiti= ve. > + (region? (use-region-p)) FYI: A typo in "case-insnsitive" (expected "case-insensitive") Looking forward to seeing this merged! Rudy --=20 "I love deadlines. I love the whooshing noise they make as they go by." -- Douglas Adams, The Salmon of Doubt, 2002 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia