From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#54079: 29.0.50; Method dispatching eratically fails Date: Tue, 8 Mar 2022 19:28:27 +0000 Message-ID: References: <87bkz113hz.fsf@web.de> <87mtik3l54.fsf@web.de> <87ilt6bgnt.fsf@web.de> <87sfsapgv0.fsf@web.de> <87o82ypfxz.fsf@web.de> <875youbhbu.fsf@web.de> <87k0d7257t.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 54079@debbugs.gnu.org, monnier@iro.umontreal.ca To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 08 20:29:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRfWA-00019t-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 20:29:10 +0100 Original-Received: from localhost ([::1]:60226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRfW9-0003sM-3S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 14:29:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRfW2-0003s0-FE for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 14:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRfW2-0005nB-6t for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 14:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRfW2-0004YM-3g for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 14:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Mar 2022 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54079 X-GNU-PR-Package: emacs Original-Received: via spool by 54079-submit@debbugs.gnu.org id=B54079.164676771917470 (code B ref 54079); Tue, 08 Mar 2022 19:29:02 +0000 Original-Received: (at 54079) by debbugs.gnu.org; 8 Mar 2022 19:28:39 +0000 Original-Received: from localhost ([127.0.0.1]:57964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRfVf-0004Xi-82 for submit@debbugs.gnu.org; Tue, 08 Mar 2022 14:28:39 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:60044 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nRfVb-0004XR-RJ for 54079@debbugs.gnu.org; Tue, 08 Mar 2022 14:28:37 -0500 Original-Received: (qmail 57003 invoked by uid 3782); 8 Mar 2022 19:28:28 -0000 Original-Received: from acm.muc.de (p4fe15889.dip0.t-ipconnect.de [79.225.88.137]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 08 Mar 2022 20:28:28 +0100 Original-Received: (qmail 7554 invoked by uid 1000); 8 Mar 2022 19:28:28 -0000 Content-Disposition: inline In-Reply-To: <87k0d7257t.fsf@web.de> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228153 Archived-At: Hello, Michael. On Sun, Mar 06, 2022 at 03:19:02 +0100, Michael Heerdegen wrote: > Alan Mackenzie writes: > > > > (byte-compile-file > > > > "/home/micha/software/emacs/lisp/emacs-lisp/cl-generic.el") > > > > (require 'gnus-search) > > Would you try out the following patch, please, which I believe fixes the > > bug. > > [...patch...] > That fixed the above case - but unfortunately not the failing method > dispatching for my register stuff after compiling some unrelated random > files. Sorry for not making more substantial progress on this bug. With the patch for bug #54248 in place (the bug you closed), does the following patch do anything for the current bug? diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 9be44a8d5a..fb9f70bd67 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -499,9 +499,10 @@ byte-compile-initial-macro-environment (byte-compile-new-defuns byte-compile-new-defuns)) (setf result - (byte-compile-eval + (byte-run-strip-symbol-positions + (byte-compile-eval (byte-compile-top-level - (byte-compile-preprocess form))))))) + (byte-compile-preprocess form)))))))) (list 'quote result)))) (eval-and-compile . ,(lambda (&rest body) (byte-compile-recurse-toplevel @@ -512,9 +513,10 @@ byte-compile-initial-macro-environment ;; or byte-compile-file-form. (let* ((print-symbols-bare t) ; Possibly redundant binding. (expanded - (macroexpand--all-toplevel - form - macroexpand-all-environment))) + (byte-run-strip-symbol-positions + (macroexpand--all-toplevel + form + macroexpand-all-environment)))) (eval expanded lexical-binding) expanded))))) (with-suppressed-warnings If not, could you possibly come up with a repeatable recipe for reproducing the bug? Or have you done this already? > Michael. -- Alan Mackenzie (Nuremberg, Germany).