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

Previous Next

Package: emacs;

Reported by: mail <at> xuchunyang.me

Date: Wed, 16 Jan 2019 14:54:03 UTC

Severity: minor

Found in version 26.1

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: mail <at> xuchunyang.me
Subject: bug#34104: closed (Re: bug#34104: 26.1; Inaccurate error report
 of (sort "cba" #'<))
Date: Sat, 19 Jan 2019 23:06:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 34104 <at> debbugs.gnu.org.

-- 
34104: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34104
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: mail <at> xuchunyang.me, 34104-done <at> debbugs.gnu.org
Subject: Re: bug#34104: 26.1; Inaccurate error report of (sort "cba" #'<)
Date: Sun, 20 Jan 2019 00:05:04 +0100
Am Fr., 18. Jan. 2019 um 09:31 Uhr schrieb Eli Zaretskii <eliz <at> gnu.org>:
>
> > From: Philipp Stephani <p.stephani2 <at> gmail.com>
> > Date: Thu, 17 Jan 2019 23:43:16 +0100
> > Cc: 34104 <at> 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.

Pushed as 551051596f.

[Message part 3 (message/rfc822, inline)]
From: mail <at> xuchunyang.me
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Inaccurate error report of (sort "cba" #'<)
Date: Wed, 16 Jan 2019 22:53:19 +0800
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.



This bug report was last modified 6 years and 184 days ago.

Previous Next


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