emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r110928: Backport: Rename cygwin_c


From: dancol
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r110928: Backport: Rename cygwin_convert_path* to cygwin_convert_file_name*
Date: Tue, 20 Nov 2012 11:28:53 -0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110928
committer: address@hidden
branch nick: emacs-24
timestamp: Tue 2012-11-20 11:28:53 -0800
message:
  Backport: Rename cygwin_convert_path* to cygwin_convert_file_name*
modified:
  etc/NEWS
  lisp/ChangeLog
  lisp/term/w32-win.el
  src/ChangeLog
  src/cygw32.c
  src/w32fns.c
=== modified file 'etc/NEWS'
--- a/etc/NEWS  2012-11-20 08:39:41 +0000
+++ b/etc/NEWS  2012-11-20 19:28:53 +0000
@@ -988,9 +988,10 @@
 Pass --with-w32 to configure.  The default remains the X11 interface.
 
 ** Two new functions are available in Cygwin builds:
-`cygwin-convert-path-from-windows' and `cygwin-convert-path-to-windows'.
-These functions allow Lisp code to access the Cygwin file-name mapping
-machinery to convert between Cygwin and Windows-native file names.
+`cygwin-convert-file-name-from-windows' and
+`cygwin-convert-file-name-to-windows'.  These functions allow Lisp
+code to access the Cygwin file-name mapping machinery to convert
+between Cygwin and Windows-native file and directory names.
 
 ** When invoked with the -nw switch to run on the Windows text-mode terminal,
 Emacs now supports mouse highlight, help-echo (in the echo area), and

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-11-20 17:44:04 +0000
+++ b/lisp/ChangeLog    2012-11-20 19:28:53 +0000
@@ -1,3 +1,9 @@
+2012-11-20  Daniel Colascione  <address@hidden>
+
+       * term/w32-win.el (cygwin-convert-path-from-windows): Accomodate
+       rename of cygwin_convert_path* to cygwin_convert_file_name*.
+       This change is a backport from trunk.
+
 2012-11-20  Eli Zaretskii  <address@hidden>
 
        * simple.el (line-move): Don't call line-move-partial if

=== modified file 'lisp/term/w32-win.el'
--- a/lisp/term/w32-win.el      2012-10-09 07:08:26 +0000
+++ b/lisp/term/w32-win.el      2012-11-20 19:28:53 +0000
@@ -91,6 +91,9 @@
 (declare-function w32-send-sys-command "w32fns.c")
 (declare-function set-message-beep "w32fns.c")
 
+(declare-function cygwin-convert-file-name-from-windows "cygw32.c"
+                  (path &optional absolute_p))
+
 ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
 (if (fboundp 'new-fontset)
     (require 'fontset))
@@ -105,7 +108,7 @@
 
 (defun w32-handle-dropped-file (window file-name)
   (let ((f (if (eq system-type 'cygwin)
-               (cygwin-convert-path-from-windows file-name t)
+               (cygwin-convert-file-name-from-windows file-name t)
              (subst-char-in-string ?\\ ?/ file-name)))
         (coding (or file-name-coding-system
                     default-file-name-coding-system)))

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-11-20 13:26:40 +0000
+++ b/src/ChangeLog     2012-11-20 19:28:53 +0000
@@ -1,3 +1,12 @@
+2012-11-20  Daniel Colascione  <address@hidden>
+
+       * w32fns.c (Fx_file_dialog):
+       (Fx_file_dialog): Accomodate rename of cygwin_convert_path* to
+       cygwin_convert_file_name*.
+
+       * cygw32.c (Fcygwin_convert_path_to_windows, syms_of_cygw32):
+       Rename cygwin_convert_path* to cygwin_convert_file_name*.
+
 2012-11-20  Ken Brown  <address@hidden>
 
        * emacs.c (main): Set the G_SLICE environment variable for all

=== modified file 'src/cygw32.c'
--- a/src/cygw32.c      2012-10-29 17:24:29 +0000
+++ b/src/cygw32.c      2012-11-20 19:28:53 +0000
@@ -106,22 +106,24 @@
   return unbind_to (count, DECODE_FILE (converted));
 }
 
-DEFUN ("cygwin-convert-path-to-windows",
-       Fcygwin_convert_path_to_windows, Scygwin_convert_path_to_windows,
+DEFUN ("cygwin-convert-file-name-to-windows",
+       Fcygwin_convert_file_name_to_windows,
+       Scygwin_convert_file_name_to_windows,
        1, 2, 0,
-       doc: /* Convert PATH to a Windows path.  If ABSOLUTE-P if
-               non-nil, return an absolute path.*/)
+       doc: /* Convert PATH to a Windows path.  If ABSOLUTE-P is
+non-nil, return an absolute path.*/)
   (Lisp_Object path, Lisp_Object absolute_p)
 {
   return from_unicode (
     conv_filename_to_w32_unicode (path, EQ (absolute_p, Qnil) ? 0 : 1));
 }
 
-DEFUN ("cygwin-convert-path-from-windows",
-       Fcygwin_convert_path_from_windows, Scygwin_convert_path_from_windows,
+DEFUN ("cygwin-convert-file-name-from-windows",
+       Fcygwin_convert_file_name_from_windows,
+       Scygwin_convert_file_name_from_windows,
        1, 2, 0,
        doc: /* Convert a Windows path to a Cygwin path.  If ABSOLUTE-P
-               if non-nil, return an absolute path.*/)
+is non-nil, return an absolute path.*/)
   (Lisp_Object path, Lisp_Object absolute_p)
 {
   return conv_filename_from_w32_unicode (to_unicode (path, &path),
@@ -131,6 +133,6 @@
 void
 syms_of_cygw32 (void)
 {
-  defsubr (&Scygwin_convert_path_from_windows);
-  defsubr (&Scygwin_convert_path_to_windows);
+  defsubr (&Scygwin_convert_file_name_from_windows);
+  defsubr (&Scygwin_convert_file_name_to_windows);
 }

=== modified file 'src/w32fns.c'
--- a/src/w32fns.c      2012-10-26 09:46:46 +0000
+++ b/src/w32fns.c      2012-11-20 19:28:53 +0000
@@ -6151,9 +6151,9 @@
       filename = empty_unibyte_string;
 
 #ifdef CYGWIN
-    dir = Fcygwin_convert_path_to_windows (dir, Qt);
+    dir = Fcygwin_convert_file_name_to_windows (dir, Qt);
     if (SCHARS (filename) > 0)
-      filename = Fcygwin_convert_path_to_windows (filename, Qnil);
+      filename = Fcygwin_convert_file_name_to_windows (filename, Qnil);
 #endif
 
     CHECK_STRING (dir);
@@ -6254,7 +6254,7 @@
 #endif /* NTGUI_UNICODE */
 
 #ifdef CYGWIN
-        filename = Fcygwin_convert_path_from_windows (filename, Qt);
+        filename = Fcygwin_convert_file_name_from_windows (filename, Qt);
 #endif /* CYGWIN */
 
         /* Strip the dummy filename off the end of the string if we


reply via email to

[Prev in Thread] Current Thread [Next in Thread]