From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase. Date: Tue, 05 Jan 2016 09:27:03 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1452014907 32087 80.91.229.3 (5 Jan 2016 17:28:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 17:28:27 +0000 (UTC) Cc: 22300@debbugs.gnu.org, John Wiegley To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 18:28:12 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 1aGVP1-00025D-Lv for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 18:28:11 +0100 Original-Received: from localhost ([::1]:50726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVP0-00059U-S0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 12:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVOw-00055G-6R for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGVOt-00014Y-1V for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:28:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGVOs-00014K-UW for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGVOs-00026O-Qv for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 12:28:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jan 2016 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22300-submit@debbugs.gnu.org id=B22300.14520148368003 (code B ref 22300); Tue, 05 Jan 2016 17:28:02 +0000 Original-Received: (at 22300) by debbugs.gnu.org; 5 Jan 2016 17:27:16 +0000 Original-Received: from localhost ([127.0.0.1]:39027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVO8-000251-7i for submit@debbugs.gnu.org; Tue, 05 Jan 2016 12:27:16 -0500 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:55863) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGVO7-00024o-0v for 22300@debbugs.gnu.org; Tue, 05 Jan 2016 12:27:15 -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:Cc:To:From:Message-ID:Date; bh=SePuuSyGKLHL9AIRJqDIXbgLyEtmNTz+BIbapkirB1c=; b=reblNEjsvdhFS1bVR8jYgbZgbILiWTlyjzCnmxyqI84M0pieJds7lCGgkr0z0lpzxaD0+d1Jkl2dR/Hs8wfdt6BZj/sbwWSNcqdCNWId8rFab+xdfQiC8ERd6b4ehWzy; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:53034 helo=server.local.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1aGVNv-0002Z9-JS; Tue, 05 Jan 2016 12:27:03 -0500 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 - debbugs.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-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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111243 Archived-At: Actually, I'm not sure why the `elisp` makes the target "/Users/HOME/Desktop/foo/FOO", instead of just "/Users/HOME/Desktop/foo". When I evaluate (funcall (lambda (from) (expand-file-name (file-name-nondirectory from) "/Users/HOME/Desktop/foo" )) "/Users/HOME/Desktop/FOO") I get the former incorrect value -- i.e., "/Users/HOME/Desktop/foo/FOO", instead of just "/Users/HOME/Desktop/foo". And that becomes the initial value of "to" when used by `dired-create-files` -- (setq to (funcall name-constructor from)) Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Tue, 05 Jan 2016 18:46:00 +0200, Eli Zaretskii wrote: > > > Why do you think the result of that is wrong? I think it's exactly as > expected, because this: > > (expand-file-name "SOMETHING" "/Users/HOME/Desktop/foo") > > should produce "/Users/HOME/Desktop/foo/SOMETHING" for _any_ value of > SOMETHING, even if SOMETHING is exactly "foo", in the same letter-case > as the last component of "/Users/HOME/Desktop/foo". That's what > expand-file-name does -- it produces a file name in the directory that > is its 2nd argument.