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#36735: 25.1; gnus-topic-mode clobbers gnus-group-change-level-function Date: Fri, 26 Jul 2019 14:36:05 -0700 Message-ID: <87zhl0bhru.fsf@ericabrahamsen.net> References: <87d0i5pk13.fsf@dick.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29710"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 36735@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 23:37:51 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 1hr7uR-0007be-GM for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 23:37:51 +0200 Original-Received: from localhost ([::1]:43364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr7uQ-0001t9-3V for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 17:37:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48414) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr7uN-0001rE-0r for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 17:37:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr7u1-00079w-FJ for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 17:37:32 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr7te-00072Q-61 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 17:37:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hr7te-0006oP-1F for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 17:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 21:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36735 X-GNU-PR-Package: emacs Original-Received: via spool by 36735-submit@debbugs.gnu.org id=B36735.156417697626121 (code B ref 36735); Fri, 26 Jul 2019 21:37:01 +0000 Original-Received: (at 36735) by debbugs.gnu.org; 26 Jul 2019 21:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:43431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr7st-0006nE-W8 for submit@debbugs.gnu.org; Fri, 26 Jul 2019 17:36:16 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:33152 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr7ss-0006mv-92; Fri, 26 Jul 2019 17:36:15 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id A0C71FA099; Fri, 26 Jul 2019 21:36:06 +0000 (UTC) In-Reply-To: <87d0i5pk13.fsf@dick.i-did-not-set--mail-host-address--so-tickle-me> (dick's message of "Fri, 19 Jul 2019 21:33:12 -0400") 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:163817 Archived-At: merge 36735 36736 36737 quit dick writes: > emacs -Q --batch -l gnus --eval "(setq gnus-init-inhibit t)" --eval "(setq gnus-current-select-method t)" --eval "(setq gnus-batch-mode t)" --eval "(custom-set-variables '(gnus-startup-file \"/dev/null\") '(gnus-read-newsrc-file nil) '(gnus-select-method (quote (nnnil))) '(gnus-group-change-level-function (lambda (&rest args) (setq foo t))) '(gnus-always-read-dribble-file t) '(gnus-use-dribble-file nil))" --eval "(gnus nil t nil)" --eval "(setq foo nil)" --eval "(gnus-topic-mode)" --eval "(funcall gnus-group-change-level-function \"dummy\" 3 9)" --eval "(cl-assert foo)" You'll probably need to provide a little more background here before anyone can help you. I understand that you want Gnus' topic mode to behave differently than it does, but the whole thing has its own logic, and changing one bit of that general logic to serve a particular use-case that you haven't really explained isn't going to motivate anyone to apply your patch. Not to mention that the patch stands a good chance of breaking other people's customizations. I previously suggested you use the gnus-topic-mode-hook to achieve what you want -- did you try that?