From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +I/kLv/8qmC2KAAAgWs5BA (envelope-from ) for ; Mon, 24 May 2021 03:10:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EDGjKv/8qmBEeQAAB5/wlQ (envelope-from ) for ; Mon, 24 May 2021 01:10:23 +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 7A22213CB8 for ; Mon, 24 May 2021 03:10:22 +0200 (CEST) Received: from localhost ([::1]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkz6r-000488-GI for larch@yhetil.org; Sun, 23 May 2021 21:10:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkz65-00047w-9J for emacs-orgmode@gnu.org; Sun, 23 May 2021 21:09:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkz5y-0001wD-6n for emacs-orgmode@gnu.org; Sun, 23 May 2021 21:09:29 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5076B5C006B; Sun, 23 May 2021 21:09:23 -0400 (EDT) Received: from imap10 ([10.202.2.60]) by compute4.internal (MEProxy); Sun, 23 May 2021 21:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=YA/ctH+jMJDmMHEMBQiOZMgm5Fc6I35 F8DlEFQkP8lE=; b=pOui9hnw/uvNpoUrL9LkxcqyYlMc+lEu1NLg17hmy755bVJ ZxkvAO9jJGu/jn07xwdeh0n+rwbm7QYTxcYVPPQe7C+kwrbkBJwFyPqYVIR0NlqO iXRGlFwQzAG7ps9aSAeg4QEX9JYYPD6LP3Oga+jlh0WTFlpSlQl8t9l596IZK7hW CpD4DzYUpoOra1VubUEO0SIP6fy7D63XrpWNIctUtjLyEMuj9EFY46Vfma/lXOXl ObRhKENPDYoXJ565SojJCiwg2clSxwuzVbLFR5ofYoSOKzxBNo4WZ3JPyUUPeHRD CehmXzkhl3KMYJAQkG3Vp5Z1CGpY0v2bVUdC8yA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YA/ctH +jMJDmMHEMBQiOZMgm5Fc6I35F8DlEFQkP8lE=; b=F3OyuRxYoEvh+APa16iOwd lBZy54uQeua10vAqaXFT7bRHTBq559fVTYCOTxUwxmGS4UKHhjccsaaP6azV8buv Yj5yC0gAXlV9r5uinRETYsS2Tv7x/IbnmSvCrm4/AnYQBl/hO7vSMEOcbUVqVdMs 0Usq+WIaYcJbEAKju+Di9sE7fxao/iAMA9u7E8Nw203LMvw2H2A4u+97fxh3QE1L gNSLz1mzGkEd5PkoND+0uyKZJAK8yyJg0hYhQ6mj9GeXodNrIlV2Iid6kgrcB62P 2CkHqVwOc7COWdAsuTd+merZcJRvww0jbGa/WqOVTjCgfftCxyN6bzDghOSGjaDw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejkedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdfurghm uhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehfrghsthhmrghilhdrtghomheqnecugg ftrfgrthhtvghrnhepvddufeeghfeuieeitdffhffghefhgfelleffhfdtffeutdffteei vedtvdejieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 13F734E0091; Sun, 23 May 2021 21:09:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: <1fcf67f5-fbe1-4047-8db2-053e91367b57@www.fastmail.com> In-Reply-To: <3319247.1621787613@apollo2.minshall.org> References: <3319247.1621787613@apollo2.minshall.org> Date: Mon, 24 May 2021 01:09:02 +0000 From: "Samuel Banya" To: "Greg Minshall" Subject: Re: Question Regarding Yasnippet With Org Mode (Emacs 27.2) Content-Type: multipart/alternative; boundary=12b018078a2643cfba982cca062fde23 Received-SPF: pass client-ip=66.111.4.26; envelope-from=sbanya@fastmail.com; helo=out2-smtp.messagingengine.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: emacs-orgmode@gnu.org 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=1621818623; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YA/ctH+jMJDmMHEMBQiOZMgm5Fc6I35F8DlEFQkP8lE=; b=ea/96TLqECrw+IlwhjwHhVR/wLmrUOapex8n46jcjpVx5lxIksKUEQOBB8VVKJVzpGQm67 o7HtfffJhY+ka4IU1WqRDsvSuQUBChrkfXumsozxXfZyF9gRCkTqczWfgNKIiKdwMbgYuN VZFp96VUndzX3lk5zUlylWy5nG61PJCRuNZyVMEPSSAuGhy16fUT4vekAM2gDlIaNw2g/v +LdRUN2pWxWYjMzMoToSPFPQS+2ymi/krV6YAABQdvEQLV1Ki7dufMGa/cu2VlR+XYt4Ux 9yHJsxQRzgkT0fySUeOWoDolHJiB/wLPofrx4optntU/aIeH3uzC2UdKhV3Nww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621818623; a=rsa-sha256; cv=none; b=ZfdZB0FezaU5AjAZnBl9/AtFli9WljtaxJjkTtsersapTr5SgMb+/cmtmg2VyxDSvclHEe 0pV8wLBtQK1q5a4P7h8UzmsjtLj5GPqQdAo5rgDEpfMLwP2r1sZceBR5/ZEDSCykYPm/lf sKPq8SpQjl/0q7U/wMRaqA/Fvzi3sfROidRAB39BJN7PyRcnG/Qvrq5cU5EXeK/ykB7Xyh MQvqerMzjeBSvPc4OyBRszFqdCP3F+BJn4iyQUrDEhPU1zvCSOgxaB0TDMSO3jDmbblwzz ZCn7bzkIEOTKl4FoOGtwfUsoQD9MOdeZpTwJvG5wVmYv4UMAxMGHEcjVZ+iCOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=pOui9hnw; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=F3OyuRxY; dmarc=pass (policy=none) header.from=fastmail.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: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=pOui9hnw; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=F3OyuRxY; dmarc=pass (policy=none) header.from=fastmail.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: 7A22213CB8 X-Spam-Score: -2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: bz30LcoxRjUS --12b018078a2643cfba982cca062fde23 Content-Type: text/plain Hey there Greg, Gotcha. Just to confirm, you're saying I should add a "(require 'org-tempo)" in my Emacs config in that case? Or are you saying that I should disable "org-modules" setting value by setting it to nil or '0' (zero)? If that is the case, what would be the syntax to do this change? Just wanted to ask since I'd be happy to make the changes my config to see if that would help, but needed to know what you meant for me to try out to fix the issue. Thanks, Sam On Sun, May 23, 2021, at 4:33 PM, Greg Minshall wrote: > Samuel, > > i think that by default, Org no longer listens to, e.g., = but, if you load =org-tempo=, it still does. i wonder if you might see > if you are loading =org-tempo= (maybe [C-h v org-modules]), disable > that, and see if that clears away some of the underbrush. > > (you can get something like the old behavior with =C-c C-,=.) > > i use yasnippet to expand = ---- > # key: # name: latex equation environment > # -- > \begin{equation} > $0 > \end{equation} > ---- > and, that works for me. > > if i re-format your snippet (maybe this was the original formatting?) > ---- > # name: src > # key: # -- > #+BEGIN_SRC $1 > $0 > #+END_SRC > ---- > > and open an org file, = name and then =[TAB]= to commit. if i commit with =[RET]= instead, it > still *seems* to work (in terms of the buffer contents), but i get this > message > ---- > [yas] Committing snippets. Action would destroy a protection overlay. > ---- > > i didn't run into any lisp errors. > > in case any of that helps. > > cheers, Greg > --12b018078a2643cfba982cca062fde23 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hey there Greg,=

Gotcha.

Just = to confirm, you're saying I should add a "(require 'org-tempo)" in my Em= acs config in that case?

Or are you saying = that I should disable "org-modules" setting value by setting it to nil o= r '0' (zero)?

If that is the case, what wou= ld be the syntax to do this change?

Just wa= nted to ask since I'd be happy to make the changes my config to see if t= hat would help, but needed to know what you meant for me to try out to f= ix the issue.

Thanks,

Sam

On Sun, May 23, 2021, at 4:33 P= M, Greg Minshall wrote:
Samuel,

i think that by defaul= t, Org no longer listens to, e.g., =3D<s[TAB]=3D.
but, = if you load =3Dorg-tempo=3D, it still does.  i wonder if you might = see
if you are loading =3Dorg-tempo=3D (maybe [C-h v org-m= odules]), disable
that, and see if that clears away some o= f the underbrush.

(you can get something li= ke the old behavior with =3DC-c C-,=3D.)

i = use yasnippet to expand =3D<le[TAB]=3D.
----
<= div># key: <le
# name: latex equation environment
# --
\begin{equation}
  &= nbsp; $0
\end{equation}
----
a= nd, that works for me.

if i re-format your = snippet (maybe this was the original formatting?)
----
=
# name: src
# key: <s
# --
=
#+BEGIN_SRC $1
$0
#+END_SRC
----

and open an org file, =3D<= s[TAB]=3D, it seems to work if i enter a language
name and= then =3D[TAB]=3D to commit.  if i commit with =3D[RET]=3D instead,= it
still *seems* to work (in terms of the buffer contents= ), but i get this
message
----
[yas] Committing snippets. Action would destroy a protection overlay.
----

i didn't run into any lis= p errors.

in case any of that helps.

cheers, Greg


--12b018078a2643cfba982cca062fde23--