GNU bug report logs - #38427
26.2; skeleton-insert does not set str consistently

Previous Next

Package: emacs;

Reported by: Tim Landscheidt <tim <at> tim-landscheidt.de>

Date: Fri, 29 Nov 2019 16:00:02 UTC

Severity: normal

Tags: moreinfo

Found in version 26.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 38427 <at> debbugs.gnu.org
Subject: bug#38427: 26.2; skeleton-insert does not set str consistently
Date: Sun, 01 Nov 2020 15:45:18 +0100
Tim Landscheidt <tim <at> tim-landscheidt.de> writes:

> Given (A):
>
> | (let
> |     ((somevalues '(("a" . "123") ("b" . "456"))))
> |   (skeleton-insert
> |    '("Prompt: "
> |      (cdr (assoc str somevalues)) | str ?\n)))
>
> Emacs asks for input with "Prompt: " and with "a" given, it
> outputs "a" instead of the expected "123".

Evaluating that form gives me:

Debugger entered--Lisp error: (void-variable somevalues)
  (assoc str somevalues)
  (cdr (assoc str somevalues))
  eval((cdr (assoc str somevalues)))
  skeleton-internal-1((cdr (assoc str somevalues)) nil nil)

I'm not at all familiar with how skeleton works, but a test case that
works would help when trying to debug.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.