From unknown Sun Jun 22 04:33:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70387: 30.0.50; 'Warning Couldn't find space' when expanding Yasnippet snippet within an org-mode source block. Resent-From: Deric Bytes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 19:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 70387@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17131240619975 (code B ref -1); Sun, 14 Apr 2024 19:48:03 +0000 Received: (at submit) by debbugs.gnu.org; 14 Apr 2024 19:47:41 +0000 Received: from localhost ([127.0.0.1]:36209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw5pE-0002ao-Ot for submit@debbugs.gnu.org; Sun, 14 Apr 2024 15:47:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw5p5-0002V0-IW for submit@debbugs.gnu.org; Sun, 14 Apr 2024 15:47:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw5oj-0003in-GA for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 15:47:09 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw5og-00031m-Gd for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 15:47:09 -0400 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d9fe2b37acso31089491fa.2 for ; Sun, 14 Apr 2024 12:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713124024; x=1713728824; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=sHpAoBAUebJQQ7H2XuCbHinIfAPkfjQS6BXM0J1hNE0=; b=Q3MBl9eb4RdIb8aKf0nUPte3y1vXm8s3uVMIHK+32Qn6VWPRkjx4BXon7c5L2v1ISQ xDgWnNrGwiJl/tIhNY4MoEbvl5RTIbaUbAQvwe11F4G7b9m9eivQogti7vyWEPHxjCFI fL89lUqWaFUXPqzhy4iaRJKAvC1uOPkmZ4ZTfSvhuW7wWQNJtUf4R1mvsBSv4x9k5gJB N0MnUJLqzf3g0XcbRWK8cGRhk0Op39TosW0KH/P1Ex2as1PIAcXwgWxxaBdILfcAv+I+ t1EvGk6MLR4l7GbJvBuNl9AoSbfXu9Vgq+du+fAm0sJN9E7C4Dibz4YI1VSVmDhgKgS1 Nmmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713124024; x=1713728824; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sHpAoBAUebJQQ7H2XuCbHinIfAPkfjQS6BXM0J1hNE0=; b=oY3px0MGf/XSlX0MC3h32VwHQuvzm4ZAqtpx/Op9y0L7S78HtmPLkK3ezOPj/VzWd1 CZpkXUS76pKDzTeVqWiZsC4Un2dLXAF6/5uZY4hgLQO0wEpajJPEPnteSCeDSC/TKNUF HFKI1I4W9FSeRNoSmpZe9siZx8PPK+Ki/NhHk5RvWpvYXej5POoieiMv2oonqubsEQ90 U7vhrfa91nLosmK9vsZCt9x4VmPHWA+zaTs3z+muTTBAjFHYCn/h30lE/hT34SxJCzAr rzise5suJRuco67lRz+8R5DAfPu6sFEK8vDzl4oUezviHX+ORCkvRFsn8qxb8oyzwVbQ lcNQ== X-Gm-Message-State: AOJu0YwAgkolhUU0DGO+JwCyJUYj6/mUh+0FUFi3r2jFZ0bwEj/3xtjp YPx4tlCwNpT50GC1ujU8gZNJ7UGD4Xx+9/WxMKYwji03I1tB4tYKFDfVvTKdi1+5scdEhB0YFyY Nx/N6xKkljbbRHNlXawqg10KLxGmyXqRW X-Google-Smtp-Source: AGHT+IGg9SgSDJOgQqGApYFeeMBcs131n0rPrHcXKnj/QNft3i4lAMEOT3er8jREfBKETOK68a9afDUiyV/BkhK8jR0= X-Received: by 2002:a2e:9dd8:0:b0:2d8:a98d:18e with SMTP id x24-20020a2e9dd8000000b002d8a98d018emr4525662ljj.8.1713124024358; Sun, 14 Apr 2024 12:47:04 -0700 (PDT) MIME-Version: 1.0 From: Deric Bytes Date: Sun, 14 Apr 2024 20:46:53 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ed9f5f061613c462" Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=dericbytes@gmail.com; helo=mail-lj1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000ed9f5f061613c462 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Start with a clean Emacs. #+begin_src shell :results silent rm -rf ~/tmp/yas-test mkdir !$ emacs --quick --init-directory=3D!$ !$/test.org #+end_src Add Yasnippet. #+begin_src emacs-lisp :results silent (use-package yasnippet :ensure t) #+end_src Use this yasnippet snippet. #+name: snippet1 #+begin_example quote # key: di # name: di # -- ($1) "$0" #+end_example Save snippet in an emacs-lisp-mode group #+begin_src emacs-lisp :var snippet=3Dsnippet1 :results silent (make-directory "~/tmp/yas-test/snippets/emacs-lisp-mode" t) (find-file "~/tmp/yas-test/snippets/emacs-lisp-mode/di") (insert snippet) (save-buffer) (kill-buffer) #+end_src Get emacs-lisp snippets to work in org-mode by adding .yas-parents #+begin_src emacs-lisp :results silent (let ((dir "~/tmp/yas-test/snippets/org-mode") (file ".yas-parents")) (make-directory dir) (find-file (expand-file-name file dir)) (insert "emacs-lisp-mode") (save-buffer) (kill-buffer (current-buffer))) #+end_src In a file with `org-mode' active. add the following source block note there is an indent of a space before the #'s #+name: test #+begin_src emacs-lisp 2 di #+end_src GOTCHA: I used this file to run the tests I did an indent-buffer and lost the extra space before the test source block. The expansion works when no indent. Activate Yasnippet in the test org buffer. #+begin_src emacs-lisp :results silent (yas-minor-mode 1) #+end_src Tell yasnippet about the new emacs-lisp-mode snippet and org-mode .yas-parents. #+begin_src emacs-lisp :results silent (yas-reload-all) #+end_src place cursor after *di* in source block above and press TAB #+begin_src text :results code =E2=9B=94 Warning (yasnippet): Couldn=E2=80=99t find: "[[:space:] ]*\"[[:space:] ]*\\(\\)[[:space:] ]*\"" #+end_src NOTE: A collection of things had to be in place to generate this. Works when: org source block has no indent i.e. remove space before ' #+' the source block has no property i.e #+name the expansion trigger is the only thing in the source block the expansion trigger is after contents but still on the first line there is only one snippet variable all the snippet variables are on same line the quotes around $0 are removed the parenthesis around $1 are removed It does not work when content is above the yas trigger. i.e. 2 is above the 'di' yas trigger key In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-04-14 built on no-control-x1c Repository revision: 3d3602055264ca3095b7f28ca7e27a6f2782649a Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Ubuntu 23.10 Configured using: 'configure --with-mailutils --with-modules --with-imagemagick --prefix /home/no-control/installs --bindir=3D/home/no-control/bin --with-native-compilation --with-tree-sitter --with-x-toolkit=3Dlucid' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug two-column kmacro help-fns ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox ert-x ert ewoc warnings edebug debug backtrace color yasnippet pcase yasnippet-autoloads easy-mmode loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load mm-archive network-stream url-cache url-http url-auth url-gw nsm finder-inf package url-handlers use-package-ensure use-package-core sh-script smie treesit executable org-element org-persist org-id org-refile avl-tree generator oc-basic cl-extra help-mode ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus compile comp-run comp-common xml gnus-cloud nnimap nnmail browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map byte-opt gv bytecomp byte-compile url-vars mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search mail-utils range mm-util mail-prsvr wid-edit ol-docview doc-view filenotify jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color ring org-list org-footnote org-faces org-entities time-date subr-x noutline outline icons org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat org-macs format-spec cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 591095 113255) (symbols 48 30094 4) (strings 32 173018 6038) (string-bytes 1 5053704) (vectors 16 91376) (vector-slots 8 1601641 57977) (floats 8 878 363) (intervals 56 3503 146) (buffers 992 21)) --000000000000ed9f5f061613c462 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Start with a clean Emacs.

#+begin_src shell :result= s silent
=C2=A0 rm -rf ~/tmp/yas-test
=C2=A0 mkdir !$
=C2=A0 emacs= --quick --init-directory=3D!$ !$/test.org<= br>#+end_src

Add Yasnippet.

#+begin_src emacs-lisp :results s= ilent
=C2=A0 (use-package yasnippet=C2=A0
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :ensure t)
#+end_src
=
Use this yasnippet snippet.

#+name: snippet1
#+begin_example = quote
# key: di
# name: di
# --
($1)
"$0"
#+end= _example

Save snippet in an emacs-lisp-mode group

#+begin_src= emacs-lisp :var snippet=3Dsnippet1 :results silent
=C2=A0 (make-directo= ry "~/tmp/yas-test/snippets/emacs-lisp-mode" t)
=C2=A0 (find-f= ile "~/tmp/yas-test/snippets/emacs-lisp-mode/di")
=C2=A0 (inse= rt snippet)
=C2=A0 (save-buffer)
=C2=A0 (kill-buffer)
#+end_src
Get emacs-lisp snippets to work in org-mode by adding .yas-parents
=
#+begin_src emacs-lisp :results silent
(let ((dir "~/tmp/yas-te= st/snippets/org-mode")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (file &= quot;.yas-parents"))
=C2=A0 =C2=A0 (make-directory dir)
=C2=A0 = =C2=A0 (find-file (expand-file-name file dir))
=C2=A0 =C2=A0 (insert &qu= ot;emacs-lisp-mode")
=C2=A0 =C2=A0 (save-buffer)
=C2=A0 =C2=A0 (= kill-buffer (current-buffer)))
#+end_src

In a file with `org-mode= ' active.
add the following source block
note there is an indent = of a space before the #'s

=C2=A0#+name: test
=C2=A0#+begin_sr= c emacs-lisp
=C2=A02
=C2=A0di
=C2=A0#+end_src

GOTCHA:
I = used this file to run the tests
I did an indent-buffer and lost the extr= a
space before the test source block.
The expansion works= when no indent.

Activate Yasnippet in the test org buffer.
#+begin_src emacs-lisp :results silent
=C2=A0 (yas-minor-mode 1)#+end_src

=C2=A0Tell yasnippet about the new emacs-lisp-mode snipp= et and
=C2=A0org-mode .yas-parents.

#+begin_src emacs-lisp :resu= lts silent
=C2=A0 =C2=A0(yas-reload-all)
#+end_src

place curs= or after *di* in source block above and press TAB

#+begin_src text := results code
=C2=A0 =E2=9B=94 Warning (yasnippet): Couldn=E2=80=99t find= : "[[:space:]
=C2=A0 ]*\"[[:space:]
=C2=A0 ]*\\(\\)[[:space= :]
=C2=A0 ]*\""
#+end_src


NOTE:

A collect= ion of things had to be in place to generate this.

Works when:
org source block has no indent i.e. remove space before ' #+'
= the source block has no property i.e #+name
the expansion trigger is the= only thing in the source block
the expansion trigger is after contents = but still on the first line
there is only one snippet variable
all th= e snippet variables are on same line
the quotes around $0 are removedthe parenthesis around $1 are removed

It does not work when content= is above the yas trigger.
i.e. 2 is above the 'di' yas trigger = key








In GNU Emacs 30.0.50 (build 1, x86_6= 4-pc-linux-gnu, X toolkit, cairo
=C2=A0version 1.18.0, Xaw3d scroll bars= ) of 2024-04-14 built on
=C2=A0no-control-x1c
Repository revision: 3d= 3602055264ca3095b7f28ca7e27a6f2782649a
Repository branch: master
Wind= owing system distributor 'The X.Org Foundation', version 11.0.12101= 007
System Description: Ubuntu 23.10

Configured using:
=C2=A0&= #39;configure --with-mailutils --with-modules --with-imagemagick --prefix=C2=A0/home/no-control/installs --bindir=3D/home/no-control/bin
=C2=A0= --with-native-compilation --with-tree-sitter --with-x-toolkit=3Dlucid'<= br>
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSET= TINGS HARFBUZZ IMAGEMAGICK
JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXM= L2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP = SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3= D XDBE XIM
XINPUT2 XPM LUCID ZLIB

Important settings:
=C2=A0 v= alue of $LANG: en_GB.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
= =C2=A0 locale-coding-system: utf-8-unix

Major mode: Org

Minor= modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t<= br>=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mo= use-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
= =C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 minibuffer-r= egexp-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Load-= path shadows:
None found.

Features:
(shadow sort mail-extr ema= csbug two-column kmacro help-fns ox-odt
rng-loc rng-uri rng-parse rng-ma= tch rng-dt rng-util rng-pttrn nxml-parse
nxml-ns nxml-enc xmltok nxml-ut= il ox-latex ox-icalendar org-agenda
ox-html table ox-ascii ox-publish ox= ert-x ert ewoc warnings edebug
debug backtrace color yasnippet pcase ya= snippet-autoloads easy-mmode
loaddefs-gen lisp-mnt radix-tree tar-mode a= rc-mode archive-mode cus-edit
pp cus-start cus-load mm-archive network-s= tream url-cache url-http
url-auth url-gw nsm finder-inf package url-hand= lers use-package-ensure
use-package-core sh-script smie treesit executab= le org-element
org-persist org-id org-refile avl-tree generator oc-basic= cl-extra
help-mode ol-eww eww xdg url-queue thingatpt mm-url ol-rmail o= l-mhe
ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml= -smime
smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom=
gnus-group gnus-undo gnus-start gnus-dbus dbus compile comp-run
comp= -common xml gnus-cloud nnimap nnmail browse-url url url-proxy
url-privac= y url-expand url-methods url-history url-cookie
generate-lisp-file url-d= omsuf url-util url-parse auth-source cl-seq
eieio eieio-core cl-macs jso= n map byte-opt gv bytecomp byte-compile
url-vars mail-source utf7 nnoo p= arse-time gnus-spec gnus-int gnus-range
message sendmail mailcap yank-me= dia puny rfc822 mml mml-sec
password-cache epa derived epg rfc6068 epg-c= onfig mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 i= etf-drums mailabbrev
gmm-utils mailheader gnus-win gnus nnheader gnus-ut= il
text-property-search mail-utils range mm-util mail-prsvr wid-edit
= ol-docview doc-view filenotify jka-compr image-mode exif dired
dired-loa= ddefs ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi
org-link-doi org ob= ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org= -pcomplete pcomplete comint ansi-osc ansi-color
ring org-list org-footno= te org-faces org-entities time-date subr-x
noutline outline icons org-ve= rsion ob-emacs-lisp ob-core ob-eval
org-cycle org-table ol rx org-fold o= rg-fold-core org-keys oc
org-loaddefs find-func cal-menu calendar cal-lo= addefs org-compat
org-macs format-spec cl-loaddefs cl-lib rmc iso-transl= tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-fl= oat-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-= screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list repla= ce
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-b= ar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lockfont-lock syntax font-core term/tty-colors frame minibuffer nadvice seqsimple cl-generic indonesian philippine cham georgian utf-8-lang
misc-= lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp519= 32 hebrew greek romanian slovak czech european ethiopic indian
cyrillic = chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-= cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs them= e-loaddefs faces cus-face macroexp files window
text-properties overlay = sha1 md5 base64 format env code-pages mule
custom widget keymap hashtabl= e-print-readable backquote threads dbusbind
inotify lcms2 dynamic-settin= g system-font-setting font-render-setting
cairo x-toolkit xinput2 x mult= i-tty move-toolbar make-network-process
native-compile emacs)

Mem= ory information:
((conses 16 591095 113255) (symbols 48 30094 4)
=C2= =A0(strings 32 173018 6038) (string-bytes 1 5053704) (vectors 16 91376)
= =C2=A0(vector-slots 8 1601641 57977) (floats 8 878 363)
=C2=A0(intervals= 56 3503 146) (buffers 992 21))
--000000000000ed9f5f061613c462-- From unknown Sun Jun 22 04:33:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70387: - 31.0.50; Warning (yasnippet): Couldn't find [[:space:]] References: In-Reply-To: Resent-From: no-control to-edit Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2025 04:48:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 70387@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17401132676714 (code B ref -1); Fri, 21 Feb 2025 04:48:16 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2025 04:47:47 +0000 Received: from localhost ([127.0.0.1]:49197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlKwx-0001jk-RV for submit@debbugs.gnu.org; Thu, 20 Feb 2025 23:47:47 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35616) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlKGM-0003Xe-BC for submit@debbugs.gnu.org; Thu, 20 Feb 2025 23:03:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlKGG-0007OK-5q for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2025 23:03:36 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tlKGC-00038n-OB for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2025 23:03:35 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5e04861e7a6so3117757a12.1 for ; Thu, 20 Feb 2025 20:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740110609; x=1740715409; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=18MstbEWHGTLeKPKIXDQ0tr4bEn3+20xWNaZC6eOxQQ=; b=b0IsCjFPTvhzdR6LxPoaGuoCiuQ3hwRYZlcqtpqGmRAbETGVnTfF6gFcMYPHdzzu/M y+Pb9/1CrN2OLB1WG889CAz5HABEe6VFeO//tgSqYrwEJz8zEofJxAosuiCJnyDdipT+ gmLjdEkj+NxHuJ791XRlmausQDKQPEopGxpR8byyrGBpYC5rnDqwgk36E0zcjGjbDOV+ v5lRXDe35FUjMxGxjhSSsC3w6O1yiwbwkUh9u2sfGq8qhPnEzfepGHGmfDdxg0cmXsM4 0aNGbamZkynIHYzF8PIhsfo3Ol5ipF5CuOLLQBoC+qOUNXkkCs2sWaJlc/7rxP5MfC9F OlIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740110609; x=1740715409; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=18MstbEWHGTLeKPKIXDQ0tr4bEn3+20xWNaZC6eOxQQ=; b=gPVByoxBmvmur38z8EdzpnVX5tk6exK6rqUKD5A8hhrz9EunSqkVyMBYbgC/20TIdl SFe6u2jlSQsluu0HYpEpo1rIX2iup0v6JjcYdg4NjqNrT24Nl+CtvpC7HGsyJgDOOyJx V9MVOssIb8SeggkBQS4fqg08r/YPJsMqZlzfPC05cnn4HfJwFzHGRx36vIyl1tx6gASq OcoAoXQmOHVdhBWEULKBIs2NkZpJPN4yvcaperWDAaATZ42oHxU5UkvBq6MzgjAC8Jlk FHrex6aUqrZ04KL/RgFHLjtsZg/O9Pi2mPX7WKP1mfGH4v1NS4guRCK5vaB4qY5JssKO OiJQ== X-Gm-Message-State: AOJu0YyISoORKgLoaDuYd2X2HF3S156A6boYL/MlWYklmYgKmbhpfmrM jBOoPoEzYPODYenz/Phz4HgFh4NVRveLBXmFPUWYf7Nlmw4F5imW0Wu3xc32gTeURQiKY4a6/fJ k41jPawNUSM35cMDISNS+suxZeUarp+RQ X-Gm-Gg: ASbGncskY4A+E6gEpleGFI7tNcSoNBKREXH2Kh42rT4moxeXEbVEw7uEN12wJipNAdu DY0Va8iiv6BRawmttZG49mMKhU/ExK0PmpcaVNCQc399bV+TJaD8YxtzM5Q4LFpjDyqYSkkbyKd b46zpO X-Google-Smtp-Source: AGHT+IGNvXm1yY7SSwry6tU8m/5aO4N8r8H11hdS+rJ0ov67K+G0vR2HXnHKUc7lnk0RSHHbOtyHzCQPyLo7hSI0CVI= X-Received: by 2002:a17:906:3293:b0:aa6:7091:1e91 with SMTP id a640c23a62f3a-abc099c9caemr175001866b.11.1740110608687; Thu, 20 Feb 2025 20:03:28 -0800 (PST) MIME-Version: 1.0 From: no-control to-edit Date: Fri, 21 Feb 2025 04:03:16 +0000 X-Gm-Features: AWEUYZk2gJKoPorTiZCgXrI8UInGgUaAWRs5qRt8b1JwmIJVc3uLFo7sZgigHu4 Message-ID: Content-Type: multipart/alternative; boundary="000000000000b36c1f062e9f12bb" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=nocontroltoedit@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Thu, 20 Feb 2025 23:47:36 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000b36c1f062e9f12bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There has been no response to the bug bug#70387 or the issue reported on the yasnippet github page on April 12, 2024. I have created an Ert test for it. yas-expand in yasnippet-0.14.1.0.20250112.175154 throws warning p.s. is there a more idiomatic way of checking for warnings in Ert "=E2=9B=94 Warning (yasnippet): Couldn=E2=80=99t find: \"[[:space:]\n]*\\\"[[:space:]\n]*\\\\(\\\\)[[:space:]\n]*\\\"\"\n" ;; rm -rf ~/tmp/yas-test ;; mkdir !$ ;; emacs --quick --init-directory=3D!$ this-file (require 'package) (add-to-list 'package-archives '("gnu-devel" . "https://elpa.gnu.org/devel/= ") t) (package-initialize) (package-refresh-contents) (package-install 'yasnippet) (use-package yasnippet) (defun warning-buffer-contents-no-properties () "Return contents of *Warnings* buffer, without properties" (when-let* ((buf (get-buffer "*Warnings*"))) (with-current-buffer buf (buffer-substring-no-properties (point-min) (point-max))))) (defun my-create-yasnippet-snippets () "Create a snippet called `could-not-find-space'. Add it to the group `emacs-lisp-mode' Allow `org-mode' to inherit `emacs-lisp-mode' snippets" (let* ((snippet-key "could-not-find-space") (snippet-content (concat " ($1)\n" " \"$0\"")) (snippet-def (list snippet-key snippet-content nil nil nil nil nil)) (snippet-defs (list snippet-def)) (mode 'emacs-lisp-mode)) (yas-define-snippets mode snippet-defs) (yas--define-parents 'org-mode '(emacs-lisp-mode)))) (ert-deftest could-not-find-space () "yas-expand should not throw the warning - Couldn't find [[:space:]]" (my-create-yasnippet-snippets) (ignore-error (kill-buffer "*Warnings")) (let ((org-mode-buffer-contents (concat "#+name: test \n" "#+begin_src emacs-lisp\n" " 2\n" " could-not-find-space| \n" "#+end_src"))) (with-temp-buffer (org-mode) (setq org-edit-src-content-indentation 1) (yas-minor-mode 1) (insert org-mode-buffer-contents) (goto-char (point-min)) (search-forward "|") (delete-char -1) (call-interactively 'yas-expand) (buffer-substring-no-properties (point-min) (point-max)))) (should (equal (warning-buffer-contents-no-properties) nil))) (ert t) In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2025-02-21 built on slug Repository revision: 4411d0de1d5cbf308440982084ad7e15a18efaf2 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: LMDE 6 (faye) Configured using: 'configure --with-mailutils --with-modules --with-imagemagick --prefix=3D/home/no-control/local/installs --bindir=3D/home/no-control/local/bin --with-native-compilation --with-tree-sitter' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: ERT-Results Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug oc-basic ol-eww eww vtable mule-util url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader range ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi use-package-core ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-attach org-element org-persist org-id org-refile org-element-ast inline avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs thingatpt cal-menu calendar cal-loaddefs org-compat org-macs format-spec ert-x ert ewoc warnings edebug debug backtrace find-func color yasnippet pcase cl-extra help-mode yasnippet-autoloads easy-mmode loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load wid-edit mm-archive message sendmail yank-media dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny compile text-property-search comint ansi-osc ansi-color ring comp-run comp-common rx epg rfc6068 epg-config finder-inf package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclodb files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 411783 32541) (symbols 48 30614 0) (strings 32 124515 6677) (string-bytes 1 3456886) (vectors 16 61641) (vector-slots 8 591036 21567) (floats 8 455 85) (intervals 56 787 0) (buffers 992 15)) --000000000000b36c1f062e9f12bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There has been no response to the bug bug#70387 or th= e issue reported on the yasnippet github page on April 12, 2024.
=
I have created an Ert test for it.

<= div>yas-expand in=C2=A0yasnippet-0.14.1.0.20250112.175154 throws warning

p.s. is there a more idiomatic way of checking f= or warnings in Ert

"=E2=9B=94 Warning (ya= snippet): Couldn=E2=80=99t find: \"[[:space:]\n]*\\\"[[:space:]\n= ]*\\\\(\\\\)[[:space:]\n]*\\\"\"\n"


;; rm -rf ~/tmp/yas-test
;; mkdir !$
;; emacs --quick --in= it-directory=3D!$ this-file

(require 'package)
(add-to-list &= #39;package-archives '("gnu-devel" . "https://elpa.gnu.org/devel/&quo= t;) t)
(package-initialize)
(package-refresh-contents)

(packag= e-install 'yasnippet)
(use-package yasnippet)

(defun warning-= buffer-contents-no-properties ()
=C2=A0 "Return contents of *Warnin= gs* buffer, without properties"
=C2=A0 (when-let* ((buf (get-buffer= "*Warnings*")))
=C2=A0 =C2=A0 (with-current-buffer buf
= =C2=A0 =C2=A0 =C2=A0 (buffer-substring-no-properties (point-min) (point-max= )))))

(defun my-create-yasnippet-snippets ()
=C2=A0 "Create = a snippet called `could-not-find-space'.
=C2=A0 =C2=A0 =C2=A0 Add it= to the group `emacs-lisp-mode'
=C2=A0 =C2=A0 =C2=A0 Allow `org-mode= ' to inherit `emacs-lisp-mode' snippets"
=C2=A0 (let* ((sni= ppet-key "could-not-find-space")
=C2=A0 =C2=A0 (snippet-conte= nt (concat
=C2=A0 =C2=A0 =C2=A0 " ($1)\n"
=C2=A0 =C2=A0 = =C2=A0 " =C2=A0\"$0\""))
=C2=A0 =C2=A0 (snippet-= def (list
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 snippet-key
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 snippet-content
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil))
=C2=A0 =C2=A0 (snippet-defs (li= st snippet-def))
=C2=A0 =C2=A0 (mode 'emacs-lisp-mode))
=C2=A0 = =C2=A0
=C2=A0 =C2=A0 (yas-define-snippets mode
=C2=A0 =C2=A0 snip= pet-defs)
=C2=A0 =C2=A0 (yas--define-parents 'org-mode
=C2=A0 =C2= =A0 '(emacs-lisp-mode))))

(ert-deftest could-not-find-space (= )
=C2=A0 "yas-expand should not throw the warning - Couldn't fi= nd [[:space:]]"
=C2=A0 (my-create-yasnippet-snippets)

=C2=A0= (ignore-error
=C2=A0 =C2=A0 =C2=A0 (kill-buffer "*Warnings"))=
=C2=A0
=C2=A0 (let ((org-mode-buffer-contents
=C2=A0 =C2=A0 (co= ncat
=C2=A0 =C2=A0 =C2=A0"#+name: test \n"
=C2=A0 =C2=A0 = =C2=A0"#+begin_src emacs-lisp\n"
=C2=A0 =C2=A0 =C2=A0" = =C2=A0 =C2=A0 2\n"
=C2=A0 =C2=A0 =C2=A0" =C2=A0 could-not-fin= d-space| \n"
=C2=A0 =C2=A0 =C2=A0"#+end_src")))

= =C2=A0 =C2=A0
=C2=A0 =C2=A0 (with-temp-buffer
=C2=A0 =C2=A0 =C2=A0 (= org-mode) =C2=A0
=C2=A0 =C2=A0 =C2=A0 (setq org-edit-src-content-indent= ation 1)
=C2=A0 =C2=A0 =C2=A0 (yas-minor-mode 1)
=C2=A0 =C2=A0 =C2=A0= (insert org-mode-buffer-contents)
=C2=A0 =C2=A0 =C2=A0 (goto-char (poin= t-min))
=C2=A0 =C2=A0 =C2=A0 (search-forward "|")
=C2=A0 = =C2=A0 =C2=A0 (delete-char -1)
=C2=A0 =C2=A0 =C2=A0 (call-interactively = 'yas-expand)
=C2=A0 =C2=A0 =C2=A0 (buffer-substring-no-properties (p= oint-min) (point-max))))
=C2=A0
=C2=A0 (should (equal (warning-buffe= r-contents-no-properties)
=C2=A0 =C2=A0 nil)))


(ert t)=





=


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+= Version
=C2=A03.24.38, cairo version 1.16.0) of 2025-02-21 built on slu= g
Repository revision: 4411d0de1d5cbf308440982084ad7e15a18efaf2
Repos= itory branch: master
Windowing system distributor 'The X.Org Foundat= ion', version 11.0.12101007
System Description: LMDE 6 (faye)
Configured using:
=C2=A0'configure --with-mailutils --with-modules = --with-imagemagick
=C2=A0--prefix=3D/home/no-control/local/installs
= =C2=A0--bindir=3D/home/no-control/local/bin --with-native-compilation
= =C2=A0--with-tree-sitter'

Configured features:
CAIRO DBUS FRE= ETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK
JPEG LCMS2 LIBS= ELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PNG RSVG SECCO= MP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP X11 X= DBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB

Important settings:=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Di= bus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: ERT-Resul= ts

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global= -eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode:= t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-= bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-m= ode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0= minibuffer-regexp-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-num= ber-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t<= br>=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2= =A0 auto-compression-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug oc-basic ol-eww eww vtable m= ule-util
url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselec= t
gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr
pix= el-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
gnus-db= us dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo
parse-time gn= us-spec gnus-int gnus-range gnus-win gnus nnheader range
ol-docview doc-= view filenotify jka-compr image-mode exif ol-bibtex
bibtex iso8601 ol-bb= db ol-w3m ol-doi org-link-doi use-package-core
ox-odt rng-loc rng-uri rn= g-parse rng-match rng-dt rng-util rng-pttrn
nxml-parse nxml-ns nxml-enc = xmltok nxml-util ox-latex ox-icalendar
org-agenda ox-html table ox-ascii= ox-publish ox org-attach org-element
org-persist org-id org-refile org-= element-ast inline avl-tree generator
org ob ob-tangle ob-ref ob-lob ob-= table ob-exp org-macro org-src
sh-script smie treesit executable ob-comi= nt org-pcomplete pcomplete
org-list org-footnote org-faces org-entities = noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-cycle org= -table ol
org-fold org-fold-core org-keys oc org-loaddefs thingatpt cal-= menu
calendar cal-loaddefs org-compat org-macs format-spec ert-x ert ewo= c
warnings edebug debug backtrace find-func color yasnippet pcase cl-ext= ra
help-mode yasnippet-autoloads easy-mmode loaddefs-gen lisp-mnt
rad= ix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load
wi= d-edit mm-archive message sendmail yank-media dired dired-loaddefs
rfc82= 2 mml mml-sec epa derived gnus-util time-date mailabbrev gmm-utils
mailh= eader mm-decode mm-bodies mm-encode mail-utils gnutls
network-stream url= -cache url-http url-auth mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf= -drums mail-prsvr url-gw nsm puny compile
text-property-search comint an= si-osc ansi-color ring comp-run
comp-common rx epg rfc6068 epg-config fi= nder-inf package browse-url xdg
url url-proxy url-privacy url-expand url= -methods url-history url-cookie
generate-lisp-file url-domsuf url-util m= ailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-mac= s icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile= url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren el= ectric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel te= rm/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset i= mage regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-= mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easyme= nu timer select
scroll-bar mouse jit-lock font-lock syntax font-core ter= m/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian p= hilippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai= -viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak = czech
european ethiopic indian cyrillic chinese composite emoji-zwj char= script
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oc= lodb
files window text-properties overlay sha1 md5 base64 format = env
code-pages mule custom widget keymap hashtable-print-readable backqu= ote
threads dbusbind inotify lcms2 dynamic-setting system-font-settingfont-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar<= br>make-network-process tty-child-frames native-compile emacs)

Memor= y information:
((conses 16 411783 32541) (symbols 48 30614 0)
=C2=A0(= strings 32 124515 6677) (string-bytes 1 3456886) (vectors 16 61641)
=C2= =A0(vector-slots 8 591036 21567) (floats 8 455 85) (intervals 56 787 0)
= =C2=A0(buffers 992 15))





--000000000000b36c1f062e9f12bb-- From unknown Sun Jun 22 04:33:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70387: - 31.0.50; Warning (yasnippet): Couldn't find [[:space:]] Resent-From: no-control to-edit Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2025 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 70387@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174011715511977 (code B ref -1); Fri, 21 Feb 2025 05:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2025 05:52:35 +0000 Received: from localhost ([127.0.0.1]:50076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlLxg-00036u-UC for submit@debbugs.gnu.org; Fri, 21 Feb 2025 00:52:34 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36420) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlLxd-00035g-2l for submit@debbugs.gnu.org; Fri, 21 Feb 2025 00:52:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlLxV-0002AP-IC for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2025 00:52:21 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tlLxS-0007KN-OM for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2025 00:52:21 -0500 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5deb1266031so3180471a12.2 for ; Thu, 20 Feb 2025 21:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740117136; x=1740721936; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=b34KVawJRzJXVuxFg9kDNiGlARm/c7GX6rOKQI6Coe0=; b=WdqRqLwnc/Iy9Wg1On2+EMj8FD4YrCqZwV6x71KRjj1NI5jBWlDkgZK/4/+2V6WKIK Q2A0BG4yn3f0SqUp7xc5KlGCqAzekPbnc6lSieeHKX5jhlKsM5LhaXntnBfwAaYCfxKk pQuyAkGrztYJcB43reGn4iCMnj7FHD4BCV6hior03wBX3r2c1cq5AJuV7Om5+kJX1kfk iQ7uILK5Z1u/IpB0nUAc0RqtKQVExkuFx1qV6eXO0MBer4VF4c+0b/yj2Lsph/E716/A uVZ1nTnv/NrpVxqnI3276FVhqfOiRx4seHE3m1I/CPoKpwsGtPYacW0jusp7dPHyeRKN +xAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740117136; x=1740721936; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b34KVawJRzJXVuxFg9kDNiGlARm/c7GX6rOKQI6Coe0=; b=c/QHEJLhkEtCbeqg4cMLZ+QtZ6/0jMpojqXMEoneZUXyW0P3f+nEnQVPl+KCy7bbLJ 6I0URdOe5UDSzA50GOb8QgcGhoD1FTGTmyja7l6U4UxLw3Lbla4IAglhffkT9lvAaPqF N4eq79sR+CDpIEa7xgswii6wtQ5jEfhygS2PvGBYNKPcnN9rB5X5qpgcuz8J3f4Nn6oX clRCtB8fPM6xxRZqPr1zdKo1CV0C6wN8/9230QJ4FuPdc9HXJg83I9jTApAhKMRePSXX LZRKhfSe2G/lC7e9RSavliOk5USGd5Urcn28iu0Y8hlckUGKlZr+qXo3EnC1jUTqQaA4 HxuQ== X-Gm-Message-State: AOJu0YwXki0/TOE7A/k3BfCx/nOmaXxLl88sXNGnIwoSFxpQjtfKbTiT RMHaIAbHmZoUXUsPz+SI+dm4mlIcXkGcOfPNSpPhBKLDvlAdBztEPT3foAKU4Yq3u+RetHvpqgR P0ziWP2QYy/FobOWF9KBs7NG42JWtlEsD X-Gm-Gg: ASbGncuIhQ8w7oze+jW8WCGHVIve6AOCML/RnVlF+dGGZGglLbFe0qyhkz+qQXhXSx+ 0D5oOInCJ2aAMcSv/SYF6rkn+SZ4cXlIcaObr3Z9BfbqMkb3j3lLvNT2+eRN4TeDSPGAAwOoLBU 4/SZ6r X-Google-Smtp-Source: AGHT+IGeznQiit6dgviS3DhEnT9uCnc8J4QbAYqed1HwLBNwfd+C8z5Dj2XVaRKrdJtq5VKRMsY4wxj+vFIjv4qosXI= X-Received: by 2002:a05:6402:2354:b0:5de:dd44:929e with SMTP id 4fb4d7f45d1cf-5e0b724438dmr1131470a12.21.1740117136180; Thu, 20 Feb 2025 21:52:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: no-control to-edit Date: Fri, 21 Feb 2025 05:52:04 +0000 X-Gm-Features: AWEUYZnGQ85DWP-6zA8Wom3058St116S-D0G0C6dVveD_RHEeT4u1QdfGnrk58U Message-ID: Content-Type: multipart/alternative; boundary="000000000000c50be2062ea0976b" Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=nocontroltoedit@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000c50be2062ea0976b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The problem might be the function `yas--goto-saved-location' Why does it use lwarn intead of warn?, it has the disadvantage of that I could not use (setq debug-on-message "yasnippet") to turn the warning into an error and see what was creating the warning message. On Fri, Feb 21, 2025 at 4:03=E2=80=AFAM no-control to-edit < nocontroltoedit@gmail.com> wrote: > There has been no response to the bug bug#70387 or the issue reported on > the yasnippet github page on April 12, 2024. > > I have created an Ert test for it. > > yas-expand in yasnippet-0.14.1.0.20250112.175154 throws warning > > p.s. is there a more idiomatic way of checking for warnings in Ert > > "=E2=9B=94 Warning (yasnippet): Couldn=E2=80=99t find: > \"[[:space:]\n]*\\\"[[:space:]\n]*\\\\(\\\\)[[:space:]\n]*\\\"\"\n" > > > ;; rm -rf ~/tmp/yas-test > ;; mkdir !$ > ;; emacs --quick --init-directory=3D!$ this-file > > (require 'package) > (add-to-list 'package-archives '("gnu-devel" . " > https://elpa.gnu.org/devel/") t) > (package-initialize) > (package-refresh-contents) > > (package-install 'yasnippet) > (use-package yasnippet) > > (defun warning-buffer-contents-no-properties () > "Return contents of *Warnings* buffer, without properties" > (when-let* ((buf (get-buffer "*Warnings*"))) > (with-current-buffer buf > (buffer-substring-no-properties (point-min) (point-max))))) > > (defun my-create-yasnippet-snippets () > "Create a snippet called `could-not-find-space'. > Add it to the group `emacs-lisp-mode' > Allow `org-mode' to inherit `emacs-lisp-mode' snippets" > (let* ((snippet-key "could-not-find-space") > (snippet-content (concat > " ($1)\n" > " \"$0\"")) > (snippet-def (list > snippet-key > snippet-content > nil > nil > nil > nil > nil)) > (snippet-defs (list snippet-def)) > (mode 'emacs-lisp-mode)) > > (yas-define-snippets mode > snippet-defs) > (yas--define-parents 'org-mode > '(emacs-lisp-mode)))) > > (ert-deftest could-not-find-space () > "yas-expand should not throw the warning - Couldn't find [[:space:]]" > (my-create-yasnippet-snippets) > > (ignore-error > (kill-buffer "*Warnings")) > > (let ((org-mode-buffer-contents > (concat > "#+name: test \n" > "#+begin_src emacs-lisp\n" > " 2\n" > " could-not-find-space| \n" > "#+end_src"))) > > > (with-temp-buffer > (org-mode) > (setq org-edit-src-content-indentation 1) > (yas-minor-mode 1) > (insert org-mode-buffer-contents) > (goto-char (point-min)) > (search-forward "|") > (delete-char -1) > (call-interactively 'yas-expand) > (buffer-substring-no-properties (point-min) (point-max)))) > > (should (equal (warning-buffer-contents-no-properties) > nil))) > > > (ert t) > > > > > > > > In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.16.0) of 2025-02-21 built on slug > Repository revision: 4411d0de1d5cbf308440982084ad7e15a18efaf2 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.1210100= 7 > System Description: LMDE 6 (faye) > > Configured using: > 'configure --with-mailutils --with-modules --with-imagemagick > --prefix=3D/home/no-control/local/installs > --bindir=3D/home/no-control/local/bin --with-native-compilation > --with-tree-sitter' > > Configured features: > CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK > JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER > PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS > TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB > > Important settings: > value of $LANG: en_GB.UTF-8 > value of $XMODIFIERS: @im=3Dibus > locale-coding-system: utf-8-unix > > Major mode: ERT-Results > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > minibuffer-regexp-mode: t > buffer-read-only: t > line-number-mode: t > indent-tabs-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug oc-basic ol-eww eww vtable mule-util > url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect > gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr > pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start > gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo > parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader range > ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex > bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi use-package-core > ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn > nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar > org-agenda ox-html table ox-ascii ox-publish ox org-attach org-element > org-persist org-id org-refile org-element-ast inline avl-tree generator > org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src > sh-script smie treesit executable ob-comint org-pcomplete pcomplete > org-list org-footnote org-faces org-entities noutline outline > org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol > org-fold org-fold-core org-keys oc org-loaddefs thingatpt cal-menu > calendar cal-loaddefs org-compat org-macs format-spec ert-x ert ewoc > warnings edebug debug backtrace find-func color yasnippet pcase cl-extra > help-mode yasnippet-autoloads easy-mmode loaddefs-gen lisp-mnt > radix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load > wid-edit mm-archive message sendmail yank-media dired dired-loaddefs > rfc822 mml mml-sec epa derived gnus-util time-date mailabbrev gmm-utils > mailheader mm-decode mm-bodies mm-encode mail-utils gnutls > network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 > rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny compile > text-property-search comint ansi-osc ansi-color ring comp-run > comp-common rx epg rfc6068 epg-config finder-inf package browse-url xdg > url url-proxy url-privacy url-expand url-methods url-history url-cookie > generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse > auth-source cl-seq eieio eieio-core cl-macs icons password-cache json > subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib > rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook > vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win > term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt > fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode > register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select > scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors > frame minibuffer nadvice seq simple cl-generic indonesian philippine > cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese composite emoji-zwj charscript > charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclodb > files window text-properties overlay sha1 md5 base64 format env > code-pages mule custom widget keymap hashtable-print-readable backquote > threads dbusbind inotify lcms2 dynamic-setting system-font-setting > font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar > make-network-process tty-child-frames native-compile emacs) > > Memory information: > ((conses 16 411783 32541) (symbols 48 30614 0) > (strings 32 124515 6677) (string-bytes 1 3456886) (vectors 16 61641) > (vector-slots 8 591036 21567) (floats 8 455 85) (intervals 56 787 0) > (buffers 992 15)) > > > > > > --000000000000c50be2062ea0976b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

The problem might be the function `yas--goto-saved-loca= tion'

Why does it use lwarn intead of warn?, it has the disadvantage of that I= could not use

(setq debug-on-message "yasnippet")

to turn the warning into an error and see what was creating the warning = message.


On Fri, Feb 21, 2025 at 4:03=E2=80=AFAM no-control to= -edit <nocontroltoedit@gmai= l.com> wrote:
There has been no response to the bug bug#70387 = or the issue reported on the yasnippet github page on April 12, 2024.
=

I have created an Ert test for it.

yas-expand in=C2=A0yasnippet-0.14.1.0.20250112.175154 throws warni= ng

p.s. is there a more idiomatic way of check= ing for warnings in Ert

"=E2=9B=94 Warnin= g (yasnippet): Couldn=E2=80=99t find: \"[[:space:]\n]*\\\"[[:spac= e:]\n]*\\\\(\\\\)[[:space:]\n]*\\\"\"\n"


;; rm -rf ~/tmp/yas-test
;; mkdir !$
;; emacs --quick= --init-directory=3D!$ this-file

(require 'package)
(add-to-l= ist 'package-archives '("gnu-devel" . "https://elpa.gnu.org/devel/") t)
(package-initialize)
(package-refresh-contents)

(p= ackage-install 'yasnippet)
(use-package yasnippet)

(defun war= ning-buffer-contents-no-properties ()
=C2=A0 "Return contents of *W= arnings* buffer, without properties"
=C2=A0 (when-let* ((buf (get-b= uffer "*Warnings*")))
=C2=A0 =C2=A0 (with-current-buffer buf <= br>=C2=A0 =C2=A0 =C2=A0 (buffer-substring-no-properties (point-min) (point-= max)))))

(defun my-create-yasnippet-snippets ()
=C2=A0 "Crea= te a snippet called `could-not-find-space'.
=C2=A0 =C2=A0 =C2=A0 Add= it to the group `emacs-lisp-mode'
=C2=A0 =C2=A0 =C2=A0 Allow `org-m= ode' to inherit `emacs-lisp-mode' snippets"
=C2=A0 (let* ((= snippet-key "could-not-find-space")
=C2=A0 =C2=A0 (snippet-co= ntent (concat
=C2=A0 =C2=A0 =C2=A0 " ($1)\n"
=C2=A0 =C2= =A0 =C2=A0 " =C2=A0\"$0\""))
=C2=A0 =C2=A0 (snip= pet-def (list
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 snippet-key
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 snippet-content
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 nil
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil))
=C2=A0 =C2=A0 (snippet-de= fs (list snippet-def))
=C2=A0 =C2=A0 (mode 'emacs-lisp-mode))
= =C2=A0 =C2=A0
=C2=A0 =C2=A0 (yas-define-snippets mode
=C2=A0 =C2=A0 = snippet-defs)
=C2=A0 =C2=A0 (yas--define-parents 'org-mode
=C2= =A0 =C2=A0 '(emacs-lisp-mode))))

(ert-deftest could-not-find-= space ()
=C2=A0 "yas-expand should not throw the warning - Couldn&#= 39;t find [[:space:]]"
=C2=A0 (my-create-yasnippet-snippets)
=C2=A0 (ignore-error
=C2=A0 =C2=A0 =C2=A0 (kill-buffer "*Warnings&= quot;))
=C2=A0
=C2=A0 (let ((org-mode-buffer-contents
=C2=A0 =C2= =A0 (concat
=C2=A0 =C2=A0 =C2=A0"#+name: test \n"
=C2=A0 = =C2=A0 =C2=A0"#+begin_src emacs-lisp\n"
=C2=A0 =C2=A0 =C2=A0= " =C2=A0 =C2=A0 2\n"
=C2=A0 =C2=A0 =C2=A0" =C2=A0 could-= not-find-space| \n"
=C2=A0 =C2=A0 =C2=A0"#+end_src")))
=C2=A0 =C2=A0
=C2=A0 =C2=A0 (with-temp-buffer
=C2=A0 =C2=A0 = =C2=A0 (org-mode) =C2=A0
=C2=A0 =C2=A0 =C2=A0 (setq org-edit-src-conten= t-indentation 1)
=C2=A0 =C2=A0 =C2=A0 (yas-minor-mode 1)
=C2=A0 =C2= =A0 =C2=A0 (insert org-mode-buffer-contents)
=C2=A0 =C2=A0 =C2=A0 (goto-= char (point-min))
=C2=A0 =C2=A0 =C2=A0 (search-forward "|")=C2=A0 =C2=A0 =C2=A0 (delete-char -1)
=C2=A0 =C2=A0 =C2=A0 (call-intera= ctively 'yas-expand)
=C2=A0 =C2=A0 =C2=A0 (buffer-substring-no-prope= rties (point-min) (point-max))))
=C2=A0
=C2=A0 (should (equal (warni= ng-buffer-contents-no-properties)
=C2=A0 =C2=A0 nil)))


(ert t)




<= div>


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-g= nu, GTK+ Version
=C2=A03.24.38, cairo version 1.16.0) of 2025-02-21 buil= t on slug
Repository revision: 4411d0de1d5cbf308440982084ad7e15a18efaf2<= br>Repository branch: master
Windowing system distributor 'The X.Org= Foundation', version 11.0.12101007
System Description: LMDE 6 (faye= )

Configured using:
=C2=A0'configure --with-mailutils --with-= modules --with-imagemagick
=C2=A0--prefix=3D/home/no-control/local/insta= lls
=C2=A0--bindir=3D/home/no-control/local/bin --with-native-compilatio= n
=C2=A0--with-tree-sitter'

Configured features:
CAIRO DBU= S FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK
JPEG LCMS2= LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PNG RSVG = SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP = X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB

Important setting= s:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 value of $XMODIFIERS: @i= m=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: ERT-= Results

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 g= lobal-eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-= mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 = menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-l= ock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
= =C2=A0 minibuffer-regexp-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 li= ne-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mo= de: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t<= br>=C2=A0 auto-compression-mode: t

Load-path shadows:
None found.=

Features:
(shadow sort mail-extr emacsbug oc-basic ol-eww eww vt= able mule-util
url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus n= nselect
gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr<= br>pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
g= nus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo
parse-t= ime gnus-spec gnus-int gnus-range gnus-win gnus nnheader range
ol-docvie= w doc-view filenotify jka-compr image-mode exif ol-bibtex
bibtex iso8601= ol-bbdb ol-w3m ol-doi org-link-doi use-package-core
ox-odt rng-loc rng-= uri rng-parse rng-match rng-dt rng-util rng-pttrn
nxml-parse nxml-ns nxm= l-enc xmltok nxml-util ox-latex ox-icalendar
org-agenda ox-html table ox= -ascii ox-publish ox org-attach org-element
org-persist org-id org-refil= e org-element-ast inline avl-tree generator
org ob ob-tangle ob-ref ob-l= ob ob-table ob-exp org-macro org-src
sh-script smie treesit executable o= b-comint org-pcomplete pcomplete
org-list org-footnote org-faces org-ent= ities noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-cyc= le org-table ol
org-fold org-fold-core org-keys oc org-loaddefs thingatp= t cal-menu
calendar cal-loaddefs org-compat org-macs format-spec ert-x e= rt ewoc
warnings edebug debug backtrace find-func color yasnippet pcase = cl-extra
help-mode yasnippet-autoloads easy-mmode loaddefs-gen lisp-mnt<= br>radix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load=
wid-edit mm-archive message sendmail yank-media dired dired-loaddefsrfc822 mml mml-sec epa derived gnus-util time-date mailabbrev gmm-utilsmailheader mm-decode mm-bodies mm-encode mail-utils gnutls
network-stre= am url-cache url-http url-auth mail-parse rfc2231 rfc2047
rfc2045 mm-uti= l ietf-drums mail-prsvr url-gw nsm puny compile
text-property-search com= int ansi-osc ansi-color ring comp-run
comp-common rx epg rfc6068 epg-con= fig finder-inf package browse-url xdg
url url-proxy url-privacy url-expa= nd url-methods url-history url-cookie
generate-lisp-file url-domsuf url-= util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core = cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-c= ompile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc pa= ren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwh= eel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fon= tset image regexp-opt
fringe tabulated-list replace newcomment text-mode= lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch = easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-co= re term/tty-colors
frame minibuffer nadvice seq simple cl-generic indone= sian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan th= ai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian s= lovak czech
european ethiopic indian cyrillic chinese composite emoji-zw= j charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obar= ray oclodb





--000000000000c50be2062ea0976b-- From unknown Sun Jun 22 04:33:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70387: - 31.0.50; Warning (yasnippet): Couldn't find [[:space:]] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2025 07:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: no-control to-edit Cc: 70387@debbugs.gnu.org Received: via spool by 70387-submit@debbugs.gnu.org id=B70387.174012425117494 (code B ref 70387); Fri, 21 Feb 2025 07:51:02 +0000 Received: (at 70387) by debbugs.gnu.org; 21 Feb 2025 07:50:51 +0000 Received: from localhost ([127.0.0.1]:51811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlNoA-0004Y1-I2 for submit@debbugs.gnu.org; Fri, 21 Feb 2025 02:50:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41064) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlNo8-0004Wx-W9 for 70387@debbugs.gnu.org; Fri, 21 Feb 2025 02:50:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlNo3-0003tp-Jz; Fri, 21 Feb 2025 02:50:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2vur/fvXbH59EHwVm1pjWjuDVksXEhqTf/7ZIRPQkTA=; b=MBjhsvztwTq3 t9202N+N5pND+NGTIueitTXDfXkwAyrOxRPNxtO5nIkRFAl6AB5gdDqX2VuzdLorMxrgv5t5jscm6 IBSw0ZU5U2SRnP/GnjWbrZ8egmdqEoDih95B6cjbJ/RBCtjo9+/6S6/QwpfvnJCvtOnasQBE3ot4/ 4gx6dmmd5mgLrKqlsA5lzoQx2VF6Olg2NYloAOznA72sdjBm+NT6P0P/Mx8qyXZ5Cb5PYd09eJ5qv QJueC89x8qJg6tv3btPXqxGa3v/N7NxqGWYbst5ksA4diwhWyO3QP1oQW/C/s/2e4ycZxHLVEpCie 34TNVuvIS+zAMG9pxRu7xg==; Date: Fri, 21 Feb 2025 09:50:41 +0200 Message-Id: <86v7t320tq.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from no-control to-edit on Fri, 21 Feb 2025 04:03:16 +0000) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: no-control to-edit > Date: Fri, 21 Feb 2025 04:03:16 +0000 > > There has been no response to the bug bug#70387 or the issue reported on the yasnippet github page on > April 12, 2024. I guess the yasnippet developers are less active than we'd like them to be, or missed that report? Can someone who uses yasnippet please take a look and see what happens here? From unknown Sun Jun 22 04:33:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70387: - 31.0.50; Warning (yasnippet): Couldn't find [[:space:]] Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2025 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , no-control to-edit Cc: 70387@debbugs.gnu.org, Noam Postavsky Received: via spool by 70387-submit@debbugs.gnu.org id=B70387.17401604801930 (code B ref 70387); Fri, 21 Feb 2025 17:55:02 +0000 Received: (at 70387) by debbugs.gnu.org; 21 Feb 2025 17:54:40 +0000 Received: from localhost ([127.0.0.1]:34945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlXEU-0000Uq-KH for submit@debbugs.gnu.org; Fri, 21 Feb 2025 12:54:39 -0500 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:56592) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tlXER-0000TN-3K for 70387@debbugs.gnu.org; Fri, 21 Feb 2025 12:54:36 -0500 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5ded368fcd9so3470968a12.1 for <70387@debbugs.gnu.org>; Fri, 21 Feb 2025 09:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740160468; x=1740765268; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=tKv8dwTNrhOWfey9nD8xjUgxJo+DF1p9zc1yErnmY/Q=; b=mK7Oo1ashsVszVSaTrggNhi7s0In/L0mnZ5fUhR5PQgC7xMOPxEjXmmPxg5uPYZton VNK1PK5xBKeCDN1JQs7ovIBEIZiZWCO81siB2mUifoGb7QnFrviJQwFqZLTO8HEgC/Ac fUpcqpzx8J7dTsppqwS9AasvwYRT1MFhA7fHVmGqOYmRxVgXJ1glTUYM9ZSeTLpaG89w UP8ahWOeNeTFgl+xmkYGx0SipYa+c++dnBpB7QHCIuueypZ+TMDhgLMbN1CcKHq/EvP8 KubB5aNRf+Qf7iyTGIobR9RQr7cRhQKtyWmuYvLOEHl2sTIJ4vtjy93zlRB4fay3rTBj /boA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740160468; x=1740765268; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tKv8dwTNrhOWfey9nD8xjUgxJo+DF1p9zc1yErnmY/Q=; b=OK8lnP5UiPmDrSAI6gPzv2r1qUfR8ISq29vRrX8Gtvu09w0jzcbgS6wZvF1M1M1UWt MXGAzarWPZZMh3OB+H+slhfslww4cEykm4IgqlKplXrcMQaOpk3Tr5yb+MAPezWNiGzd Ovbap05KPBU2Q83WOHnvkMUD9QoG7mc8f/YSzlyo+toFLDNTiE8Em/dvI7JxHMNYT/0v LoD6DVMqZ/PpzpI5RWg+oUGEaWjnJyu+5/C5Y8eHjmTjeXC3v/drAr/bCOoBf2pUNHB8 JqoZRDOs6xQIJgEiP9uN3c6YxN+LeLsIYOuvAX1sg9PjCyhozQs/29VeTvBhsTnDzUC1 hX9g== X-Gm-Message-State: AOJu0Yy8X8a34dUwsg8WAtpVeQSuXMB+CFoVlsPx9zD0jqdGGtdx0ptj Vse4yhZwyQqGAeY4GZNr8m57QhJRjWH9GxOtPP3Uy9BxiQDBIOEET7CgdlNtPyXvWtkIaphrNip YnWbPARCgKaAdtru/tGu0nI5fm/Y= X-Gm-Gg: ASbGncuv78sIqFFCTl9Zl6tvJ6fqsxrcAikuUjPckcNKfqxy699XGWMnl0grvrG/Y8D dUg+gyUAabQxbY0YMd+H8/qRsl8Kn73vLoCYjm/i4Lwe418srosdBzesFKQBd+BYKrl+2rGgEIB 8/KKeussro X-Google-Smtp-Source: AGHT+IGIiLUawwh8ATwsC/8a7Z0OTMCEHC3iQYMGieXJlDW7d4SAlUMA9Hw4DMCtN0/thMqgz7ZiXZLAMjhQPkcOD9I= X-Received: by 2002:a05:6402:3490:b0:5dc:ad49:ba1a with SMTP id 4fb4d7f45d1cf-5e0b6fd6286mr4036957a12.0.1740160466210; Fri, 21 Feb 2025 09:54:26 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 21 Feb 2025 17:54:25 +0000 From: Stefan Kangas In-Reply-To: <86v7t320tq.fsf@gnu.org> References: <86v7t320tq.fsf@gnu.org> MIME-Version: 1.0 Date: Fri, 21 Feb 2025 17:54:25 +0000 X-Gm-Features: AWEUYZliinaNaYrzJmihrg1nk-sLJbx1VYTpibjemSMbZDEpqRUrgAxQjZo6Nic Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: no-control to-edit >> Date: Fri, 21 Feb 2025 04:03:16 +0000 >> >> There has been no response to the bug bug#70387 or the issue reported on the yasnippet github page on >> April 12, 2024. > > I guess the yasnippet developers are less active than we'd like them > to be, or missed that report? > > Can someone who uses yasnippet please take a look and see what happens > here? Noam Postavsky is marked as the maintainer, so I'm Cc:ing him here.