aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2010-06-04 16:13:35 +0200
committerJuanma Barranquero2010-06-04 16:13:35 +0200
commit087fc47ace7797d2ef36ff167f7befd5f4ba01da (patch)
tree0ed8bed24cd9249672b0afaa79caeea8e4ca6dcc /lisp
parent4f201088d33976f3ce04d7e01d1fbd4b6044cbe0 (diff)
downloademacs-087fc47ace7797d2ef36ff167f7befd5f4ba01da.tar.gz
emacs-087fc47ace7797d2ef36ff167f7befd5f4ba01da.zip
Turn `directory-sep-char' into a noop.
* lisp/subr.el (directory-sep-char): Move from fileio.c and make a defconst. * src/emacs.c (decode_env_path): Don't check DIRECTORY_SEP, call dostounix_filename directly. * src/fileio.c (CORRECT_DIR_SEPS): Remove. (Ffile_name_directory, directory_file_name, Fexpand_file_name) (Fsubstitute_in_file_name): Use dostounix_filename instead. (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP. (syms_of_fileio) <directory-sep-char>: Move to subr.el. * src/lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare. (DIRECTORY_SEP): Define unconditionally. * src/w32proc.c (CORRECT_DIR_SEPS): Remove. (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename. * src/s/ms-w32.h (DIRECTORY_SEP): Remove.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el6
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4ce37b1996a..c90df7c810a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-06-04 Juanma Barranquero <lekktu@gmail.com>
2
3 * subr.el (directory-sep-char): Move from fileio.c and make a defconst.
4
12010-06-04 Michael Albinus <michael.albinus@gmx.de> 52010-06-04 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Expand "~/". 7 * net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Expand "~/".
diff --git a/lisp/subr.el b/lisp/subr.el
index e7fbf31b2b7..16ba45f1c74 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1089,7 +1089,11 @@ is converted into a string by expressing it in decimal."
1089(make-obsolete 'process-filter-multibyte-p nil "23.1") 1089(make-obsolete 'process-filter-multibyte-p nil "23.1")
1090(make-obsolete 'set-process-filter-multibyte nil "23.1") 1090(make-obsolete 'set-process-filter-multibyte nil "23.1")
1091 1091
1092(make-obsolete-variable 'directory-sep-char "do not use it." "21.1") 1092(defconst directory-sep-char ?/
1093 "Directory separator character for built-in functions that return file names.
1094The value is always ?/.")
1095(make-obsolete-variable 'directory-sep-char "do not use it, just use `/'." "21.1")
1096
1093(make-obsolete-variable 1097(make-obsolete-variable
1094 'mode-line-inverse-video 1098 'mode-line-inverse-video
1095 "use the appropriate faces instead." 1099 "use the appropriate faces instead."