unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29362: 27.0.50; copy-file no longer copying when second argument is a directory
@ 2017-11-19 21:07 Bryan M. Kramer
  2017-11-19 21:40 ` Philipp Stephani
  0 siblings, 1 reply; 2+ messages in thread
From: Bryan M. Kramer @ 2017-11-19 21:07 UTC (permalink / raw)
  To: 29362


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))





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#29362: 27.0.50; copy-file no longer copying when second argument is a directory
  2017-11-19 21:07 bug#29362: 27.0.50; copy-file no longer copying when second argument is a directory Bryan M. Kramer
@ 2017-11-19 21:40 ` Philipp Stephani
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Stephani @ 2017-11-19 21:40 UTC (permalink / raw)
  To: Bryan M. Kramer; +Cc: 29362

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Bryan M. Kramer <kramer@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'.

[-- Attachment #2: Type: text/html, Size: 1983 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-19 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-19 21:07 bug#29362: 27.0.50; copy-file no longer copying when second argument is a directory Bryan M. Kramer
2017-11-19 21:40 ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).