GNU bug report logs - #18140
[PATCH] macros.c: CHECK_VECTOR_OR_STRING invokes wrong_type_argument for Qnil instead of return 0

Previous Next

Package: emacs;

Reported by: Jan Chaloupka <jchaloup <at> redhat.com>

Date: Tue, 29 Jul 2014 05:03:02 UTC

Severity: normal

Tags: patch

Done: Andreas Schwab <schwab <at> suse.de>

Bug is archived. No further changes may be made.

Full log


Message #28 received at 18140 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Jan Chaloupka <jchaloup <at> redhat.com>
Cc: 18140 <at> debbugs.gnu.org
Subject: Re: bug#18140: [PATCH] macros.c: CHECK_VECTOR_OR_STRING invokes
 wrong_type_argument for Qnil instead of return 0
Date: Tue, 29 Jul 2014 11:04:51 +0200
Jan Chaloupka <jchaloup <at> redhat.com> writes:

> So is it correct if append and Vlast_kbd_macro are both Qnil resulting in
> CHECK_VECTOR_OR_STRING fail?

Sure, that's the point of the check.  last-kbd-macro is a lisp-level
variable, so it must be checked.

> Because Vlast_kbd_macro is not VECTOR nor STRING

That just calls error, but not emacs_abort.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 10 years and 361 days ago.

Previous Next


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