unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups
@ 2021-02-01  5:48 積丹尼 Dan Jacobson
  2021-02-01  9:03 ` Lars Ingebrigtsen
  2021-03-01  5:48 ` bug#46225: Workaround found 積丹尼 Dan Jacobson
  0 siblings, 2 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-02-01  5:48 UTC (permalink / raw)
  To: 46225

When we enter *Summary nndraft:drafts* the cursor is on the first article.
When we enter *Summary nnml:mail.misc* the cursor is on the last  article.
Nothing in (info "(gnus) Group Parameters") can change this.

'See (info "(gnus) Sorting the Summary Buffer")' one might say. Alas I
am not talking about sorting. I am talking about which line the cursor
is on when we enter the group.

In (info "(gnus) Various Summary Stuff") there is a
gnus-summary-mode-hook that apparently is our last resort to manually
fix this inconsistency.

My hunch is not many people have a lot of drafts, so never felt bad
about having to page down to see the most recent.

https://www.jidanni.org/comp/configuration/ has my dot files if you need
to check.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups
  2021-02-01  5:48 bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups 積丹尼 Dan Jacobson
@ 2021-02-01  9:03 ` Lars Ingebrigtsen
  2021-02-02 17:33   ` 積丹尼 Dan Jacobson
  2021-03-01  5:48 ` bug#46225: Workaround found 積丹尼 Dan Jacobson
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-01  9:03 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 46225

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> When we enter *Summary nndraft:drafts* the cursor is on the first article.
> When we enter *Summary nnml:mail.misc* the cursor is on the last  article.
> Nothing in (info "(gnus) Group Parameters") can change this.

As the manual says about nndraft groups:


---
What makes this group special is
that you can't tick any articles in it or mark any articles as
read---all articles in the group are permanently unread.
---

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups
  2021-02-01  9:03 ` Lars Ingebrigtsen
@ 2021-02-02 17:33   ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-02-02 17:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 46225

LI> all articles in the group are permanently unread.

Yes, but initial cursor position needs to be not hardwired to that!!

OK, so there are several workarounds:

Here is the effect I want to achieve:

It is just like, with the cursor on the drafts group, doing:

 g			 ;; gnus-group-get-new-news
 <return>		 ;; gnus-group-select-group
 <end>			 ;; end-of-buffer
 q			 ;; gnus-summary-exit
 <return>		 ;; gnus-group-select-group

Now our cursor is nicely centered on the last article, just like in all
our other groups.

OK, there is no drafts related hook. So using one of gnus-*-hook
we need to implant that last article number into gnus' concept of where
we were reading, but only after a gnus-group-get-new-news command, and
only for the drafts group.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46225: Workaround found
  2021-02-01  5:48 bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups 積丹尼 Dan Jacobson
  2021-02-01  9:03 ` Lars Ingebrigtsen
@ 2021-03-01  5:48 ` 積丹尼 Dan Jacobson
  1 sibling, 0 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-03-01  5:48 UTC (permalink / raw)
  To: 46225

#46840 has the workaround.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-01  5:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01  5:48 bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups 積丹尼 Dan Jacobson
2021-02-01  9:03 ` Lars Ingebrigtsen
2021-02-02 17:33   ` 積丹尼 Dan Jacobson
2021-03-01  5:48 ` bug#46225: Workaround found 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).