GNU bug report logs - #12476
no startup hook corresponding to gnus-suspend-gnus-hook

Previous Next

Package: gnus;

Reported by: sds <at> gnu.org

Date: Wed, 19 Sep 2012 18:18:01 UTC

Severity: normal

Tags: wontfix

Found in version 5.13

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12476 in the body.
You can then email your comments to 12476 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bugs <at> gnus.org:
bug#12476; Package gnus. (Wed, 19 Sep 2012 18:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to sds <at> gnu.org:
New bug report received and forwarded. Copy sent to bugs <at> gnus.org. (Wed, 19 Sep 2012 18:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam Steingold <sds <at> gnu.org>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: no startup hook corresponding to gnus-suspend-gnus-hook
Date: Wed, 19 Sep 2012 14:16:20 -0400
Gnus v5.13
GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2012-09-14 on t520sds

I use these settings to ensure that gnus saves and restores the window
configuration:
--8<---------------cut here---------------start------------->8---
(defvar sds-window-configuration)
(defun sds-window-configuration-save ()
  (setq sds-window-configuration (current-window-configuration)))
(defun sds-window-configuration-restore ()
  (set-window-configuration sds-window-configuration))
(add-hook 'gnus-after-exiting-gnus-hook 'sds-window-configuration-restore)
(add-hook 'gnus-suspend-gnus-hook 'sds-window-configuration-restore)
(add-hook 'gnus-before-startup-hook 'sds-window-configuration-save)
--8<---------------cut here---------------end--------------->8---
alas, `gnus-before-startup-hook' is not run by `gnus' if it is already
alive, i.e., after `gnus-group-suspend'.
this means that when I syspend gnus, I get the window configuration
which was saved when I first started `gnus'.

I wish there were a better way to save-restore the window configuration,
than redefining gnus:
--8<---------------cut here---------------start------------->8---
(defun sds-gnus (&rest args)
  (let ((wc (current-window-configuration)))
    (ignore-errors (apply #'gnus args))
    (set-window-configuration wc)))
--8<---------------cut here---------------end--------------->8---

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://truepeace.org http://dhimmi.com
http://thereligionofpeace.com http://camera.org http://openvotingconsortium.org
Booze is the answer. I can't remember the question.




Information forwarded to bugs <at> gnus.org:
bug#12476; Package gnus. (Tue, 25 Dec 2012 13:31:01 GMT) Full text and rfc822 format available.

Message #8 received at 12476 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sam Steingold <sds <at> gnu.org>
Cc: bugs <at> gnus.org, 12476 <at> debbugs.gnu.org
Subject: Re: bug#12476: no startup hook corresponding to gnus-suspend-gnus-hook
Date: Tue, 25 Dec 2012 14:29:47 +0100
Sam Steingold <sds <at> gnu.org> writes:

> I wish there were a better way to save-restore the window configuration,
> than redefining gnus:
> (defun sds-gnus (&rest args)
>   (let ((wc (current-window-configuration)))
>     (ignore-errors (apply #'gnus args))
>     (set-window-configuration wc)))

I think that's a reasonable thing to do if this is what you want to do.
:-)  So I don't think this is a bug...

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 25 Dec 2012 13:31:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12476 <at> debbugs.gnu.org and sds <at> gnu.org Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 25 Dec 2012 13:31:02 GMT) Full text and rfc822 format available.

Information forwarded to bugs <at> gnus.org:
bug#12476; Package gnus. (Wed, 26 Dec 2012 15:07:02 GMT) Full text and rfc822 format available.

Message #15 received at 12476 <at> debbugs.gnu.org (full text, mbox):

From: Sam Steingold <sds <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: bugs <at> gnus.org, 12476 <at> debbugs.gnu.org
Subject: Re: bug#12476: no startup hook corresponding to gnus-suspend-gnus-hook
Date: Wed, 26 Dec 2012 10:05:57 -0500
> * Lars Ingebrigtsen <ynefv <at> tahf.bet> [2012-12-25 14:29:47 +0100]:
>
> Sam Steingold <sds <at> gnu.org> writes:
>
>> I wish there were a better way to save-restore the window configuration,
>> than redefining gnus:
>> (defun sds-gnus (&rest args)
>>   (let ((wc (current-window-configuration)))
>>     (ignore-errors (apply #'gnus args))
>>     (set-window-configuration wc)))
>
> I think that's a reasonable thing to do if this is what you want to do.
> :-)  So I don't think this is a bug...

Alas, that did _not_ work because of the other issues I reported (resume
hooks were not called &c).
I now fixed this in the emacs trunk by adding a few hooks.
I hope it will propagate in the gnus proper.
Oh, and I should have marked my patches as fixing this bug :-(

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://americancensorship.org http://mideasttruth.com
http://openvotingconsortium.org http://dhimmi.com http://honestreporting.com
He who laughs last thinks slowest.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Jan 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.