On Thursday, February 21, 2002, at 03:20 PM, [EMAIL PROTECTED] wrote:

the xemacs error message under the new XFree86 can be removed by putting
the following in your .tcshrc startup file
xmodmap -e "remove Mod1 = Alt_R"
This assumes that you are running XDarwin upon startup (which is my
default). If not, you probably need some kind of case statement that
executes xmodmap only when an X server is running. I haven't tried to do
exaclty what you wanted in this last message, but maybe this helps
somehow. xmodmap is the thing you need.

So the obvious next question is, how can you tell when .tcshrc is run whether XDarwin is running or not? I tried putting

if ( $?DISPLAY == 1 ) xmodmap -e "remove Mod1 = Alt_R"

in my .tcshrc, but that didn't work (although when I ran that in an xterm window and then started up xemacs from that xterm, I did get the right result).

--
Stephen R. Anderson
Professor of Linguistics and Cognitive Science (Chair)
Yale University
Phone: 203 432-2456
FAX: 203 432-4087
Email: <[EMAIL PROTECTED]>
Web: http://bloch.ling.yale.edu/

Reply via email to