]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove directory-sep-char, obsolete since 21.1.
authorGlenn Morris <rgm@gnu.org>
Sun, 3 Oct 2010 21:23:13 +0000 (14:23 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 3 Oct 2010 21:23:13 +0000 (14:23 -0700)
* lisp/subr.el (directory-sep-char): Remove obsolete variable.
* lisp/net/tramp-compat.el: Don't mess about with the byte-compiler unless
it is "necessary".

* doc/lispref/files.texi (File Name Components): Remove ignored
section about deleted variable directory-sep-char.

* etc/NEWS: Mention above change.

doc/lispref/ChangeLog
doc/lispref/files.texi
etc/NEWS
lisp/ChangeLog
lisp/net/tramp-compat.el
lisp/subr.el

index e49fe5fc3d895d9ebac6eeccd903b37535629dca..284c0f2b9544e3a81c698555efe0db5335dcf4c1 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-03  Glenn Morris  <rgm@gnu.org>
+
+       * files.texi (File Name Components): Remove ignored section about
+       deleted variable directory-sep-char.
+
 2010-10-03  Michael Albinus  <michael.albinus@gmx.de>
 
        * files.texi (Magic File Names): New defopt
index 333e60e3df29e276ae064bd7882d2ae88e303aee..2b539f009759004e67852a43a1f9797d69e4af25 100644 (file)
@@ -1758,20 +1758,6 @@ Note that the @samp{.~3~} in the two last examples is the backup part,
 not an extension.
 @end defun
 
-@ignore
-Andrew Innes says that this
-
-@c @defvar directory-sep-char
-This variable holds the character that Emacs normally uses to separate
-file name components.  The default value is @code{?/}, but on MS-Windows
-you can set it to @code{?\\}; then the functions that transform file names
-use backslashes in their output.
-
-File names using backslashes work as input to Lisp primitives even on
-MS-DOS and MS-Windows, even if @code{directory-sep-char} has its default
-value of @code{?/}.
-@end defvar
-@end ignore
 
 @node Relative File Names
 @subsection Absolute and Relative File Names
index ab43c2784dd09de3f3da3f066626f48fb3073712..2abbda3002511f06341e2f0e9df5df9258d4c58e 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -559,7 +559,7 @@ make-local-hook
 
 ** The following variables and aliases, obsolete since at least Emacs 21.1,
 have been removed:
-checkdoc-minor-keymap, vc-header-alist
+checkdoc-minor-keymap, vc-header-alist, directory-sep-char
 
 \f
 * Lisp changes in Emacs 24.1
index 741ef0d5e0c394efc835beaced0feb5c0683d8c8..e220416a4af23c35bb30191d9486b8ca65967ad3 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-03  Glenn Morris  <rgm@gnu.org>
 
+       * subr.el (directory-sep-char): Remove obsolete variable.
+       * net/tramp-compat.el: Don't mess about with the byte-compiler unless
+       it is "necessary".
+
        * vc/vc-hooks.el (vc-header-alist): Remove obsolete variable.
        * vc/vc.el (vc-static-header-alist): Doc fix.
        * vc/vc-cvs.el (vc-cvs-header):
index afbaa8064dc9870c2f915a0f5b3b8b127b9dd1f4..0a7502399f6052434b2b00694f8e833a71e599ea 100644 (file)
   ;; `directory-sep-char' is an obsolete variable in Emacs.  But it is
   ;; used in XEmacs, so we set it here and there.  The following is
   ;; needed to pacify Emacs byte-compiler.
-  (unless (boundp 'byte-compile-not-obsolete-var)
-    (defvar byte-compile-not-obsolete-var nil))
-  (setq byte-compile-not-obsolete-var 'directory-sep-char)
-  ;; Emacs 23.2.
-  (unless (boundp 'byte-compile-not-obsolete-vars)
-    (defvar byte-compile-not-obsolete-vars nil))
-  (setq byte-compile-not-obsolete-vars '(directory-sep-char))
+  ;; Note that it was removed altogether in Emacs 24.1.
+  (when (boundp 'directory-sep-char)
+    (unless (boundp 'byte-compile-not-obsolete-var)
+      (defvar byte-compile-not-obsolete-var nil))
+    (setq byte-compile-not-obsolete-var 'directory-sep-char)
+    ;; Emacs 23.2.
+    (unless (boundp 'byte-compile-not-obsolete-vars)
+      (defvar byte-compile-not-obsolete-vars nil))
+    (setq byte-compile-not-obsolete-vars '(directory-sep-char)))
 
   ;; `remote-file-name-inhibit-cache' has been introduced with Emacs 24.1.
   ;; Besides `t', `nil', and integer, we use also timestamps (as
index 2dcc37863c72b271ee614aa262534042092f472d..484340895be42bd6e6c3f1a5b679fdf6daf3b284 100644 (file)
@@ -1092,11 +1092,6 @@ is converted into a string by expressing it in decimal."
 (make-obsolete 'process-filter-multibyte-p nil "23.1")
 (make-obsolete 'set-process-filter-multibyte nil "23.1")
 
-(defconst directory-sep-char ?/
-  "Directory separator character for built-in functions that return file names.
-The value is always ?/.")
-(make-obsolete-variable 'directory-sep-char "do not use it, just use `/'." "21.1")
-
 (make-obsolete-variable
  'mode-line-inverse-video
  "use the appropriate faces instead."