GNU bug report logs - #25526
26.0.50; Gnus sometimes doesn't show article header fully

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Wed, 25 Jan 2017 08:11:01 UTC

Severity: minor

Found in version 26.0.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


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

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 25526 <at> debbugs.gnu.org
Subject: Re: bug#25526: 26.0.50;
 Gnus sometimes doesn't show article header fully
Date: Thu, 12 Apr 2018 14:52:43 +0900
On Thu, 12 Apr 2018 00:34:06 +0200, Lars Ingebrigtsen wrote:
> Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

>> I was sometimes annoyed with this problem, but I have found
>> neither a cause of it nor a solution so far.  But this is a
>> workaround I found today:

>> (add-hook
>>  'gnus-article-prepare-hook
>>  (lambda ()
>>    (save-selected-window
>>      (select-window (get-buffer-window gnus-article-buffer))
>>      (goto-char (point-min)))))

Oh, I totally forgot the problem bacause of having set this hook,
but by removing the hook I confirmed it still exists.  Thank you
for following this up.

> Did you try to do the same thing, only just putting it into the Gnus
> source code?  :-)  It kinda looks like the right thing to do, but I
> don't know anymore what with the hooks and stuff for dedicated windows
> and stuff...

I tried this,

--- gnus-art.el~	2018-03-25 21:34:24.056766300 +0000
+++ gnus-art.el	2018-04-12 05:50:51.190490800 +0000
@@ -4699,2 +4699,6 @@
 	    (gnus-configure-windows 'article)
+	    ;; Make sure the article begins with the top of the header.
+	    (save-selected-window
+	      (select-window (get-buffer-window gnus-article-buffer))
+	      (goto-char (point-min)))
 	    (gnus-run-hooks 'gnus-article-prepare-hook)

and verified it does the trick, too.  The point is that to select
the article window while performing (goto-char (point-min)).

Regards,




This bug report was last modified 7 years and 119 days ago.

Previous Next


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