From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qFSOAU90qmBzswAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 17:27:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uGD+OE50qmBtJAAAbx9fmQ (envelope-from ) for ; Sun, 23 May 2021 15:27:10 +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 18001F4ED for ; Sun, 23 May 2021 17:27:09 +0200 (CEST) Received: from localhost ([::1]:54494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkq0R-00051H-1g for larch@yhetil.org; Sun, 23 May 2021 11:27:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkg5T-0005hI-Uz for emacs-orgmode@gnu.org; Sun, 23 May 2021 00:51:40 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkg5P-0001a2-4d for emacs-orgmode@gnu.org; Sun, 23 May 2021 00:51:39 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7C11E5C013F for ; Sun, 23 May 2021 00:51:32 -0400 (EDT) Received: from imap10 ([10.202.2.60]) by compute4.internal (MEProxy); Sun, 23 May 2021 00:51:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm3; bh=CfK2/EG99xV4vY7QOkMJiDQZTqU862aJS0OuWPqjURs=; b=LdegX8T7 MQwVxhCU/dAQCl4oCzGnELjp/kmfc6TIi+ldDmRhxUXU+u5S4GspQIQRkIECyj95 F57a0XZLvmsJ1cXSDm6RUe/GYWXEytg6sPHd4sH4zAJ8mYb7i0mSpYKO0aEsA+N2 23/FLvw52Rd+pzxUGNCtwwEWgug5NMdx/eBBTGwRVuktiHBhtSHWry2EvxCPUFTS HJJ+U/arpamuEreFlURcQpK6bOXgMPCRcvTDQVylhG0m5Vb3RdJjUIKRXOkuZtNJ 7nnM+1bsmmwiqaG6nFKtOvGTnkABeAQEHmy33IuY8SNndEQ6Fo3Q7sLUWkjbHYwT vt8V9A4nTEQljQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=CfK2/EG99xV4vY7QOkMJiDQZTqU86 2aJS0OuWPqjURs=; b=lhM6MHGXUXEtv973uOJvJmVD0egJmCOyXTo2gKFCRLq+z +EXChEFTC2LW6NWxfPbfpXzRcRGcH0IPuwDJPXHTm3yQoxUcWKe6LsDihB9ChTrg nseRkFTAWyAVBG/dpuQmh7FVSL9wvO+WbbvtEa8qxaoYqfkkIQZlMjwWpO1dKAyh 2mjdSi2oVW3qLAuPTMG54TPC9/gBx8vjaqbJ3uuj0Lmv305p+eMEiPWI3tLoaNen ZTepey0/6yp96RTorRQSvC1Tmbjstz3ge3b48RKyg1Lfu6w6B0WBv3J+cOQXEyuQ iV623vjzWzIx6FeGRSTw49jzLns0uvD+ACRSlS24A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejiedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrgesfhgr shhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeetvefggfegkeetheeukeehue eufeehfeekgefgleeftefgieegkeeiudeiffefjeenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehssggrnhihrgesfhgrshhtmhgrihhlrdgtoh hm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 472004E0091; Sun, 23 May 2021 00:51:32 -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: <8fbaaf62-b827-4a88-bf7a-23aa1596e469@www.fastmail.com> Date: Sun, 23 May 2021 04:51:05 +0000 From: "Samuel Banya" To: emacs-orgmode@gnu.org Subject: Question Regarding Yasnippet With Org Mode (Emacs 27.2) Content-Type: multipart/alternative; boundary=e2f71488aef847c98fdaf6c783c2dc28 Received-SPF: pass client-ip=66.111.4.28; envelope-from=sbanya@fastmail.com; helo=out4-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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 23 May 2021 11:26:43 -0400 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: , 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=1621783630; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CfK2/EG99xV4vY7QOkMJiDQZTqU862aJS0OuWPqjURs=; b=vBLKn8t6nzt5PQNYdM1hSwqyPpbQPI/lTMfLHG3KaHoTbDPnsosUt+aWG9zPnq/ZbQexd3 pZ6Pr5wHdAul8t2IgHrspnfUNRAlGAqTfJ0jLtD5FWrAGefYG/GBMnqJbcdXljUNcar9Yx 0hlRomsBqFzThsEGChpDTIE0L3wHRqo6a5lZvrJ2XZauqq/NIzB0VRlugVEQxElGzlTWLQ zQM0cPxmRfXI7FPE2MXyVa+MSH00pyecE/Vv9nTyqVh4541V6zgzZER6i5caZAksByJL4I jsNLrtTX7Gsa2J0nlKitWPuBHSGW27UKKAa+zy7pxx2z1WtaQzfZBoQ+xMbL6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621783630; a=rsa-sha256; cv=none; b=FSRa0ixtvdD7UGG+HCTPoRJribeSwSwxqJlkZJbceq9Bx39gx+MmXeICxjOyKlcR9NSVA/ 9MohK3tqkaTWVl7R/cCasBCFW1e8BGIEuBVXgGaSXFN2QQOaIyupifSniuxorgt7IUur1y VPDG7SiKUWg20/rj4ytBJCGepAL3uAFgw5XtIs4c4ZRbFIuycQnmnGXPUgNIZVWHrbXYYD AphfVOz2wp1QYMHzGUBvfA76UY66HkdbdJjsKpp9k4CDZYUAfRuboIRsYHLHCV1u83l43a 3TgqLpeGdSnyJ/b7LeARcjg7EiNUVkd920WOxA3q6GySDRjIoH2ibfxQQrm80g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=LdegX8T7; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=lhM6MHGX; 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=LdegX8T7; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=lhM6MHGX; 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: 18001F4ED X-Spam-Score: -2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: dho7FaUl0CQ4 --e2f71488aef847c98fdaf6c783c2dc28 Content-Type: text/plain I haven't been able to utilize the Yasnippet I've been using to override the newer one that Org-Mode created aka ' :end # :parent-field nil :mirrors nil :transform nil :modified-p nil :next #s(yas--exit :marker # :next nil))) :exit #s(yas--exit :marker # :next nil) :id 3 :control-overlay nil :active-field nil :previous-active-field nil :force-exit nil)) yas--indent(#s(yas--snippet :expand-env nil :fields (#s(yas--field :number 1 :start # :end # :parent-field nil :mirrors nil :transform nil :modified-p nil :next #s(yas--exit :marker # :next nil))) :exit #s(yas--exit :marker # :next nil) :id 3 :control-overlay nil :active-field nil :previous-active-field nil :force-exit nil)) #f(compiled-function () #)() funcall(#f(compiled-function () #)) (let nil (funcall '#f(compiled-function () #))) eval((let nil (funcall '#f(compiled-function () #)))) yas--snippet-create("#+BEGIN_SRC $1\n $0\n#+END_SRC" nil 115534 115534) yas-expand-snippet(#s(yas--template :key "")) :group nil :perm-group nil :table #s(yas--table :name "org-mode" :hash # :uuidhash # :parents nil :direct-keymap (keymap))) 115534 115536) yas--expand-or-prompt-for-template((("src" . #s(yas--template :key "")) :group nil :perm-group nil :table #s(yas--table :name "org-mode" :hash # :uuidhash # :parents nil :direct-keymap (keymap))))) 115534 115536) yas-expand() funcall-interactively(yas-expand) call-interactively(yas-expand nil nil) command-execute(yas-expand) Thanks. --e2f71488aef847c98fdaf6c783c2dc28 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I haven't been = able to utilize the Yasnippet I've been using to override the newer one = that Org-Mode created aka '<s' + TAB expansion, which does source blo= cks in lowercase, which I despise.

I placed= my override Yasnippet template in '~/.emacs.d/snippets/org-mode/src'

Mine used to be just fine until I upgraded to= Emacs 27.2.

Here is the affected= Yasnippet that I have placed in '~/.emacs.d/snippets/org-mode/src' whos= e aim is to just override the default non-Caps version of the same idea:=

# -*- mode: snippet -*- # name: src # = key: <s # -- #+BEGIN_SRC $1   $0 #+END_SRC
Here is what I get when I attempt to do "<s TAB" in an O= rg Mode doc buffer within the modeline:
No such language m= ode: nil-mode

What's weird about this is= that another similar snippet I did for bash works just fine in comparis= on, though obviously the user doesn't have to specify the language being= used so maybe that's why, this is present in '~/.emacs.d/snippets/org-m= ode/bashsrc':

# -*- mode: snippet -*- #= name: bashsrc # key: <b # -- #+BEGIN_SRC bash   $0 #+END_S= RC

Has anyone else ran into this issue?
=

I'm guessing its some kind of Org Mode vs Yasn= ippet issue where Org-mode is expanding it too fast, when it should wait= for user input hence the "$1" section.

=
Here's the traceback:

=
Debugger entered--Lisp error: (error "No such language mode: nil-mo= de")

signal(error ("No such language mode: = nil-mode"))

error("No such language mode: %= s" nil-mode)

org-edit-src-code()
<= div>
org-babel-do-key-sequence-in-edit-buffer("\11")

org-indent-line()

i= ndent-according-to-mode()

yas--indent-regio= n(115547 115559 #s(yas--snippet :expand-env nil :fields (#s(yas--field := number 1 :start #<marker at 115546 in life.org> :end #<marker a= t 115546 in life.org> :parent-field nil :mirrors nil :transform nil := modified-p nil :next #s(yas--exit :marker #<marker at 115549 in life.= org> :next nil))) :exit #s(yas--exit :marker #<marker at 115549 in= life.org> :next nil) :id 3 :control-overlay nil :active-field nil :p= revious-active-field nil :force-exit nil))

= yas--indent(#s(yas--snippet :expand-env nil :fields (#s(yas--field :numb= er 1 :start #<marker at 115546 in life.org> :end #<marker at 11= 5546 in life.org> :parent-field nil :mirrors nil :transform nil :modi= fied-p nil :next #s(yas--exit :marker #<marker at 115549 in life.org&= gt; :next nil))) :exit #s(yas--exit :marker #<marker at 115549 in lif= e.org> :next nil) :id 3 :control-overlay nil :active-field nil :previ= ous-active-field nil :force-exit nil))

#f(c= ompiled-function () #<bytecode 0xf63605>)()

funcall(#f(compiled-function () #<bytecode 0xf63605>))
<= /div>

(let nil (funcall '#f(compiled-function () #<= ;bytecode 0xf63605>)))

eval((let nil (fu= ncall '#f(compiled-function () #<bytecode 0xf63605>))))
<= div>
yas--snippet-create("#+BEGIN_SRC $1\n $0\n#+END_SRC" = nil 115534 115534)

yas-expand-snippet(#s(ya= s--template :key "<s" :content "#+BEGIN_SRC $1\n $0\n#+END_SRC" :name= "src" :condition nil :expand-env nil :load-file "/home/sam/.emacs.d/sni= ppets/org-mode/src" :save-file nil :keybinding nil :uuid "src" :menu-bin= ding-pair ((menu-item "src" (lambda nil (interactive) (yas--expand-or-vi= sit-from-menu 'org-mode "src")) :keys "<s =3D>")) :group nil :perm= -group nil :table #s(yas--table :name "org-mode" :hash #<hash-table e= qual 2/65 0x17ba06d> :uuidhash #<hash-table equal 2/65 0x138c6e1&g= t; :parents nil :direct-keymap (keymap))) 115534 115536)
<= br>
yas--expand-or-prompt-for-template((("src" . #s(yas--templ= ate :key "<s" :content "#+BEGIN_SRC $1\n $0\n#+END_SRC" :name "src" := condition nil :expand-env nil :load-file "/home/sam/.emacs.d/snippets/or= g-mode/src" :save-file nil :keybinding nil :uuid "src" :menu-binding-pai= r ((menu-item "src" (lambda nil (interactive) (yas--expand-or-visit-from= -menu ... "src")) :keys "<s =3D>")) :group nil :perm-group nil :ta= ble #s(yas--table :name "org-mode" :hash #<hash-table equal 2/65 0x17= ba06d> :uuidhash #<hash-table equal 2/65 0x138c6e1> :parents ni= l :direct-keymap (keymap))))) 115534 115536)

yas-expand()

funcall-interactively(yas-ex= pand)

call-interactively(yas-expand nil nil= )

command-execute(yas-expand)

Thanks.
--e2f71488aef847c98fdaf6c783c2dc28--