]> git.eshelyaron.com Git - emacs.git/commitdiff
Replace `/' with a `-', to fix a problem on Cygwin.
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 Dec 2006 16:24:04 +0000 (16:24 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 Dec 2006 16:24:04 +0000 (16:24 +0000)
lisp/emulation/edt-mapper.el
lisp/emulation/edt.el

index cee60c6ec8eaccba4688c20d1f53b559bcbf95d5..53bb8e63d33b2aab72f2129f49bca377dea939e0 100644 (file)
@@ -3,8 +3,8 @@
 ;; Copyright (C) 1994, 1995, 2000, 2001, 2002, 2003, 2004,
 ;;   2005, 2006 Free Software Foundation, Inc.
 
-;; Author: Kevin Gallagher <kevingal@onramp.net>
-;; Maintainer: Kevin Gallagher <kevingal@onramp.net>
+;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
+;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
 ;; Keywords: emulations
 
 ;; This file is part of GNU Emacs.
 
 (defconst edt-xserver (if (eq edt-window-system 'x)
                          (if edt-x-emacs-p
-                             (replace-in-string (x-server-vendor) "[ _]" "-")
-                           (subst-char-in-string ?  ?- (x-server-vendor)))
+                             ;; The Cygwin window manager has a `/' in its
+                             ;; name, which breaks the generated file name of
+                             ;; the custom key map file.  Replace `/' with a
+                             ;; `-' to work around that.
+                             (replace-in-string (x-server-vendor) "[ /]" "-")
+                           (subst-char-in-string ?/ ?- (subst-char-in-string ?  ?- (x-server-vendor))))
                        nil)
   "Indicates X server vendor name, if applicable.")
 
index ae131dc50e907cd6a957d33ef057ae09ef090c83..89d017a1cad3c112798006057d22222a4745c5a3 100644 (file)
@@ -3,8 +3,8 @@
 ;; Copyright (C) 1986, 1992, 1993, 1994, 1995, 2000, 2001, 2002, 2003,
 ;;   2004, 2005, 2006 Free Software Foundation, Inc.
 
-;; Author: Kevin Gallagher <kevingal@onramp.net>
-;; Maintainer: Kevin Gallagher <kevingal@onramp.net>
+;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
+;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
 ;; Keywords: emulations
 
 ;; This file is part of GNU Emacs.
@@ -339,8 +339,12 @@ This means that an edt-user.el file was found in the user's `load-path'.")
 
 (defconst edt-xserver (if (eq edt-window-system 'x)
                          (if edt-x-emacs19-p
-                             (replace-in-string (x-server-vendor) "[ _]" "-")
-                           (subst-char-in-string ?  ?- (x-server-vendor)))
+                             ;; The Cygwin window manager has a `/' in its
+                             ;; name, which breaks the generated file name of
+                             ;; the custom key map file.  Replace `/' with a
+                             ;; `-' to work around that.
+                             (replace-in-string (x-server-vendor) "[ /]" "-")
+                           (subst-char-in-string ?/ ?- (subst-char-in-string ?  ?- (x-server-vendor))))
                        nil)
   "Indicates X server vendor name, if applicable.")