From unknown Sat Jun 21 03:16:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22322 <22322@debbugs.gnu.org> To: bug#22322 <22322@debbugs.gnu.org> Subject: Status: New Feature -- dired: Option to create a directory when copying/moving. Reply-To: bug#22322 <22322@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:16:44 +0000 retitle 22322 New Feature -- dired: Option to create a directory when copyi= ng/moving. reassign 22322 emacs submitter 22322 Keith David Bershatsky severity 22322 wishlist tag 22322 fixed moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 06 15:13:56 2016 Received: (at submit) by debbugs.gnu.org; 6 Jan 2016 20:13:56 +0000 Received: from localhost ([127.0.0.1]:40631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGuSx-0000kk-Qm for submit@debbugs.gnu.org; Wed, 06 Jan 2016 15:13:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33332) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGuSw-0000kU-8E for submit@debbugs.gnu.org; Wed, 06 Jan 2016 15:13:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGuSp-00007p-D1 for submit@debbugs.gnu.org; Wed, 06 Jan 2016 15:13:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGuSp-00007h-2F for submit@debbugs.gnu.org; Wed, 06 Jan 2016 15:13:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGuSn-0003e0-AN for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 15:13:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGuSj-00005k-7E for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 15:13:45 -0500 Received: from cobb.liquidweb.com ([50.28.13.150]:56671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGuSi-00005b-U7 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 15:13:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date; bh=nEPvSa1Iq7skMwtS2kwdHesZix3MafyjAmcr9O6g1yw=; b=9R6uRklKOHz7wg5H6RDVIsrXjBT1Ma3p8zMVmhucDQ3LaKPbtfrpTljdZFkOkqP+pVGeGbra8x2L5h7mSFK/X7OQ0qlmp5cETMp60HTDou35N2+GtqYwzBxOy8qu2FSd; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51550 helo=server.local.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1aGuSe-0003sX-KH for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2016 15:13:36 -0500 Date: Wed, 06 Jan 2016 12:13:38 -0800 Message-ID: From: Keith David Bershatsky To: bug-gnu-emacs@gnu.org Subject: New Feature -- dired: Option to create a directory when copying/moving. MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) As a suggestion, perhaps the Emacs team would be interested in presenting the user with an option to create a new directory when copying/moving in dired-mode. This is something I use quite frequently in my own setup, because it saves me an extra step by obviating the need to create the directory beforehand. The following is a working example of the above-mentioned concept, which is not intended to be a patch per se. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'dired-aux) (defalias 'dired-do-create-files 'lawlist-dired-do-create-files) (defun lawlist-dired-do-create-files (op-symbol file-creator operation arg &optional marker-char op1 how-to) "(1) If the path entered by the user in the mini-buffer ends in a trailing forward slash /, then the code assumes the path is a directory -- to be created if it does not already exist.; (2) if the trailing forward slash is omitted, the code prompts the user to specify whether that path is a directory." (or op1 (setq op1 operation)) (let* ( skip-overwrite-confirmation (fn-list (dired-get-marked-files nil arg)) (rfn-list (mapcar (function dired-make-relative) fn-list)) (dired-one-file ; fluid variable inside dired-create-files (and (consp fn-list) (null (cdr fn-list)) (car fn-list))) (target-dir (if dired-one-file (dired-get-file-for-visit) ;; filename if one file (dired-dwim-target-directory))) ;; directory of multiple files (default (and dired-one-file (expand-file-name (file-name-nondirectory (car fn-list)) target-dir)) ) (defaults (dired-dwim-target-defaults fn-list target-dir)) (target (expand-file-name ; fluid variable inside dired-create-files (minibuffer-with-setup-hook (lambda () (set (make-local-variable 'minibuffer-default-add-function) nil) (setq minibuffer-default defaults)) (dired-mark-read-file-name (concat (if dired-one-file op1 operation) " %s to: ") target-dir op-symbol arg rfn-list default)))) (unmodified-initial-target target) (into-dir (cond ((null how-to) (if (and (memq system-type '(ms-dos windows-nt cygwin)) (eq op-symbol 'move) dired-one-file (string= (downcase (expand-file-name (car fn-list))) (downcase (expand-file-name target))) (not (string= (file-name-nondirectory (car fn-list)) (file-name-nondirectory target)))) nil (file-directory-p target))) ((eq how-to t) nil) (t (funcall how-to target))))) (if (and (consp into-dir) (functionp (car into-dir))) (apply (car into-dir) operation rfn-list fn-list target (cdr into-dir)) (or into-dir (setq target (directory-file-name target))) ;; create new directories if they do not exist. (when (and (not (file-directory-p (file-name-directory target))) (file-exists-p (directory-file-name (file-name-directory target)))) (let ((debug-on-quit nil)) (signal 'quit `( "A file with the same name as the proposed directory already exists.")))) (when (and (not (file-exists-p (directory-file-name (expand-file-name target)))) (or (and (null dired-one-file) (not (string-match "\\(.*\\)\\(/$\\)" unmodified-initial-target))) (not (file-directory-p (file-name-directory target))) (string-match "\\(.*\\)\\(/$\\)" unmodified-initial-target)) ) (let* ( new list-of-directories list-of-shortened-directories string-of-directories-a string-of-directories-b (max-mini-window-height 3) (expanded (directory-file-name (expand-file-name target))) (try expanded) ) ;; Find the topmost nonexistent parent dir (variable `new') (while (and try (not (file-exists-p try)) (not (equal new try))) (push try list-of-directories) (setq new try try (directory-file-name (file-name-directory try)))) (setq list-of-shortened-directories (mapcar (lambda (x) (concat "..." (car (cdr (split-string x try))))) list-of-directories)) (setq string-of-directories-a (combine-and-quote-strings list-of-shortened-directories)) (setq string-of-directories-b (combine-and-quote-strings (delete (car (last list-of-shortened-directories)) list-of-shortened-directories))) (if (and (not (string-match "\\(.*\\)\\(/$\\)" unmodified-initial-target)) ;; (cdr list-of-directories) dired-one-file (file-exists-p dired-one-file) (not (file-directory-p dired-one-file))) (if (y-or-n-p (format "Is `%s` a directory?" (car (last list-of-directories)))) (progn (or (y-or-n-p (format "@ `%s`, create: %s" try string-of-directories-a)) (let ((debug-on-quit nil)) (signal 'quit `("You have exited the function.")))) (make-directory expanded t) (setq into-dir t)) (if (equal (file-name-directory target) (file-name-directory dired-one-file)) (setq new nil) (or (y-or-n-p (format "@ `%s`, create: %s" try string-of-directories-b)) (let ((debug-on-quit nil)) (signal 'quit `("You have exited the function.")))) (make-directory (car (split-string (car (last list-of-directories)) (concat "/" (file-name-nondirectory target)))) t) (setq target (file-name-directory target)) (setq into-dir t) )) (or (y-or-n-p (format "@ `%s`, create: %s" try string-of-directories-a)) (let ((debug-on-quit nil)) (signal 'quit `("You have exited the function.")))) (make-directory expanded t) (setq into-dir t) ) (when new (dired-add-file new) (dired-move-to-filename)) (setq skip-overwrite-confirmation t) )) (lawlist-dired-create-files file-creator operation fn-list (if into-dir ; target is a directory (function (lambda (from) (expand-file-name (file-name-nondirectory from) target))) (function (lambda (_from) target))) marker-char skip-overwrite-confirmation )))) (defun lawlist-dired-create-files (file-creator operation fn-list name-constructor &optional marker-char skip-overwrite-confirmation) (let (dired-create-files-failures failures skipped (success-count 0) (total (length fn-list))) (let (to overwrite-query overwrite-backup-query) (dolist (from fn-list) (setq to (funcall name-constructor from)) (if (equal to from) (progn (setq to nil) (dired-log "Cannot %s to same file: %s\n" (downcase operation) from))) (if (not to) (setq skipped (cons (dired-make-relative from) skipped)) (let* ((overwrite (file-exists-p to)) (dired-overwrite-confirmed ; for dired-handle-overwrite (and overwrite (not skip-overwrite-confirmation) (let ((help-form '(format "\ Type SPC or `y' to overwrite file `%s', DEL or `n' to skip to next, ESC or `q' to not overwrite any of the remaining files, `!' to overwrite all remaining files with no more questions." to))) (dired-query 'overwrite-query "Overwrite `%s'?" to)))) ;; must determine if FROM is marked before file-creator ;; gets a chance to delete it (in case of a move). (actual-marker-char (cond ((integerp marker-char) marker-char) (marker-char (dired-file-marker from)) ; slow (t nil)))) (let ((destname (file-name-directory to))) (when (and (file-directory-p from) (file-directory-p to) (eq file-creator 'dired-copy-file)) (setq to destname)) ;; If DESTNAME is a subdirectory of FROM, not a symlink, ;; and the method in use is copying, signal an error. (and (eq t (car (file-attributes destname))) (eq file-creator 'dired-copy-file) (file-in-directory-p destname from) (error "Cannot copy `%s' into its subdirectory `%s'" from to))) (condition-case err (progn (funcall file-creator from to dired-overwrite-confirmed) (if overwrite ;; If we get here, file-creator hasn't been aborted ;; and the old entry (if any) has to be deleted ;; before adding the new entry. (dired-remove-file to)) (setq success-count (1+ success-count)) (message "%s: %d of %d" operation success-count total) (dired-add-file to actual-marker-char)) (file-error ; FILE-CREATOR aborted (progn (push (dired-make-relative from) failures) (dired-log "%s `%s' to `%s' failed:\n%s\n" operation from to err)))))))) (cond (dired-create-files-failures (setq failures (nconc failures dired-create-files-failures)) (dired-log-summary (format "%s failed for %d file%s in %d requests" operation (length failures) (dired-plural-s (length failures)) total) failures)) (failures (dired-log-summary (format "%s failed for %d of %d file%s" operation (length failures) total (dired-plural-s total)) failures)) (skipped (dired-log-summary (format "%s: %d of %d file%s skipped" operation (length skipped) total (dired-plural-s total)) skipped)) (t (message "%s: %s file%s" operation success-count (dired-plural-s success-count))))) (dired-move-to-filename)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 06 15:15:45 2016 Received: (at 22322) by debbugs.gnu.org; 6 Jan 2016 20:15:45 +0000 Received: from localhost ([127.0.0.1]:40636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGuUj-0000oN-Ew for submit@debbugs.gnu.org; Wed, 06 Jan 2016 15:15:45 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33741) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGuUi-0000o8-D7 for 22322@debbugs.gnu.org; Wed, 06 Jan 2016 15:15:44 -0500 Received: by mail-pa0-f41.google.com with SMTP id cy9so238945405pac.0 for <22322@debbugs.gnu.org>; Wed, 06 Jan 2016 12:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type; bh=nLHRO2NLwHuVSmg8S2zu+b8kFtTeq901RsLwAlh80yY=; b=iBOxyd9/Wih5uDl1LNqtnEozYHgYQdxfr9t3ENQ6HanwJWRzKxr9LHrGiFq6vJWFu7 bwppREWDo+vDVDECpgM/eBeZF1ZTTvMgh93EmskxAqW1KMnJIgEU9wxQiC6irFb52G62 +avIKahxoN6pg23XzSETf8Y2nBS02c/BbusmzfVo2vsBbFcR9V7o8ucgwxBQ6EAATIxC lXQR5a/FRNJ/MDgdKDYvL3K3nfzLIthNoq1p/7TMYpGJI/+/XuqeFGtDveF2x0HndeXG X2RYdTWNyQ4eKQ+n1goeumZVvZAACPYQD0FkecLkzO7uJSMsqPxBS31kGDPqf9+To7bz 7B1w== X-Received: by 10.66.248.74 with SMTP id yk10mr143184227pac.17.1452111338401; Wed, 06 Jan 2016 12:15:38 -0800 (PST) Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id hz8sm142761919pac.10.2016.01.06.12.15.37 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 06 Jan 2016 12:15:37 -0800 (PST) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id F127B121D78E0; Wed, 6 Jan 2016 12:15:36 -0800 (PST) To: Keith David Bershatsky Subject: Re: bug#22322: New Feature -- dired: Option to create a directory when copying/moving. In-Reply-To: (Keith David Bershatsky's message of "Wed, 06 Jan 2016 12:13:38 -0800") Date: Wed, 06 Jan 2016 12:15:35 -0800 Message-ID: References: User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22322 Cc: 22322@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>>>> Keith David Bershatsky writes: > As a suggestion, perhaps the Emacs team would be interested in presenting > the user with an option to create a new directory when copying/moving in > dired-mode. I've wanted that before: When attempting to copy/move multiple files to a destination that does not exist, prompt to create that destination as a directory. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:07:03 2021 Received: (at 22322) by debbugs.gnu.org; 7 Feb 2021 17:07:03 +0000 Received: from localhost ([127.0.0.1]:48632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nWY-00040N-Q7 for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:07:03 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nWW-0003zl-UA for 22322@debbugs.gnu.org; Sun, 07 Feb 2021 12:07:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FrKQwUA5ZBtqjfldtGhaSLSL8ZUJb0rlehxg++CjYr4=; b=bEzM/DZgPFza5A8ehUQw714Job 6HsE/J0t9SZtnZjZuM4JuHUq7X+uluxLYYpdJfUW97crizMiAIcyzUuRZxUAN1bMzHgZpVOGu6JXa sQpd/+ZDx66sDdZI1G8LZ3Y1YY5nX0jeWZHtceTeYSpU2AGYLPt7ETHX/jkBQSR20aIM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8nWO-0002cd-Ei; Sun, 07 Feb 2021 18:06:55 +0100 From: Lars Ingebrigtsen To: Keith David Bershatsky Subject: Re: bug#22322: New Feature -- dired: Option to create a directory when copying/moving. References: X-Now-Playing: Mia Doi Todd's _Songbook_: "Only Love Can Break Your Heart" Date: Sun, 07 Feb 2021 18:06:50 +0100 In-Reply-To: (Keith David Bershatsky's message of "Wed, 06 Jan 2016 12:13:38 -0800") Message-ID: <87r1lr24et.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Keith David Bershatsky writes: > As a suggestion, perhaps the Emacs team would be interested in > presenting the user with an option to create a new directory when > copying/moving in dired-mode. This is something I use quite > fre [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22322 Cc: 22322@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Keith David Bershatsky writes: > As a suggestion, perhaps the Emacs team would be interested in > presenting the user with an option to create a new directory when > copying/moving in dired-mode. This is something I use quite > frequently in my own setup, because it saves me an extra step by > obviating the need to create the directory beforehand. > > The following is a working example of the above-mentioned concept, > which is not intended to be a patch per se. (I'm going through old bug reports that unfortunately got little response at the time.) Sounds like a good idea to me. Could you work your code into a patch? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:07:10 2021 Received: (at control) by debbugs.gnu.org; 7 Feb 2021 17:07:10 +0000 Received: from localhost ([127.0.0.1]:48638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nWf-00040w-8B for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:07:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nWd-00040G-IE for control@debbugs.gnu.org; Sun, 07 Feb 2021 12:07:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8TEAYrhSaOnRUWbxswMu142vHqf8FVfefU0TdalUXWY=; b=G/Z7BOwldOITBdcvCNMxe2o2t1 o9mB15IWKkldtXv8kmXPVomKETKhNd0qR1QDK0AsrvkqtA6A+kpJBuNEjEPnDcGxCO73a+VvdTh+0 mKHUzQeTHHN0gr24VVAjlVFGlCKN3wdhCOsCFaZbBFx5zUe0NXMdxGyNN7+GoOmXD0ws=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8nWV-0002cm-NT for control@debbugs.gnu.org; Sun, 07 Feb 2021 18:07:02 +0100 Date: Sun, 07 Feb 2021 18:06:58 +0100 Message-Id: <87pn1b24el.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22322 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 22322 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 22322 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:56:01 2021 Received: (at 22322) by debbugs.gnu.org; 7 Feb 2021 17:56:01 +0000 Received: from localhost ([127.0.0.1]:48676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oHx-0007HL-7K for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:56:01 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:52241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oHt-0007H6-JO for 22322@debbugs.gnu.org; Sun, 07 Feb 2021 12:55:59 -0500 X-Originating-IP: 94.46.225.161 Received: from kronos (unknown [94.46.225.161]) (Authenticated sender: public@protesilaos.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id ABF75FF80A; Sun, 7 Feb 2021 17:55:49 +0000 (UTC) From: Protesilaos Stavrou To: Lars Ingebrigtsen Subject: Re: bug#22322: New Feature -- dired: Option to create a directory when copying/moving. References: <87r1lr24et.fsf@gnus.org> Date: Sun, 07 Feb 2021 19:55:47 +0200 In-Reply-To: <87r1lr24et.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 07 Feb 2021 18:06:50 +0100") Message-ID: <87lfbz4va4.fsf@protesilaos.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22322 Cc: 22322@debbugs.gnu.org, Keith David Bershatsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2021-02-07, 18:06 +0100, Lars Ingebrigtsen wrote: > Keith David Bershatsky writes: > >> As a suggestion, perhaps the Emacs team would be interested in >> presenting the user with an option to create a new directory when >> copying/moving in dired-mode. This is something I use quite >> frequently in my own setup, because it saves me an extra step by >> obviating the need to create the directory beforehand. >> >> The following is a working example of the above-mentioned concept, >> which is not intended to be a patch per se. > > (I'm going through old bug reports that unfortunately got little response at > the time.) > > Sounds like a good idea to me. Could you work your code into a patch? Hi Lars! Is this not already covered by dired-create-destination-dirs? -- Protesilaos Stavrou protesilaos.com From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:58:01 2021 Received: (at 22322) by debbugs.gnu.org; 7 Feb 2021 17:58:01 +0000 Received: from localhost ([127.0.0.1]:48680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oJt-0007KQ-J4 for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:58:01 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oJr-0007K0-Qw for 22322@debbugs.gnu.org; Sun, 07 Feb 2021 12:58:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AQ3DBYMT1N4dqRBzg8U4PX1Y6m/HXm4rmqYjpu6y3wA=; b=P8qm9JBoWAmnJco7oucsBueTUZ VLgdTiqQnlfcGkaIIk1OeFOtFht0PMoxeVc61NcEjW0dOhLUCIzl0FzGeFN9M0kuvb3tb4kD6im5P ezIWMGem+vU2fpSLSgAnLaZHQLi4/jgQYl3CiwV8X1CyakY3IXEH5OKGARPmeR4hn4UU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8oJa-0003Co-5X; Sun, 07 Feb 2021 18:57:52 +0100 From: Lars Ingebrigtsen To: Protesilaos Stavrou Subject: Re: bug#22322: New Feature -- dired: Option to create a directory when copying/moving. References: <87r1lr24et.fsf@gnus.org> <87lfbz4va4.fsf@protesilaos.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUkGRdVIxxoSSek Rh7////0Jn+1AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UCBQsDEP2ML4UAAAGqSURBVDjLjVOBjcMw CIR0AcALGLJAHe+/2x+4SfrSV1+kuNRnDBxnoo+myuQqrKZ9I+YOv4DwDd9gD3hdNcK89wphEsIp FqHOLJp/6X9j25zc/0AKiC+uQPLN3DMpknMW/yqXgs0DXUQ3lLoxFjurqjOKKoVRdvBXmb6wu2t+ 31TVG7jc2nwDhq4wfPx8p2kMLGITDe7z2pV1A7c5n/SYU+5rsee2zzmH7HOorPSoYp52wEW+E5iD saGxzwDYsuKkCIDKpmLhHHOYPi8AkUZmmzUAxEcCWgR4RhvpfmRJjUZOhmo67MLCyIykDx2OoeUU uPoQ9JA9boFAX904JxzT90yCwEd0quugSyYLHXMWYLMvzpMXMlSgOwuASNqqSxSOss2tiBjtZAzU OkQNS2A/Lo41HwEmxJxhDZ2eI8QQOSnIpeGhxAncJtoe2o9TAzeQsWt0UgAYyVFK/VyKwDnsjCI6 D4K7FyApdtyi9c6yFl2Cg5f0AuN6jJe4as45OD1VqUtoda/Kegt1mhdX8hrxLWldrpSA26VzJv2l +tt9U/aHh8IlDCq1/GM/Y+AwNiS2qcAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDItMDVUMTE6 MDM6MTUrMDA6MDAgZXUcAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTA1VDExOjAzOjE1KzAw OjAwUTjNoAAAAABJRU5ErkJggg== X-Now-Playing: Mia Doi Todd & Company's _Music for A Midsummer Night's Dream_: "Fly This Place" Date: Sun, 07 Feb 2021 18:57:40 +0100 In-Reply-To: <87lfbz4va4.fsf@protesilaos.com> (Protesilaos Stavrou's message of "Sun, 07 Feb 2021 19:55:47 +0200") Message-ID: <878s7z2223.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Protesilaos Stavrou writes: >> Sounds like a good idea to me. Could you work your code into a patch? > > Hi Lars! Is this not already covered by dired-create-destination-dirs? Oh, indeed it is. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22322 Cc: 22322@debbugs.gnu.org, Keith David Bershatsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Protesilaos Stavrou writes: >> Sounds like a good idea to me. Could you work your code into a patch? > > Hi Lars! Is this not already covered by dired-create-destination-dirs? Oh, indeed it is. So I'm closing this bug report, then. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 12:58:13 2021 Received: (at control) by debbugs.gnu.org; 7 Feb 2021 17:58:13 +0000 Received: from localhost ([127.0.0.1]:48683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oK4-0007L2-Qw for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:58:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oK2-0007Kl-Lb for control@debbugs.gnu.org; Sun, 07 Feb 2021 12:58:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fwpXG+JIPjCjNS9CXEaTRBSK+2Qlnul4dsh1Abrj1d8=; b=gcD405GuSUFVO98Gvf/NaQKcZr VoettytmMrQ0lmMv0+Fc6iApk7NQBM86fBW/tIKxsMe+06n2XJf/GMb0YN98XyAsHbzrbbEnHUzFX BdgcVhQWDszxu/DybceBiUbckDNsO1qlRFLV1D0OcNxjvcmHM7K3hxTZjqI9ljaJqPwM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8oJu-0003D1-L6 for control@debbugs.gnu.org; Sun, 07 Feb 2021 18:58:05 +0100 Date: Sun, 07 Feb 2021 18:58:01 +0100 Message-Id: <877dnj221i.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22322 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 22322 fixed close 22322 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 22322 fixed close 22322 quit From unknown Sat Jun 21 03:16:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Mar 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator