From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52384: 26.3; dired buffer navigation tweak Date: Fri, 10 Dec 2021 13:00:12 +0100 Message-ID: <87ee6kzn3n.fsf@gnus.org> References: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36209"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52384@debbugs.gnu.org To: Michael Perry Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 10 13:01:14 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 1mveaP-0009FT-Ou for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Dec 2021 13:01:13 +0100 Original-Received: from localhost ([::1]:50188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mveaO-0004mL-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Dec 2021 07:01:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mveaE-0004kL-Qm for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 07:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mveaE-0008Hn-Hg for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 07:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mveaE-0005mO-EF for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2021 07:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Dec 2021 12:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52384 X-GNU-PR-Package: emacs Original-Received: via spool by 52384-submit@debbugs.gnu.org id=B52384.163913762620078 (code B ref 52384); Fri, 10 Dec 2021 12:01:02 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 10 Dec 2021 12:00:26 +0000 Original-Received: from localhost ([127.0.0.1]:45747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mveZd-0005DY-Rw for submit@debbugs.gnu.org; Fri, 10 Dec 2021 07:00:26 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mveZb-00055z-Vm for 52384@debbugs.gnu.org; Fri, 10 Dec 2021 07:00:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XqipijDGSZowZlqA45nnf9zgIgy5Ucyfjerai7pXafU=; b=OgnVR5Dpav05wfG2GzV9Xre2Y8 YkKTMp+pYT+hU6yoCnz2wl3z8ZzirN4V5sJJAIlgZwtLvQrlnW3tJztjxz1NlWH0dt0hS+wPy5KsE fe6367R33r5UKy6iXv6/0YxyoNKBfmSTnUsnl+2WagKP1YMnXrNeul01ArVmPvAx3ra0=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mveZS-0002sI-UK; Fri, 10 Dec 2021 13:00:17 +0100 X-Now-Playing: The Smiths's _Hatful Of Hollow_: "This Charming Man" In-Reply-To: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> (Michael Perry's message of "Thu, 9 Dec 2021 00:39:39 +0000 (UTC)") 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:222053 Archived-At: Michael Perry writes: > 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 ...') (The second line has been removed in Emacs 29, and the first line has been made useful in Emacs 28 (you can now click on the segments).) > 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. I don't think we should do something like this in Dired buffers (or anywhere else, for that matter). I want commands like `M-<' to be predictable across modes, and I certainly don't want `M->' to take me to the start of the last line. (What if I want to copy the region to the clipboard, for instance?) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no