diff options
| author | Eli Zaretskii | 2006-12-15 16:24:04 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-12-15 16:24:04 +0000 |
| commit | 6687ffc7be95eba9d7c25f51c1f7eb685ab54e16 (patch) | |
| tree | 1d960176b7676204973cb40348c3487023cfe3c5 | |
| parent | 09e5121dcb5c59c85f21689bbf0114bfe45b07c5 (diff) | |
| download | emacs-6687ffc7be95eba9d7c25f51c1f7eb685ab54e16.tar.gz emacs-6687ffc7be95eba9d7c25f51c1f7eb685ab54e16.zip | |
Replace `/' with a `-', to fix a problem on Cygwin.
| -rw-r--r-- | lisp/emulation/edt-mapper.el | 12 | ||||
| -rw-r--r-- | lisp/emulation/edt.el | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/emulation/edt-mapper.el b/lisp/emulation/edt-mapper.el index cee60c6ec8e..53bb8e63d33 100644 --- a/lisp/emulation/edt-mapper.el +++ b/lisp/emulation/edt-mapper.el | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | ;; Copyright (C) 1994, 1995, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1994, 1995, 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006 Free Software Foundation, Inc. | 4 | ;; 2005, 2006 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Kevin Gallagher <kevingal@onramp.net> | 6 | ;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com> |
| 7 | ;; Maintainer: Kevin Gallagher <kevingal@onramp.net> | 7 | ;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com> |
| 8 | ;; Keywords: emulations | 8 | ;; Keywords: emulations |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -129,8 +129,12 @@ | |||
| 129 | 129 | ||
| 130 | (defconst edt-xserver (if (eq edt-window-system 'x) | 130 | (defconst edt-xserver (if (eq edt-window-system 'x) |
| 131 | (if edt-x-emacs-p | 131 | (if edt-x-emacs-p |
| 132 | (replace-in-string (x-server-vendor) "[ _]" "-") | 132 | ;; The Cygwin window manager has a `/' in its |
| 133 | (subst-char-in-string ? ?- (x-server-vendor))) | 133 | ;; name, which breaks the generated file name of |
| 134 | ;; the custom key map file. Replace `/' with a | ||
| 135 | ;; `-' to work around that. | ||
| 136 | (replace-in-string (x-server-vendor) "[ /]" "-") | ||
| 137 | (subst-char-in-string ?/ ?- (subst-char-in-string ? ?- (x-server-vendor)))) | ||
| 134 | nil) | 138 | nil) |
| 135 | "Indicates X server vendor name, if applicable.") | 139 | "Indicates X server vendor name, if applicable.") |
| 136 | 140 | ||
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index ae131dc50e9..89d017a1cad 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | ;; Copyright (C) 1986, 1992, 1993, 1994, 1995, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1986, 1992, 1993, 1994, 1995, 2000, 2001, 2002, 2003, |
| 4 | ;; 2004, 2005, 2006 Free Software Foundation, Inc. | 4 | ;; 2004, 2005, 2006 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Kevin Gallagher <kevingal@onramp.net> | 6 | ;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com> |
| 7 | ;; Maintainer: Kevin Gallagher <kevingal@onramp.net> | 7 | ;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com> |
| 8 | ;; Keywords: emulations | 8 | ;; Keywords: emulations |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; 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'.") | |||
| 339 | 339 | ||
| 340 | (defconst edt-xserver (if (eq edt-window-system 'x) | 340 | (defconst edt-xserver (if (eq edt-window-system 'x) |
| 341 | (if edt-x-emacs19-p | 341 | (if edt-x-emacs19-p |
| 342 | (replace-in-string (x-server-vendor) "[ _]" "-") | 342 | ;; The Cygwin window manager has a `/' in its |
| 343 | (subst-char-in-string ? ?- (x-server-vendor))) | 343 | ;; name, which breaks the generated file name of |
| 344 | ;; the custom key map file. Replace `/' with a | ||
| 345 | ;; `-' to work around that. | ||
| 346 | (replace-in-string (x-server-vendor) "[ /]" "-") | ||
| 347 | (subst-char-in-string ?/ ?- (subst-char-in-string ? ?- (x-server-vendor)))) | ||
| 344 | nil) | 348 | nil) |
| 345 | "Indicates X server vendor name, if applicable.") | 349 | "Indicates X server vendor name, if applicable.") |
| 346 | 350 | ||