From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24103: 25.1.50; Add white space separator when appending string Date: Fri, 29 Jul 2016 13:16:03 +0300 Message-ID: <83h9b8rbq4.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1469787456 29161 80.91.229.3 (29 Jul 2016 10:17:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 10:17:36 +0000 (UTC) Cc: 24103@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 12:17:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bT4r1-0001vq-NJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 12:17:19 +0200 Original-Received: from localhost ([::1]:58522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT4qu-00067j-VI for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 06:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT4qo-00067S-TJ for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 06:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT4qk-0008Gx-LK for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 06:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT4qk-0008Gt-I8 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bT4qk-0004UZ-B5 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jul 2016 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24103 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24103-submit@debbugs.gnu.org id=B24103.146978738117212 (code B ref 24103); Fri, 29 Jul 2016 10:17:02 +0000 Original-Received: (at 24103) by debbugs.gnu.org; 29 Jul 2016 10:16:21 +0000 Original-Received: from localhost ([127.0.0.1]:49989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT4q4-0004TX-OU for submit@debbugs.gnu.org; Fri, 29 Jul 2016 06:16:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bT4q2-0004TI-HG for 24103@debbugs.gnu.org; Fri, 29 Jul 2016 06:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT4pu-00087w-Aj for 24103@debbugs.gnu.org; Fri, 29 Jul 2016 06:16:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT4pu-00087n-7c; Fri, 29 Jul 2016 06:16:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bT4ps-0004nT-FI; Fri, 29 Jul 2016 06:16:08 -0400 In-reply-to: (message from Tino Calancha on Fri, 29 Jul 2016 18:57:41 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121674 Archived-At: > From: Tino Calancha > Date: Fri, 29 Jul 2016 18:57:41 +0900 (JST) > > > I) > emacs -Q ~ > M-: (goto-char (dired-subdir-min)) RET > M-: (dired-goto-next-file) RET > w > ;; copied first file name into kill-ring > M-: (dired-next-line 1) RET > C-M-w w > ;; This append second file name to the kill-ring. > ;; Note that there is no separator between the first/second file name. > > II) > emacs -Q ~ > M-: (goto-char (dired-subdir-min)) RET > w > ;; dir name copied into kill-ring > M-: (goto-char (dired-subdir-max)) RET > w > ;; copied '' into kill-ring > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > >From 80e9eb3fc790148a70dbf1da5d12e22681180bee Mon Sep 17 00:00:00 2001 > From: Tino Calancha > Date: Fri, 29 Jul 2016 18:53:38 +0900 > Subject: [PATCH] Add white space separator when appending string > > * lisp/dired.el (dired-copy-filename-as-kill): > Add white space before string when command is appending. > Copy just non-empty strings (Bug#24103). Isn't this second-guessing what the user means? What if the kill ring has "/foo/bar/" and the user wants to append a file name to that, thus creating a valid absolute file name? Thanks.