From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Doc of keyboard macros Date: Mon, 15 Oct 2018 23:22:14 +0300 Organization: LINKOV.NET Message-ID: <87lg6zck0p.fsf@mail.linkov.net> References: <835zyuc457.fsf@gnu.org> <834leec2s2.fsf@gnu.org> <83va6uakoi.fsf@gnu.org> <8736ty4s4o.fsf@mail.linkov.net> <83k1naadtf.fsf@gnu.org> <871s9i7irm.fsf@fastmail.fm> <87k1ml9bl8.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539639010 2706 195.159.176.226 (15 Oct 2018 21:30:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 21:30:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Joost Kremers , Emacs developers , Stefan Monnier , Eli Zaretskii , mathias.dahl@gmail.com To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 15 23:30:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCARB-0000bb-9l for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2018 23:30:05 +0200 Original-Received: from localhost ([::1]:54959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCATH-0004au-Kr for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2018 17:32:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCARt-0004ak-IP for emacs-devel@gnu.org; Mon, 15 Oct 2018 17:30:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCARr-0004up-PC for emacs-devel@gnu.org; Mon, 15 Oct 2018 17:30:48 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:57374 helo=pdx1-sub0-mail-a75.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCARj-0004dp-Mk; Mon, 15 Oct 2018 17:30:41 -0400 Original-Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 0832E805BA; Mon, 15 Oct 2018 14:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=cFgrO166+vqe60R6Og/6c+szLLo=; b= ZQUh/krr/yJMmlOCBaQFPCGBYs/bC7PdAR/jEJnI62a4QwV16OZ0FOqlXpf8d3sx Uo33vbJ8XG1EARmE+sKaysuA1YalH9D4FsQwWvTO9WW+LlEUJIZsmZiN26OiMihF /2K1zDHAqSGLtynyjB9cmC/k73QMuEUWFIi7MR+CtnI= Original-Received: from localhost.linkov.net (m91-129-104-210.cust.tele2.ee [91.129.104.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id A6B74805B6; Mon, 15 Oct 2018 14:30:23 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a75 In-Reply-To: (Yuri Khan's message of "Sun, 14 Oct 2018 21:33:51 +0700") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrvdelgdduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuffhomhgrihhnpehinhhvihhsihgslhgvqdhishhlrghnugdrnhgvthenucfkphepledurdduvdelrddutdegrddvuddtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtgedrvddutddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeihuhhrihhvkhhhrghnsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.90.62.162 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230403 Archived-At: > M-F7 (in dired-mode-map): grep (from Norton Commander) Speaking of *Commanders, here are more-less directly corresponding commands: (define-key dired-mode-map [f3] 'dired-view-file) (define-key dired-mode-map [f4] 'dired-find-file) (define-key dired-mode-map [f5] 'dired-do-copy) (define-key dired-mode-map [f6] 'dired-do-rename) (define-key dired-mode-map [f7] 'dired-create-directory) (define-key dired-mode-map [f8] 'dired-do-delete) (define-key dired-mode-map [f9] 'tmm-menubar) (define-key dired-mode-map [f10] 'quit-window) (mapc (lambda (elt) (define-key dired-mode-map (car elt) `(lambda () (interactive) (dired-sort-other (concat dired-listing-switches ,(cadr elt)))))) '(([(control f3)] "" "by name") ([(control f4)] " -X" "by extension") ([(control f5)] " -t" "by time") ([(control f6)] " -S" "by size") ([(control shift f3)] " -r" "by reverse name") ([(control shift f4)] " -rX" "by reverse extension") ([(control shift f5)] " -rt" "by reverse time") ([(control shift f6)] " -rS" "by reverse size"))) (define-key dired-mode-map [insert] 'dired-mark) (define-key dired-mode-map [kp-add] 'dired-mark-files-regexp) (define-key dired-mode-map [kp-multiply] 'dired-toggle-marks) (define-key dired-mode-map [(meta f7)] 'rgrep) (define-key dired-mode-map [(shift control ?u)] 'window-swap-states) (define-key dired-mode-map [(shift f5)] 'dired-du-count-sizes) PS: dired-du-count-sizes from bug#22829 might need caching like in http://invisible-island.net/ded/ded.html#dtree_caching