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: Fri, 6 Nov 2020 04:15:25 -0500 Message-ID: <20201106091525.mzkxrssm7o43jvff@E15-2016.optimum.net> References: <20201103104340.q34kqfita55w2u7h@E15-2016.optimum.net> <20201104183228.xf7w4yf3fw3427y5@E15-2016.optimum.net> <20201105092232.fk4r5dexnay3eyln@E15-2016.optimum.net> <20201105143800.7vt5jfr4gg2wigyb@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="20070"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: Arthur Miller , Emacs-Devel List To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 06 10:18:54 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 1kaxtV-00057E-J9 for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 10:18:53 +0100 Original-Received: from localhost ([::1]:47444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaxtU-0007Es-E7 for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 04:18:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaxqO-0006ee-79 for emacs-devel@gnu.org; Fri, 06 Nov 2020 04:15:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:33087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaxqL-0007UU-US for emacs-devel@gnu.org; Fri, 06 Nov 2020 04:15:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604654129; bh=A0Vu851fgOjkRE+XjPozOglM9NDHM5Yy5/TVORRKDPI=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=TnCGhBefwt5hnvNbIpQiZ3fVWOGQSzmOKmnytBJuAmEow/uctrWxT9tynl6z6oUVE 0z8yRIdZB1xAp7DRA5MzxYweOmBy6ImiyITxSQAcyiN+DlT02uugchPapgY+F6gRsS I/D0+BVY5SUpHkOy2YYnasMTAS0F8ZXmMddKibco= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([70.19.86.82]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MWAOW-1kr0g70JHG-00Xfel; Fri, 06 Nov 2020 10:15:29 +0100 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:Wo2XNwyNKFZgSDF4+/kkop3b5vkweMML4wxh1Rg+PG5ahcG7e7L OVjk77VsOgf1XCSDQspDCYrfcBbslbdnm7EIWYwKlYas2gL0af9sRIUNcsYwXduMD69ou4x nBMtvfhEmocWEWbigAEydbzYmP/cgYbxuu3lLFVoL4tce0fseRamqQYVXHINkifecsZsCPi 4/JsW76UUzuPoOv+uFg7Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:CVL9Tzu1H8E=:+aVae0Vxom8MZaBeOaXCZQ IPrLHZ73nWzIb/I8Dm6vZ4sICm0eaFFpxt7ncPe4gB0KUK+OHxht03TqvYdJP2WLEX7dYiert En4ok4khoLaOcSJ6G1sv+2uFzq/wpH1kzIqeDEtiOrhoAdkjT/goUlxyvYejwm9Ded3xeKs5A hBBL7OxF5Q0I7XBI/fB/6n5HsnrjSuFO0gUqS165MsCzp/qwV+ZiZDeualTPS7V6EcFSy/uNW Ar0lWtt709YdtaXMU4Sbkb9DLiXtqQGIfMyzVEg79+fWP1Hq8w8WICUimHi9OuxsOM75Azwl+ nrg7fzg57pkRRoTFkb2eihUo7vpIzlR2a873Fe949U7y1QfB1CnQ0z8lRRvJyKseX7s6Y4fMJ pYXrRWzA31Bbuy0eCItp2LgYahDnlSafP1gnNZl/gcOqZ1AmKAOT8mo5WWqMGvbf5iI750t1e ePtPfnlxXy54xUeEmvH2SgjOFWF97VcHyDoWWZxJOIlKFG0ke+IPg8YASW/fTNgqjfZ+oD7F4 4pj8k/+sBaBCeeWEsl7dkEmyInlRiI8Pgk3puXOGhtFoVxdeEch94v9r2tFjdLhKZGCcFGdlP FNBtD04l/fU69LLfBpc5q3f9F3/n6Cm5C6tObKjdzWmhBdal+2HSQgMVMci57u6GQ+aNLz8Fe 12vy6u8/LUtCEmrt2loVuX0sLPw1VJaI/BJWceZehOXeKEmKdCM4/ZRALRJOsyTWrYkXyUhUa LZoHtCsmNhPdx+Y6/ouDzu75fJS1lR5oLRFMYyCYr9+tGEveEuyZ71JaUygRSmHe/9SqHcXb 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/06 04:15:35 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:258790 Archived-At: On 2020-11-05 10:05, Stefan Monnier wrote: > >> How do you do bookmarks? I just bookmarked a folder with your shortcu= t > >> C-c b a; and the bookmark does not show in bookmarks list. > > diredc-bookmark-* doesn't share the generic emacs bookmark list. The > > consideration was not mix directory locations with locations within > > files. I know that emacs bookmarks works on directories and opens a > > dired buffer for them, but it made no sense to me mix the two forms > > Do you think it could make sense to keep diredc bookmarks in the normal > bookmarks by arranging for the normal "directory bookmarks" to be > "hijacked" by diredc Hmm. I'm looking at the code for bookmarks and the variable bookmark-alist, and what I see is that directory bookmarks have a NIL handler, ie. function bookmark-default-handler, which runs function find-file-noselect, which is directly or indirectly called by "everyone", including diredc. 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. > (i.e. not to open a new dired buffer but to open the dir within > diredc) The diredc interest isn't only in the buffer management; it also needs to maintain the history stack (it's not a simple push/pop, see there) for each new navigation. > when called from diredc? What about the case of diredc-mode being enabled, but the current-frame isn't the diredc frame (ie. the user is not currently using dired)? You wouldn't want to jump to that frame and open the directory in one of its windows? > You'd still have the downside that the general bookmarks include all the > other non-directory bookmarks, so maybe it's not a good idea anyway. Your intuition or my intuition doesn't matter. For me the mixing certainly is a huge down-side, but you've seen from some of the reaction to your post that people just do things their own way to their own preference. The filtering feature that Drew mentioned exists in bookmarks+ sounds good, in that it retains the standard emacs bookmark code and allows the completion candidates to be filtered. > [ I'm not using bookmarks very much, so my intuition here is poor. ] I use them a lot, but for the past many years only for temporary place marks. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0