From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Perry Newsgroups: gmane.emacs.bugs Subject: bug#52384: 26.3; dired buffer navigation tweak Date: Thu, 9 Dec 2021 00:39:39 +0000 (UTC) Message-ID: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2_76479670.1639010379685" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2003"; mail-complaints-to="usenet@ciao.gmane.io" To: 52384@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 09 02:00:23 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 1mv7nJ-0000Et-0c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 02:00:21 +0100 Original-Received: from localhost ([::1]:36798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv7nH-0007xX-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 20:00:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv7n0-0007xC-Ln for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 20:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv7n0-0000vY-Du for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 20:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv7n0-00009J-8p for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 20:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Perry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2021 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52384 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1639011598530 (code B ref -1); Thu, 09 Dec 2021 01:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2021 00:59:58 +0000 Original-Received: from localhost ([127.0.0.1]:41936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv7mv-00008U-Jf for submit@debbugs.gnu.org; Wed, 08 Dec 2021 19:59:58 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv7TN-00086q-BL for submit@debbugs.gnu.org; Wed, 08 Dec 2021 19:39:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv7TM-0001K2-QR for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 19:39:44 -0500 Original-Received: from relay031.a.hostedemail.com ([64.99.140.31]:8383 helo=relay.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv7TL-0006dR-4o for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 19:39:44 -0500 Original-Received: from omf04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7911C204E2 for ; Thu, 9 Dec 2021 00:39:41 +0000 (UTC) Original-Received: from [HIDDEN] (Authenticated sender: amperry@provide.net) by omf04.hostedemail.com (Postfix) with ESMTPA id F176A2002E for ; Thu, 9 Dec 2021 00:39:40 +0000 (UTC) X-Correlation-ID: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: F176A2002E X-Stat-Signature: iirmq159bktja7oydpkgwu3tmhb1p3u7 X-Session-Marker: 616D70657272794070726F766964652E6E6574 X-Session-ID: U2FsdGVkX1+fAonRmZrl9bam+ZjIPE2S8Q/oY0dNpak= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=provide.net; h=date:from:to:message-id:subject:mime-version:content-type; s=dkim1; bh=fVjmUhKXAHDiIYOmLx6+HObtHRvwhkowkvj4RAaLic4=; b=hBbpa1IvIE4GCLJz1T3B8UKMm1SlZNyGd67ccvaDFk4DYoKqWQLLfBsMR/DYfEkSL9L+s2DEPcfsYY7FIOgMm96s2vOEFgIZd1y1VM986crUtM5ePVSMCJTwrWmUPHnwmg8WSzjiMdPU88wCw4DknbMBEJ44niax9jghUVgP3Eo= X-HE-Tag: 1639010380-311719 Received-SPF: pass client-ip=64.99.140.31; envelope-from=amperry@provide.net; helo=relay.hostedemail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 08 Dec 2021 19:59:56 -0500 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:221968 Archived-At: ------=_Part_2_76479670.1639010379685 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, When visiting a directory in dired-mode, you get not only a list of content= s, but also a two-line header ('/path/to/directory' and 'total used ...') and a trailing blank line. Those are a nuisance when navigating using `M-<` and `M->'. Can I suggest the following become standard? (with-eval-after-load "dired" =C2=A0 (define-key dired-mode-map (kbd "M-<") =C2=A0 =C2=A0 (lambda () (interactive) (beginning-of-buffer) (next-line 2))= ) =C2=A0 (define-key dired-mode-map (kbd "M->") =C2=A0 =C2=A0 (lambda () (interactive) (end-of-buffer) (previous-line 1)))) It's truly a small issue, but it's an irritation that multiplies over time. Thanks for your consideration. Cheers, A.M. Perry ------=_Part_2_76479670.1639010379685 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello,

When visiting a directory in dired-mode, you get not only a list of contents,
but also a two-line header ('/path/to/directory' and 'total used ...')
and a trailing blank line. Those are a nuisance when navigating using
`M-<` and `M->'.

Can I suggest the following become standard?

(with-eval-after-load "dired"
  (define-key dired-mode-map (kbd "M-<")
    (lambda () (interactive) (beginning-of-buffer) (next-line 2)))
  (define-key dired-mode-map (kbd "M->")
    (lambda () (interactive) (end-of-buffer) (previous-line 1))))

It's truly a small issue, but it's an irritation that multiplies over time.

Thanks for your consideration.

Cheers,
A.M. Perry
------=_Part_2_76479670.1639010379685--