# HG changeset patch # User Eli Zaretskii # Date 1166199844 0 # Node ID 11fae7eadf2da6c4d7cbac1dfa9d02c73935b655 # Parent 29deb6f5560463c1b8bb5d43e9c58448929384a3 Replace `/' with a `-', to fix a problem on Cygwin. diff -r 29deb6f55604 -r 11fae7eadf2d lisp/emulation/edt-mapper.el --- a/lisp/emulation/edt-mapper.el Fri Dec 15 16:11:08 2006 +0000 +++ b/lisp/emulation/edt-mapper.el Fri Dec 15 16:24:04 2006 +0000 @@ -3,8 +3,8 @@ ;; Copyright (C) 1994, 1995, 2000, 2001, 2002, 2003, 2004, ;; 2005, 2006 Free Software Foundation, Inc. -;; Author: Kevin Gallagher -;; Maintainer: Kevin Gallagher +;; Author: Kevin Gallagher +;; Maintainer: Kevin Gallagher ;; Keywords: emulations ;; This file is part of GNU Emacs. @@ -129,8 +129,12 @@ (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.") diff -r 29deb6f55604 -r 11fae7eadf2d lisp/emulation/edt.el --- a/lisp/emulation/edt.el Fri Dec 15 16:11:08 2006 +0000 +++ b/lisp/emulation/edt.el Fri Dec 15 16:24:04 2006 +0000 @@ -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 -;; Maintainer: Kevin Gallagher +;; Author: Kevin Gallagher +;; Maintainer: Kevin Gallagher ;; Keywords: emulations ;; This file is part of GNU Emacs. @@ -339,8 +339,12 @@ (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.")