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:35:53 -0700 Message-ID: <87pnllvera.fsf@ericabrahamsen.net> References: <87pnlmen9q.fsf@web.de> <87zhkqw965.fsf@ericabrahamsen.net> <87zhkpq0az.fsf@web.de> <87ef21wzrm.fsf@ericabrahamsen.net> <87r261pwi6.fsf@web.de> <87tvaxvfxc.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156718"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Lars Ingebrigtsen 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:37:18 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 1hu6Ob-000ebN-AW for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 04:37:17 +0200 Original-Received: from localhost ([::1]:42656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu6OZ-0007yi-Sa for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 22:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38625) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu6ON-0007yb-JE for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hu6OM-0007Fs-KR for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hu6OM-0007Fo-Hc for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hu6OM-00033d-DN for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:37: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:37: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.156488617011688 (code B ref -1); Sun, 04 Aug 2019 02:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Aug 2019 02:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:60296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hu6NW-00032S-7U for submit@debbugs.gnu.org; Sat, 03 Aug 2019 22:36:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hu6NV-00032L-4f for submit@debbugs.gnu.org; Sat, 03 Aug 2019 22:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38566) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hu6NU-0007nY-2t for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hu6NS-0006tg-86 for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:36:08 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:32886 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hu6NS-0006rg-1T for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 22:36:06 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hu6NO-000dFe-Uz for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 04:36:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:UFdpZB/tURUlpu12d0obFyM4OlQ= 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:164523 Archived-At: Eric Abrahamsen writes: > 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? Oh I see, I set both pieces of the puzzle next to each other, but didn't connect them. If you didn't start Gnus first, your format specs were still the default and didn't contain any registry-specific stuff. Lars, `gnus-clear-system' explicitly refrains from unsetting `gnus-format-specs'. So if you start and stop Gnus, then start debbugs-gnu, the user's customized format specs are still in place, and may end up calling functions that depend on ~/.gnus.el setup stuff, and raising errors. Could `gnus-clear-system' also clear format specs? Obviously that omission went in there for a reason, but I don't know what. Alternately, could debbugs reset the specs when it starts?