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: Friendlier dired experience [CODE INCLUDED] Date: Sun, 8 Nov 2020 04:36:04 -0500 Message-ID: <20201108093604.rb3lpyqw4mvmwtdt@E15-2016.optimum.net> References: <20201104183228.xf7w4yf3fw3427y5@E15-2016.optimum.net> <20201105092232.fk4r5dexnay3eyln@E15-2016.optimum.net> <20201105143800.7vt5jfr4gg2wigyb@E15-2016.optimum.net> <20201106091525.mzkxrssm7o43jvff@E15-2016.optimum.net> 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="3800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: Stefan Monnier , Arthur Miller , Emacs-Devel List To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 08 10:40:43 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 1kbhBj-0000u4-8Y for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Nov 2020 10:40:43 +0100 Original-Received: from localhost ([::1]:45234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbhBh-0002L7-PU for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Nov 2020 04:40:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbh7W-0007Ij-BT for emacs-devel@gnu.org; Sun, 08 Nov 2020 04:36:22 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:36277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbh7T-0006pd-NJ for emacs-devel@gnu.org; Sun, 08 Nov 2020 04:36:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604828167; bh=n6HJli/CltoODbXruu39ddtkz9jPRLWMWwxBKeP7rlQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=WjgSmeRxoAeukm86YJUKWyjdBA6otCUbCR0cNAnrfuRglDoYhWnMq06WBvPs9bA8O T4H1ZCS02Ggd27EdhE9J9BmvWxg8NHe1B/0uaY7LeSzLaD/wmsZRbLOOohY9jLHRJd ReNr8+FbuPohE1DhE2R7zRfxQnhTKBYq+RJ0dVIQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([70.19.86.82]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MuDXz-1kKqBm1YcP-00uXJ9; Sun, 08 Nov 2020 10:36:07 +0100 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:ry5mXwU9P7KetI1rz/YqPnIlCJLd2PyxrrMf3f6wGQ8nsOSSASJ E7UIEYQzrPAsTgm+U1yMbGtIaPu16culDMU+iCz2eY3ao/OZdpe5uRCTlsDTt2+fCaw3xtt p0AYEr+L3Uq4ItxjPa3WSM8JC4kKTDE1T8wwky2xrW62ofwy5anzBo8DRf9L1gkCG/GElX9 UuiyRCOshAutFoQa8H+Pg== X-UI-Out-Filterresults: notjunk:1;V03:K0:i4Z+wx5dHv8=:xY+76LJwma9TEHe8kRCGis hjT9q/jOmwFiMVfnYjhnpt4SPRIvSC33TuEJNxRw3ND3U1wCgCDXlhG+k8ui5EQYcvMLqtvCL r85aGqCapp1KgzZnuAqNpv+pxSQfHAeaZEHuiTo0RCwRlA2IpxHeYXy2WG6uxNRAmgrdfVuSn +zO7OWlw5aqRMd/+DJoJDkoZLP9Yeydu1yyY2TwCNnBzdmhPCwaE9v1514uKrzg1c3m1IgsZx VmTHeee0J7u3cRj7eSkxO1gpNG1xobfs5bZE2pxK3fn1gohHxXhFFJbYpzBDNn3tCFyVvYi3Q KLMfUP9x83S1ObnMnwzyGMdNaZGIQYOVHd2EuI+Ae+sLwN3+9tqCvIxfS6QUeMOJeZZc3hnoh FekT7s+w58bNU2QfXPluTuclRLQn1qRd2AocrX/NMSFmMSwBFMSQZK0hd23yYmv0gsRW+pwBT pp6NiFVdyis1HBSErHKevO/AwPI1ueKBqBV0efv4RRKelTCfCT4J+7F+SU1Rud+QP3cbd3Jgp LCjrqKwv8SyZSLIbpxfOTl3CG68ZR7rdObjgok85JFdrTL1TrYDf/qb17ReCe/wq/athhoq3S GdhPibMeKE+0OsLL4l9PGgi+p8Yrl7NT0O/d6VOxWYmGRJxxS8hxjoxet9hblYvM27lAdW8e4 FNcvj/OCbUdXT/RbSz5xysMlhQoOcL4wNSKEQl5nWW/YVtPtiGSrgzlJ3abj1AD2p61daPUjd cmJWmfhkpfHhaHoVUYDoMPAGikCvL/rpGbGlp9lYp+ArPEm2JO5OuimNKp9Xh2aEr8BkqLpK Received-SPF: pass client-ip=212.227.15.15; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 04:36:16 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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:258887 Archived-At: On 2020-11-06 08:28, Drew Adams wrote: > > So, I suppose a way to 'hijack' the bookmark process would be to > > advise around function bookmark-default-handler checking for the > > current buffer's major-mode, the state of variable diredc-mode and > > whether the bookmark is a directory. The ugly part of the 'hijack' > > is keeping the code of the advice in sync with the underlying > > function. > > Are you looking for a way to have your own bookmark-handling code do > what you want with a vanilla bookmark for a directory? Is that it? Don't pin this on me, Drew. I was just responding to Stefan Monnier's proposal. > Why not instead define your own bookmark handler for directory > bookmarks? That's what bookmark handlers are for. Because a specific bookmark's handler is hard-coded into the data-structure when added, so which ever function creates the bookmark, be it ye olde function bookmark-set or the new kid diredc, that's the function that defines the handler to be used. > FWIW - > > In Bookmark+ Dired buffers have their own bookmark handler. That's very sensible and should be what function bookmark-set does instead of what it does now which is run through a set of conditionals. > Bookmarking a Dired buffer records not just the directory location > but also its `ls' switches, which files are marked, which subdirs are > inserted, and which (sub)dirs are hidden. Jumping to a Dired bookmark > restores all of that. That's why I never end up actually ever using your extensions, Drew. I think they're great and I enjoy reading them, but it always ends up intimidating me with a sense of overkill. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0