From: Juri Linkov <juri@linkov.net>
To: 49053@debbugs.gnu.org
Cc: stefan monnier <monnier@iro.umontreal.ca>
Subject: bug#49053: Error (setf seq-elt) is already defined as something else than a generic function
Date: Wed, 16 Jun 2021 00:59:18 +0300 [thread overview]
Message-ID: <874kdyn615.fsf@mail.linkov.net> (raw)
X-Debbugs-Cc: Stefan Monnier <monnier@iro.umontreal.ca>
I'm creating a new bug report because I was able to reproduce it.
>>> (setf (seq-elt plist ...))
>>>
>>> may help with that, though.
>>
>> BTW, often after pulling from master and recompiling,
>> Emacs fails to start with such errors:
>>
>> Debugger entered--Lisp error: (error "(setf seq-elt) is already defined as
>> something else than a generic function")
>> error("%s is already defined as something else than a generic function" \(setf\ seq-elt\))
>> cl-generic-ensure-function(\(setf\ seq-elt\))
>> cl-generic-define-method(\(setf\ seq-elt\) nil (store (sequence array) n)
>> nil #f(compiled-function (store sequence n)
>
> Hmm....
>
> When you see that, could you show us the value of:
>
> (symbol-function '\(setf\ seq-elt\))
Here is what I did to reproduce the error:
1. Checked out 2f7a115a9c
2. make bootstrap
3. Checked out 794ec934a7
4. make (without bootstrap)
5. run emacs without -Q, i.e. with the init file
It terminated after printing to stderr:
(setf seq-elt) is already defined as something else than a generic function
6. run `emacs -Q`
(symbol-function '\(setf\ seq-elt\))
=> nil
7. loaded the init file from ~/.emacs
It printed to the *Messages* buffer:
Load error for /home/juri/.emacs:
(error (setf seq-elt) is already defined as something else than a generic function)
Then evaluated symbol-function again that returned a different value:
(symbol-function '\(setf\ seq-elt\))
=> dummy
8. run again `emacs -Q` and tried to manually evaluate each expression
in the init file.
Then at one point, the byte-compiler compiled the file bytecomp.eln
in ~/.emacs.d/eln-cache. And the compiled bytecomp.eln completely
fixed the problem.
I guess some change between 2f7a115a9c and 794ec934a7 (maybe 663fb3b774)
changed the file bytecomp.el, so there was the need to recompile it.
next reply other threads:[~2021-06-15 21:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 21:59 Juri Linkov [this message]
2021-06-15 22:49 ` bug#49053: Error (setf seq-elt) is already defined as something else than a generic function Juri Linkov
2021-06-16 2:29 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-16 7:53 ` Juri Linkov
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=874kdyn615.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=49053@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).