From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#36903: 27.0.50; gnus registry vs. debbugs Date: Sat, 03 Aug 2019 19:10:39 -0700 Message-ID: <87tvaxvfxc.fsf@ericabrahamsen.net> References: <87pnlmen9q.fsf@web.de> <87zhkqw965.fsf@ericabrahamsen.net> <87zhkpq0az.fsf@web.de> <87ef21wzrm.fsf@ericabrahamsen.net> <87r261pwi6.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58193"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 36903@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 04:11:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hu5zJ-000Ezj-Gq for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 04:11:09 +0200 Original-Received: from localhost ([::1]:42582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu5zI-0005Fd-AO for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 22:11:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35338) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu5zD-0005FJ-KE for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hu5zC-0007H1-Mm for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hu5zC-0007Gx-K7 for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hu5zC-0002Oa-Cv for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:11:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pnlmen9q.fsf@web.de> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2019 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36903 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15648846569197 (code B ref -1); Sun, 04 Aug 2019 02:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Aug 2019 02:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:60271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hu5z6-0002OG-1c for submit@debbugs.gnu.org; Sat, 03 Aug 2019 22:10:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hu5z4-0002O8-TM for submit@debbugs.gnu.org; Sat, 03 Aug 2019 22:10:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35306) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu5z3-0005F4-Uy for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:10:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hu5z2-0007Dr-Un for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:10:53 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:50326 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hu5z2-0007DX-OO for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:10:52 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hu5yy-000Edk-U3 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:10:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:I35FVqhEk8XM2A6Ie0YXkWRQV3g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164520 Archived-At: Michael Heerdegen writes: > Eric Abrahamsen writes: > >> Okay, so `gnus-registry-clear' should probably also run >> `gnus-registry-unload-hook'. You're not expecting the registry to be >> doing it's thing when you've shut down Gnus, but are using debbugs, >> right? > > Yes. > > But I didn't say that I would not expect the registry to work with > debbugs. It would be good if it did - but I don't know if it's > technically possible. Sounds like debbugs is either too Gnus, or not Gnus enough... >> Would you try this definition: >> >> (defun gnus-registry-clear () >> "Clear the registry." >> (setq gnus-registry-db nil) >> (gnus-registry-unload-hook)) > > Well, that fixes - only one error. I still get an error from > > (defalias 'gnus-user-format-function-M > 'gnus-registry-article-marks-to-chars) But this should have raised an error even if you hadn't started Gnus prior to using debbugs, right? > so I have to redefine that one, too. And even after doing this I get an > error related to Gnorb: I suppose the Gnorb stuff can check if the registry is initialized before accessing it, but it all just seems a bit fragile. Debbugs has its own summary minor mode, it seems like that could check `gnus-alive-p' and maybe blank out some hooks if it isn't. If Gnus isn't alive, the user's gnus.el file isn't in effect, so nearly all customizations are inactive. Weirdly, `gnus-clear-system' makes a point of *not* clearing `gnus-format-specs', which is what is giving you trouble here. Otherwise, I could try to solve the registry double-loading problem some other way, and not clear the registry on Gnus shutdown. But it seems like bad practice to have debbugs depend on Gnus not cleaning up after itself. Can't think of anything else at the moment... Eric