* bug#24688: 25.1.50; testcover-start error when instrumenting pcase pattern
@ 2016-10-14 14:58 Gemini Lasswell
2017-10-08 23:46 ` Gemini Lasswell
0 siblings, 1 reply; 2+ messages in thread
From: Gemini Lasswell @ 2016-10-14 14:58 UTC (permalink / raw)
To: 24688
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
testcover-start fails with the message "Wrong type argument: listp, \,"
when asked to instrument lisp/emacs-lisp/cconv.el from the Emacs source
tree. I've simplified the problem down to this fragment of code:
(pcase form
(`(condition-case ,var ,protected-form . ,handlers)
nil))
To reproduce, create a file called bug.el containing the code above and:
1. emacs -Q
2. M-x toggle-debug-on-error RET
3. C-x C-f bug.el RET
4. M-: (require 'testcover) RET
5. M-x testcover-start RET bug.el RET
Here is the resulting backtrace:
[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 1463 bytes --]
Debugger entered--Lisp error: (wrong-type-argument listp \,)
cdr(\,)
mapcar(cdr (\, handlers))
testcover-reinstrument((condition-case (\, var) (\, protected-form) \, handlers))
testcover-reinstrument((\` (condition-case (\, var) (\, protected-form) \, handlers)))
testcover-reinstrument(((\` (condition-case (\, var) (\, protected-form) \, handlers)) nil))
testcover-reinstrument-list((form ((\` (condition-case (\, var) (\, protected-form) \, handlers)) nil)))
testcover-reinstrument((pcase form ((\` (condition-case (\, var) (\, protected-form) \, handlers)) nil)))
testcover--read(#[128 "\300\301\302\x03#\207" [apply edebug--read read nil] 5 nil] #<buffer bug2.el>)
apply(testcover--read #[128 "\300\301\302\x03#\207" [apply edebug--read read nil] 5 nil] #<buffer bug2.el>)
#[128 "\300\301\302\x03#\207" [apply testcover--read #[128 "\300\301\302\x03#\207" [apply edebug--read read nil] 5 nil] nil] 5 nil](#<buffer bug2.el>)
eval-buffer(#<buffer bug2.el>) ; Reading at buffer position 79
testcover-start("~/Projects/lisp/bug2.el")
funcall-interactively(testcover-start "~/Projects/lisp/bug2.el")
call-interactively(testcover-start record nil)
command-execute(testcover-start record)
execute-extended-command(nil "testcover-start" "testcover-start")
funcall-interactively(execute-extended-command nil "testcover-start" "testcover-start")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
[-- Attachment #3: Type: text/plain, Size: 2856 bytes --]
In GNU Emacs 25.1.50.18 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1004))
of 2016-10-12 built on rainbow.local
Windowing system distributor 'Apple', version 10.3.1404
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
testcover
mapcar: Wrong type argument: listp, \,
Debug on Error enabled globally
You can run the command ‘toggle-debug-on-error’ with M-x t-er RET
Debug on Error enabled globally
Entering debugger...
Configured using:
'configure --with-ns'
Configured features:
JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS
NS
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Debugger
Minor modes in effect:
tooltip-mode: t
global-eldoc-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
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra cconv dired dired-loaddefs format-spec
rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode debug cus-start cus-load
testcover edebug easymenu cl-loaddefs pcase cl-lib time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev
obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote kqueue
cocoa ns multi-tty make-network-process emacs)
Memory information:
((conses 16 216154 8450)
(symbols 48 21704 0)
(miscs 40 64 189)
(strings 32 20892 6047)
(string-bytes 1 644659)
(vectors 16 35191)
(vector-slots 8 672545 4247)
(floats 8 184 26)
(intervals 56 239 0)
(buffers 976 13))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-08 23:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 14:58 bug#24688: 25.1.50; testcover-start error when instrumenting pcase pattern Gemini Lasswell
2017-10-08 23:46 ` Gemini Lasswell
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).