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: Philipp Stephani
Subject: bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<)
Date: Thu, 17 Jan 2019 23:43:16 +0100

Am Mi., 16. Jan. 2019 um 15:54 Uhr schrieb <address@hidden>:
>
>
> Eval (sort "cba" #'<) gives
>
> 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.

Attachment: 0001-Improve-error-data-when-passing-a-wrong-type-to-sort.txt
Description: Text document


reply via email to

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