From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#64584: 29.0.91; skeleton: cannot pass `str' as argument to some functions Date: Wed, 12 Jul 2023 22:35:35 +0530 Message-ID: <87y1jloyao.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32563"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 64584@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 12 19:07:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJdJI-0008JH-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jul 2023 19:07:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJdIv-00026D-9w; Wed, 12 Jul 2023 13:07:05 -0400 Original-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 1qJdIt-000263-AG for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJdIs-0007Tg-Of for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJdIs-0005I0-3G for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jul 2023 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64584 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168918157120264 (code B ref -1); Wed, 12 Jul 2023 17:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2023 17:06:11 +0000 Original-Received: from localhost ([127.0.0.1]:52864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJdI2-0005Gl-S9 for submit@debbugs.gnu.org; Wed, 12 Jul 2023 13:06:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJdI1-0005Ge-7s for submit@debbugs.gnu.org; Wed, 12 Jul 2023 13:06:09 -0400 Original-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 1qJdHz-0001sP-35 for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:06:07 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJdHt-0007Mk-Mb for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:06:05 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id d9443c01a7336-1b8baa836a5so53263995ad.1 for ; Wed, 12 Jul 2023 10:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689181558; x=1691773558; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=jzkZNsgyE56i1IPgXez+YbDkaW09uC5nYbu3+0i/poU=; b=LHGKgIe444gBJFkXOd7Qzti7M8kqo64uru+a7lBvy5/G4++VC0ex/DN+5lTHoE0eEF mrPVlYmminOT7lc5ljO/zbHXwa1lYnj2p0Y9TQMJyWwYLxcFuHU891UUSxD6W0JAFP5u /RLbfuCmK1Xgo6c+eicsxlpDVQxRdaHprNXT15fcZ+tZ7Mz6G73r/+8HO6hA7twOdQan qAs1PMl3ocOSmjAjMK2rgm6e5TzgzP275vHLzNd8iY4HkWlhMNv8Irl0aXzwp6fUkwTR uPrkHVsbbrqIYOLMmca8SWTr+JfPdvEwKJ2MZ2fDWkUyjKlxW6T1oc3vRzdnm3620tFh YFqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689181558; x=1691773558; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jzkZNsgyE56i1IPgXez+YbDkaW09uC5nYbu3+0i/poU=; b=YVbzzdbFQqssEDEDkyU6ZPtemB/9xrf+5nGjOnj+Cqbozv2uSqlv3gj2AZNENhdYPl hklMBBpZoMA/LePKyNGNIFzsEKeGV7XxMcQY+w0b075j6NJCore45+31b/kIpWXKNXF8 6KtJ/CNHzjuoxczx3Kv5EIHj/WTwYFlHnfqOD4Jw2Cl9ZB3Q45ri9TYTotM+O683eLRv 6mGIaH8Zz+YBlEu12HrSwHfjDuCXZYjhLhw6gczEcj+VubVJ/IoEeZr9gwiQe9EDqo7Y 7kl3/CzDh+ogfGzcomQfPaDyqcr3bTFKP6Kdl9qhf4Omf5wl6LTqDI6FdR6dtQSoBvaX UhRQ== X-Gm-Message-State: ABy/qLYC5RbhpprK0V60oXW835dxj7od2Hhrc6wxbFYGcmqRgMCG29IT 0ODtum+pElNXNszU8Shgc85zcXWd2B6Kzw== X-Google-Smtp-Source: APBJJlGrqRb+KNcfBWuMGljyj2VbMYGCg5QGDGBYATGa7QM73CwmIDhW2+Ok1G1nkMsnzUttw4knlg== X-Received: by 2002:a17:902:f7d2:b0:1b6:9fec:8134 with SMTP id h18-20020a170902f7d200b001b69fec8134mr17066562plw.46.1689181557775; Wed, 12 Jul 2023 10:05:57 -0700 (PDT) Original-Received: from localhost ([49.205.82.241]) by smtp.gmail.com with ESMTPSA id ik25-20020a170902ab1900b001b54a88e4a6sm4305602plb.51.2023.07.12.10.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 10:05:57 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.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, RCVD_IN_DNSWL_NONE=-0.0001, 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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264975 Archived-At: In a skeleton template, it is not possible to pass `str' as an argument to some functions. To reproduce: 1. emacs -Q 2. Evaluate the following skeletons: (define-skeleton test-skeleton "" (file-relative-name (read-file-name "P: ")) (shell-quote-argument str)) (define-skeleton test-skeleton-2 "" (file-relative-name (read-file-name "P: ")) (identity str)) 3. M-x test-skeleton RET RET -- witness it signal an error 4. M-x test-skeleton-2 RET RET -- witness it insert "./" I was able to reduce the problem down to the follwing sexp by edebbuging skeleton-internal-1 (specifically the last `t' case in the cond signals the error): (dlet ((str `(setq str "test")) (e `(shell-quote-argument str))) (eval e)) In GNU Emacs 29.0.91 (build 11, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2023-07-12 built on astatine Repository revision: 17c7915ab947ebeec6ea5ad3eb4cad1f24d5d4fc Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json --without-xaw3d --without-gconf --without-libsystemd --without-cairo' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XFT XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_MONETARY: ta_IN.UTF-8 value of $LC_NUMERIC: ta_IN.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 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 help-mode emacsbug mail-extr message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader cl-loaddefs cl-lib skeleton 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 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 dynamic-setting system-font-setting font-render-setting x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 41879 11878) (symbols 48 5521 1) (strings 32 14721 2050) (string-bytes 1 393181) (vectors 16 10382) (vector-slots 8 158438 14259) (floats 8 44 14) (intervals 56 314 11) (buffers 976 13))