unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24673: 25.1.50; Evaluating '((closure))' aborts Emacs
@ 2016-10-12 10:26 Andreas Politz
  2016-10-12 20:52 ` Philipp Stephani
  2016-10-12 21:23 ` Robert Cochran
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Politz @ 2016-10-12 10:26 UTC (permalink / raw)
  To: 24673


emacs -Q

M-x ((closure)) RET

=> eval.c:2845: Emacs fatal error: assertion failed: CONSP (fun)

The function takes the (XCAR (XCDR '((closure)))), which is not a good
idea, since XCDR returns Qnil, while XCAR expects a cons. 


static Lisp_Object
funcall_lambda (Lisp_Object fun, ptrdiff_t nargs,
		register Lisp_Object *arg_vector)
{
  ....        
  if (CONSP (fun))
    {
      if (EQ (XCAR (fun), Qclosure))
	{
	  fun = XCDR (fun);	/* Drop `closure'.  */
	  lexenv = XCAR (fun);                 <============ 2845
	  CHECK_LIST_CONS (fun, fun);
	}
        ...
    }
  else ...
}

-ap





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-13 11:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 10:26 bug#24673: 25.1.50; Evaluating '((closure))' aborts Emacs Andreas Politz
2016-10-12 20:52 ` Philipp Stephani
2016-10-13  5:51   ` Eli Zaretskii
2016-10-13 11:13     ` Philipp Stephani
2016-10-12 21:23 ` Robert Cochran

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).