From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#46225: 27.1; In Drafts cursor is on first article, backwards from other groups Date: Wed, 03 Feb 2021 01:33:04 +0800 Message-ID: <87y2g68je7.5.fsf@jidanni.org> References: <87wnvse3sw.5.fsf@jidanni.org> <87sg6gqhvo.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10037"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46225@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 02 19:30:02 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l70R7-0002Tl-Fj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 19:30:02 +0100 Original-Received: from localhost ([::1]:38172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l70R6-0001xg-HG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 13:30:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l70IQ-0001XI-It for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 13:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l70IQ-0002Or-5u for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 13:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l70IP-0008C2-Ua; Tue, 02 Feb 2021 13:21:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87wnvse3sw.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 02 Feb 2021 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46225 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: notabug Original-Received: via spool by 46225-submit@debbugs.gnu.org id=B46225.161229002831434 (code B ref 46225); Tue, 02 Feb 2021 18:21:01 +0000 Original-Received: (at 46225) by debbugs.gnu.org; 2 Feb 2021 18:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:36170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l70Hr-0008Aw-Rw for submit@debbugs.gnu.org; Tue, 02 Feb 2021 13:20:28 -0500 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:34566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l70Ho-0008Al-A1 for 46225@debbugs.gnu.org; Tue, 02 Feb 2021 13:20:26 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5A66A7031DE; Tue, 2 Feb 2021 18:20:22 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (100-105-161-48.trex.outbound.svc.cluster.local [100.105.161.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EF8A370136E; Tue, 2 Feb 2021 18:20:21 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.48 (trex/6.0.2); Tue, 02 Feb 2021 18:20:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Juvenile-Language: 1dfc48fc571560fe_1612290022202_4037668949 X-MC-Loop-Signature: 1612290022202:1669591148 X-MC-Ingress-Time: 1612290022202 Original-Received: from pdx1-sub0-mail-a9.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTP id A03BB7EFB0; Tue, 2 Feb 2021 10:20:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=ng4B3fC2P1igSLnuTWSnWXc9rhc=; b=eQlGAthmtMncl T8+5c0GXEl2Y21F04akmjfEiORWcVaBTQtAAf2VAEDp+KOCw7kZTS53djyPAhcqN 3t4barUhcx7wHq0SPno/DJuo+8akflEdmDv/KoUA+hVbZkVvmmUpr+BeulmZ2dNf SjXvPqwJ+gMjpsg2wY27a70dgiy+cs= Original-Received: from jidanni.org (114-41-6-10.dynamic-ip.hinet.net [114.41.6.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 1FB977EFAF; Tue, 2 Feb 2021 10:20:20 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a9 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199163 Archived-At: 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 ;; gnus-group-select-group ;; end-of-buffer q ;; gnus-summary-exit ;; 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.