www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <BC46D442BCFB6340A9BB1CED6766E36E024E7171@tons2226> |
From: | "Willis, Matthew" <Matthew DOT Willis AT CIBC DOT ca> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | Observation - ntemacs + rcs + cygwin note (lowercase+uppercase us |
erid workaround) | |
Date: | Tue, 3 Jun 2003 13:38:53 -0400 |
MIME-Version: | 1.0 |
First off, I know this is slightly offtopic since it mentions a program (ntemacs) which is not part of cygwin, but I figured I would just chime in with a finding which may be potentially useful to cygwin users who use ntemacs. I use ntemacs in preference to the cygwin /usr/bin/emacs, because of the native gui. I have a cygwin wrapper that does "cygpath -w" to my cygwin path names, and then passes the arg list to ntemacs. I found that on some machines, ntemacs+rcs would behave very strangely. I would be asked to steal the lock from "willisma" -- my userid. It worked fine on other machines. This did not occur in cygwin /usr/bin/emacs by the way. I found that vc-user-login-name was returning "WILLISMA" but the rcs file was locked by "willisma". Case sensitive comparison. Anyway, the simplest workaround I found was to put a single line in my ntemacs script converting USERNAME to the lowercase. #!/bin/sh # ntemacs.sh - a cygwin wrapper for ntemacs export USERNAME=`echo $USERNAME | tr 'A-Z' 'a-z'` WNAMES= for k in $* ; do WNAMES="${WNAMES} `cygpath -w $k`" done /cygdrive/c/emacs-21.3/bin/runemacs.exe $WNAMES -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |