unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 49866@debbugs.gnu.org, Andrew Cohen <cohen@bu.edu>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	Pankaj Jangid <pankaj@codeisgreat.org>,
	nuclearspace@gmail.com
Subject: bug#49866: 28.0.50; gnus-summary-exit from the transient search buffer giving error
Date: Fri, 06 Aug 2021 09:57:53 -0700	[thread overview]
Message-ID: <87v94iqzn2.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2lf5h7lus.fsf@codeisgreat.org>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> On 08/06/21 12:25 PM, Basil L. Contovounesios wrote:
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>>> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>>>
>>>> The problem isn't nil, it's '(1 2 3). 
>>>
>>> The original backtrace was
>>>
>>> Debugger entered--Lisp error: (cl-no-applicable-method map-into nil list)
>>>   signal(cl-no-applicable-method (map-into nil list))
>>> [...]
>>>   map-into(nil list)
>>>   map-merge(list nil nil)
>>
>> This reminds me of https://bugs.gnu.org/46722, although I can't
>> reproduce the error with (map-into () 'list).
>>
>>> though.  So Eric's patch is the right thing for the '(1 2 3) nil case?
>>
>> I don't see how Eric's patch addresses the '(1 2 3) case, since '(1 2 3)
>> is not a valid map that map-merge can usefully operate on.
>
> I've provided unhelpful examples here, because I didn't really know what
> `map-merge' was supposed to do.
>
> Reloading map.el or map.elc is enough to fix the problem here. So that's
> another data point.
>
> I realized that I was lying when I told Andy that EBDB doesn't use
> map.el! In fact it does require it at the top ebdb.el, but then doesn't
> make use of any of the functions. Maybe at some point I thought I'd use
> it for something?

I am further lying! Apparently I was using it, in ebdb-com.el, for alist
mapping in a pcase-lambda. My apologies to Andy for dismissing the
possibility that it was EBDB -- I have no recollection of writing that
code!

ANYWAY the real problem seems to have something to do with the recent
change to the "eql" specializer for method definitions, done in
6535fd1fa9. That patch added quotes to eg the 'list in:

(cl-defmethod map-into (map (_type (eql 'list)))
  "Convert MAP into an alist."
  (map-pairs map))

And removing those quotes removes the error for me. Again, simply
reloading either map.el or map.elc (with quotes still in place) also
removes the error, so there must be something tricky going on in
compilation. I'm cc'ing akater, the author of that patch, in hopes
they'll have some light to shed.

Eric





  reply	other threads:[~2021-08-06 16:57 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  6:41 bug#49866: 28.0.50; gnus-summary-exit from the transient search buffer giving error Pankaj Jangid
2021-08-04  8:48 ` Lars Ingebrigtsen
2021-08-04 11:09   ` Pankaj Jangid
2021-08-05 10:47     ` Lars Ingebrigtsen
2021-08-05 11:23       ` Pankaj Jangid
2021-08-05 16:34         ` Eric Abrahamsen
2021-08-05 17:06           ` Pankaj Jangid
2021-08-05 17:56             ` Eric Abrahamsen
2021-08-05 18:44               ` Eric Abrahamsen
2021-08-05 18:57                 ` Eric Abrahamsen
2021-08-05 21:35                   ` Eric Abrahamsen
2021-08-06  9:27                     ` Lars Ingebrigtsen
2021-08-06 10:11                       ` Andrew Cohen
2021-08-06  9:58                     ` Pankaj Jangid
2021-08-06 10:21                     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-06 11:01                       ` Andrew Cohen
2021-08-06 11:04                         ` Andrew Cohen
2021-08-06  0:55                 ` Eric Abrahamsen
2021-08-06  9:29                   ` Lars Ingebrigtsen
2021-08-06 10:22                     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-06 10:42                       ` Lars Ingebrigtsen
2021-08-06 11:24                         ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-06 10:44                       ` Lars Ingebrigtsen
2021-08-06 11:25                         ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-06 16:25                           ` Eric Abrahamsen
2021-08-06 16:57                             ` Eric Abrahamsen [this message]
2021-08-06 17:13                               ` Lars Ingebrigtsen
2021-08-06 17:51                               ` akater
2021-08-06 18:05                                 ` akater
2021-08-06 18:47                                   ` Lars Ingebrigtsen
2021-08-06 19:14                                     ` akater
2021-08-06 20:27                                       ` Eric Abrahamsen
2021-08-07  5:26                                         ` Pankaj Jangid
2021-08-07 10:19                                           ` Lars Ingebrigtsen
2021-08-07 16:59                                             ` Pankaj Jangid
2021-08-07 19:40                                             ` akater
2021-08-07 22:56                                           ` Eric Abrahamsen
2021-08-07 23:10                                             ` Eric Abrahamsen
2021-08-07 23:20                                               ` akater
2021-08-07 23:17                                             ` akater
2021-08-09 16:50                                             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-09 23:07                                               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-10  4:17                                                 ` Pankaj Jangid
2021-08-06 18:08                                 ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v94iqzn2.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=49866@debbugs.gnu.org \
    --cc=cohen@bu.edu \
    --cc=contovob@tcd.ie \
    --cc=larsi@gnus.org \
    --cc=nuclearspace@gmail.com \
    --cc=pankaj@codeisgreat.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).