bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<)


From: Eli Zaretskii
Subject: bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<)
Date: Fri, 18 Jan 2019 10:30:57 +0200

> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Thu, 17 Jan 2019 23:43:16 +0100
> Cc: 34104@debbugs.gnu.org
> 
> > Debugger entered--Lisp error: (wrong-type-argument sequencep "cba")
> >   sort("cba" <)
> >   eval((sort "cba" (function <)) nil)
> >   elisp--eval-last-sexp(nil)
> >   eval-last-sexp(nil)
> >   funcall-interactively(eval-last-sexp nil)
> >   call-interactively(eval-last-sexp nil nil)
> >   command-execute(eval-last-sexp)
> >
> > the error is inaccurate since "cba" is indeed a sequence
> >
> > (sequencep "cba")
> > ;; => t
> >
> > it should report "cba" is not a list or vector instead.
> >
> 
> 
> Here's a patch.

LGTM, thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]