From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add file-ring to dired-aux.el Date: Tue, 22 Oct 2024 21:43:10 +0300 Message-ID: <865xpkf075.fsf@gnu.org> References: <86h694dmw3.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: justinlime1999@gmail.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 22 20:43:48 2024 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 1t3JrA-0003W2-7l for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Oct 2024 20:43:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3Jqe-0004gs-3m; Tue, 22 Oct 2024 14:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3Jqc-0004gi-DG for emacs-devel@gnu.org; Tue, 22 Oct 2024 14:43:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3Jqb-0003aP-V2; Tue, 22 Oct 2024 14:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LlFai348qmFZLdIPLL6sp47wMz2igkt2kLjboXs4V4M=; b=OSIAw3BLh2qT cxLr+sEaqD1U2Y8huLROl90IiEQZc00mjMR+MWGV1FwLYPH648AbJJsGkOpp3b2ojQxiVr0SYGPgt wXIkzeZtDdomQFlmuSgDjQ4EkrC5jtUrX4+OemyHJ3WvBDbYXT0waFn7mulOMcuYCHTwZfI8RqJO2 Me4BXPtE6rPR6ylcDb56fVc5sHWxYqfr4qzoGpr3WWjGhcmZCZPOzftrEnNXHThiIb5f2Iunw9bse oJZoG26dCYGf4n70tiYcOKbRCCYpXzCS2jHSKv1mjRQGlXbpt97dLnBkF7TqY4L94BLwgccEXrpz6 /py3HXPTsaX4xzPdZ3uZiQ==; In-Reply-To: <86h694dmw3.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 22 Oct 2024 21:15:56 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324750 Archived-At: > From: Juri Linkov > Cc: emacs-devel@gnu.org > Date: Tue, 22 Oct 2024 21:15:56 +0300 > > Doing the same could be like the following: > > 1. Copy the file names of marked files with 'w'. Please, either C-w or M-w. > 2. In another dired buffer type 'C-y' (yank) > like suggested by Drew. > > Then it could pop up the standard window "*Marked Files*" > and ask for a choice from the list of characters > using 'map-y-or-n-p' or 'read-answer', e.g.: > > (read-answer "Choose what to do with marked files " > '(("copy" ?c "copy") > ("move" ?r "move") > ("symlink" ?s "make symlink") > ("relsymlink" ?y "make relative symlink"))) If we want to be "like most file managers", we need to show buttons on the tool bar or pop up a menu, not just ask for a key with read-answer.