unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<)
@ 2019-01-16 14:53 mail
  2019-01-17 22:43 ` Philipp Stephani
  0 siblings, 1 reply; 4+ messages in thread
From: mail @ 2019-01-16 14:53 UTC (permalink / raw)
  To: 34104


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.





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

end of thread, other threads:[~2019-01-19 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-16 14:53 bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<) mail
2019-01-17 22:43 ` Philipp Stephani
2019-01-18  8:30   ` Eli Zaretskii
2019-01-19 23:05     ` Philipp Stephani

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