From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.devel Subject: Re: 26.1: calc-mode header line [PATCH] Date: Mon, 7 Sep 2020 17:11:45 -0400 Message-ID: <20200907211145.4hqt7izudjgokfys@E15-2016.optimum.net> References: <20200831184445.jy4yyfqf3gr5llmk@E15-2016.optimum.net> <83tuwcpv79.fsf@gnu.org> <20200906023516.qreesq6u3mjzwzna@E15-2016.optimum.net> <83sgbvng5l.fsf@gnu.org> <20200906184529.srcmx42ircaeueqv@E15-2016.optimum.net> <87sgbt7hte.fsf@gnus.org> <20200907180138.4tz46tv7tppb5cib@E15-2016.optimum.net> <87d02xcp2i.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30385"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 07 23:15:45 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kFOUL-0007lK-2p for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Sep 2020 23:15:45 +0200 Original-Received: from localhost ([::1]:48554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFOUJ-0002iR-Jq for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Sep 2020 17:15:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFOQg-0000hv-Mm for emacs-devel@gnu.org; Mon, 07 Sep 2020 17:11:58 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:45397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFOQZ-0008T5-ER; Mon, 07 Sep 2020 17:11:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599513108; bh=921uJkd4DxmgYEKx6+cZymK9z8ARAWb60s0ibmO7rio=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=W/tVkvy8GOP/UyEWWWUEJgR5fcL+HE6T9Dhb6rQgPFEIrSElu3k2sgRpxkak1OdbU QcIEQvthVdlgv1YYR/GMm5GU0GCEE5MZkQDiUwJ5NMySLDnhAN4VCmZ58zMOmolRD7 BO9nYribXRfSitexPkBxDpWCn45pkh1nuBdqVu3o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N8XU1-1kbaBJ0xX7-014Sr5; Mon, 07 Sep 2020 23:11:48 +0200 Content-Disposition: inline In-Reply-To: <87d02xcp2i.fsf@gnus.org> X-Provags-ID: V03:K1:mQEWDlQDmb8g9X5GyBzInOVigA4SZRXfrrLfPgOZK6T8yo81uHx QwWkVQRyn0Ts8YHJb5tUr1jtO5QsAmgpShjcOPX9rXBtb+eBFSNM0GheFaDBrpykJgGRMxB BPMbytngfFlXztD92a4e1/qpE6koOgeQpKXXCyjbJTRkE9rxM0yJxUE/mJGPKjLwpgjAwLd dGF3gLGgYAWhs0GIJAyFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:JrMJhdftGgg=:U0c5Eawzw/BjlFVDqscV/q RIi1i1WgFSXjdOV0Max51ZVVFMmsKw0pkBfYUWqvbW5TSTG3ndoYOZhec0+Z5BhasBUNrQaM3 ipyEzahNXYoJm7pgs5ExUNu0qmW4TgHeFgXogfWA/jYzi1cmSfR50x5VHMnqZN0WaK86KZ+R6 XmmueQLt51Y7idz5XkHyVV1FlLTelkLlaT4Gayh4lZOzubM2mTW63UT2SdoMn9Q1kUyO0Xx+s atWu/1Z4lXiaKppdVzKrVRZEucjZ1H5kQn3JcluKsc5eYVhYSJMYY0HWc7mYUurOArfPjooJd GI+cIcaxkf53aZb1ExjKqqEpzQDMopQdZpW2VvJMkjNZ0t0QeFZrVCaQPv/LeXSYTQxINZzzb wzzonFoPdrqeV3nyXkV1CkUI/gzloud8EseTFRysbVYr80b7YFt3nbAtz8SMLBWfJNaCQA6sc cjFMIYr3Pn5SoG6nAeh0EW1LIi+LwCvpsJNjjs7A5p73DihKer/Js6fzoaDak1l7jrGUiqupb arCjfHzOr6+PuZsY6+KiImGgHHY70AXTthjjS5tJcewek0ADzfLKUHYKEQM+AqeWSvQS3OwTy F0ffks7nAp8NMkMKX6pf6woULRpnCuHy/KStssxBlYavltUWky4iddL8Df6sFy7isWU6MrKYv xmo1Z3rwK7SCiGkizcavqiWOavQvaaKjxfuXnI+OTnAUIZJuGIPctlWLANxT8M7UBD/TlwAv8 1KJ/T6xGYmhBL/Qc+uUymk9PGdqQMrRoNe1km7LJpAGTNDxRaufNAAEW91dXAlUL8Zw6BVUo Received-SPF: pass client-ip=212.227.17.21; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 17:11:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254681 Archived-At: On 2020-09-07 22:24, Lars Ingebrigtsen wrote: > Boruch Baum writes: > > > Off-topic: I have several private extensions to dired that are ready f= or ... > > 1) display change - quickly change the 'ls' switches for a dired buff= er > > from among entries in an alist. The changing can be incremental in > > the list or prompt the user based upon a useful plain-text > > description. Just additional code. No change to current code. > > Hm... sounds nice, but what's the use case? There are as many as there are combinations of 'ls' switches. There just isn't enough room on a screen to show everything and most of the time one doesn't need or want that much information, so one 'display' may omit user/group, another show them as uid/gid, another show SElinux security context, another show (or not) permissions, another have a different date/time format, etc. > > 2) history navigation - have each chain of dired buffers track where > > they've been and allow navigation backward and forward within that > > history. This does make a one-line change to a single current dire= d > > function. It adds several navigation functions, including a form o= f > > visit parent directory that adds a prefix argument to go up n leve= ls > > in your current directory tree. > > Isn't `C-x C-f M-DEL' a few times easier to remember? I have no idea what that keybinding is. With my extension, I use simple keybindings similar to those of many file managers: C- and C- for history navigation, C- for parent. Additionally, I bind '/' for some more general navigation. > > > 3) pass dired variables to a shell - for any emacs shell or terminal > > emulator, launch it from dired, and pass the current directory, > > current file at point, current tagged files ... for both the curre= nt > > dired buffer and an optional one other visible dired buffer on the > > same frame ($d1 $d2 $f1 $f2 $t1 $t2). For this, I still need to > > polish how the list of tagged files are handled (quoting, bash/zsh > > array variables versus POSIX/sh ). > > Hm. What do you use that for? I used to use (still do sometimes) Midnight Commander, which passes a form of those variables to its shell. They're very convenient for performi= ng command line operations on those files. > > 4) Recover a 'borked' dired session, useful if you've somehow > > accumulated n buffers / windows / frames and want to restore a bas= ic > > setup. > > I'm not sure what a "dired session" is? I just have a bunch of dired > buffers open, but I don't consider that a "session"... OK. So, I just called it a session, no big deal. My background is that I use S- as a dired launcher: it creates a frame named 'dired', and gives it two side-by-side dired buffers/windows. From that frame, the same keybinding toggles bag to my editor or whatever other frame. So it seems like a session to me. > > > 5) Fully exit dired. Just kills all dired buffers everywhere. > > That sounds very specialised. But I've often wanted a command that > would kill all buffers that have names that match a regexp, for > instance. If you want it, you'll see it was simple to code. IIRC, just walk the buffer list and kill based upon your compare criteria. It could be generalized, but I've only ever found a need for it for dired. 6) (or is it seven?) I just remembered: Another extension that's mature and ready for the wild is dired quick preview feature almost identical in operation to what exists in Midnight Commander with its 'C-x q'. As you move point in dired in a file's line, it automatically opens a buffer in the next window (emacs read-only "view-mode") after killing any other preview buffer opened previously. It's a very quick way to scan a files first page of contents, and you can use to quickly navigate to/from the preview buffer to browse further. I use that a lot; surprised I forgot to mention it in my original screed. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0