GNU bug report logs - #29362
27.0.50; copy-file no longer copying when second argument is a directory

Previous Next

Package: emacs;

Reported by: kramer <at> cogeco.ca (Bryan M. Kramer)

Date: Sun, 19 Nov 2017 21:09:02 UTC

Severity: normal

Tags: notabug

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29362 in the body.
You can then email your comments to 29362 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29362; Package emacs. (Sun, 19 Nov 2017 21:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to kramer <at> cogeco.ca (Bryan M. Kramer):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Nov 2017 21:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: kramer <at> cogeco.ca (Bryan M. Kramer)
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50;
 copy-file no longer copying when second argument is a directory
Date: Sun, 19 Nov 2017 16:07:43 -0500
copy-file help states if second argument is a directory, it will create
a properly named file in the directory. This is no longer the case in
this version of emacs.


In GNU Emacs 27.0.50 (build 11, x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-11-14 built on fedora17.home
Repository revision: 13248f7444630508cfc3b78a07e8d96613af11c8
Windowing system distributor 'The Cygwin/X Project', version 11.0.11905000
Recent messages:
Type "q" in help window to restore its previous buffer, C-M-v to scroll help.
Mark saved where search started
Mark set
Mark saved where search started
MATCH
DM /home/bryan/afs/httpdocs /home/bryan/parallel/dm /home/bryan/parallel/dm/private/bin summarize-db-url.php
M1 nil
M2 /private/bin
COPYING /home/bryan/parallel/dm/private/bin/summarize-db-url.php to /home/bryan/afs/httpdocs/private/bin
call-diff-copy-item: Opening output file: Is a directory, /home/bryan/afs/httpdocs/private/bin

Configured using:
 'configure --prefix=/home/bryan/install --without-makeinfo
 --without-pop'

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  diff-auto-refine-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml
mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils cl-extra eieio-opt
find-func help-fns radix-tree misearch multi-isearch thingatpt jka-compr
ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init
ediff-util ediff pp vc-git diff-mode easy-mmode php-mode etags xref
project ring cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs speedbar sb-image ezimage
dframe tutorial help-mode dired dired-loaddefs elec-pair server hideshow
prettier-js dash edmacro kmacro timesheet srgrep more-hacks paren delsel
mm-util mail-prsvr finder-inf package easymenu epg-config url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 338902 27210)
 (symbols 48 32198 1)
 (miscs 40 221 571)
 (strings 32 106557 2098)
 (string-bytes 1 4246375)
 (vectors 16 29554)
 (vector-slots 8 718124 18908)
 (floats 8 85 101)
 (intervals 56 14889 37)
 (buffers 992 27))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29362; Package emacs. (Sun, 19 Nov 2017 21:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 29362 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: "Bryan M. Kramer" <kramer <at> cogeco.ca>
Cc: 29362 <at> debbugs.gnu.org
Subject: Re: bug#29362: 27.0.50; copy-file no longer copying when second
 argument is a directory
Date: Sun, 19 Nov 2017 21:40:04 +0000
[Message part 1 (text/plain, inline)]
Bryan M. Kramer <kramer <at> cogeco.ca> schrieb am So., 19. Nov. 2017 um
22:09 Uhr:

>
> copy-file help states if second argument is a directory, it will create
> a properly named file in the directory. This is no longer the case in
> this version of emacs.
>

This is working as intended, see NEWS:

** Several functions that create or rename files now treat their
destination argument specially only when it is a directory name, i.e.,
when it ends in '/' on GNU and other POSIX-like systems.  When the
destination argument D of one of these functions is an existing
directory and the intent is to act on an entry in that directory, D
should now be a directory name.  For example, (rename-file "e" "f/")
renames to 'f/e'.  Although this formerly happened sometimes even when
D was not a directory name, as in (rename-file "e" "f") where 'f'
happened to be a directory, the old behavior often contradicted the
documentation and had inherent races that led to security holes.  A
call like (rename-file C D) that used the old, undocumented behavior
can be written as (rename-file C (file-name-as-directory D)), a
formulation portable to both older and newer versions of Emacs.
Affected functions include 'add-name-to-file', 'copy-directory',
'copy-file', 'format-write-file', 'gnus-copy-file',
'make-symbolic-link', 'rename-file', 'thumbs-rename-images', and
'write-file'.
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 20 Nov 2017 18:00:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29362 <at> debbugs.gnu.org and kramer <at> cogeco.ca (Bryan M. Kramer) Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 20 Nov 2017 18:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Dec 2017 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 128 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.