Re: a curious beep when selecting and replacing text in nedit
Re: a curious beep when selecting and replacing text in nedit
- Subject: Re: a curious beep when selecting and replacing text in nedit
- From: Jeremy Huddleston <email@hidden>
- Date: Thu, 4 Jun 2009 18:27:08 -0700
On Jun 4, 2009, at 18:10, Vernon Williams wrote:
It did this on 10.1, Jaguar, Panther, Tiger, and now Leopard.
It also did this on Sun work stations for many years.
Really? X11 was available for OS X 10.1? I always thought Panther
was the first. I guess I need a better history teacher. ;)
I just tested this on Tiger on my MacBook Pro, and on my
old Panther installation that I kept after moving to Leopard,
and I get a beep trying to edit a read only file.
As do I.
The thing that is different in Leopard is that it never used
to beep in this particular case in earlier versions of OS X,
of typing while text is selected, in order to replace the
selected text with that typed.
I don't get a beep while typing over selected text. I am using a
1.5.3 based server though right now... but there's nothing really
different in that area of the code between 1.4 and 1.5.
To make sure, I just tested this in Tiger on my MacBook
Pro and on my saved version of Panther, and there is no
beep if I select text and type text to replace the selected text.
Note that I am using the same nedit binary file on Panther,
Tiger, and Leopard.
Yes, so that shouldn't be the factor.
So the issue is not of beeping not working in previous
versions of OS X, but beeping not being triggered in this
case in previous versions of OS X (or in other OSes, like
SunOS).
Right. But I can't reproduce it here, so I don't know what to say
other than "hmm... odd..." :/
It is almost like selecting text is triggering some new event
handler or translation or something.
Do you happen to have proxy on select enabled in your clipboard
settings? That would be the only thing I can think of.
I can reproduce it easily. Bring up an empty nedit window
(just type "nedit"), type some text (like "abc"), double click
on the text to select it, and press the space bar. The "abc"
will be replaced with " ", as expected, but it will beep as it
does so, which it never did before.
Sorry, that doesn't beep here. =/
This may be some quirk of my ancient version of nedit
(5.3RC1, 3/19/2002).
I have:
$ nedit -version
UTF8 locale not supported.
NEdit 5.5
Sep 30, 2004
Built on: MacOS X, PowerPC Altivec, GNU C
Built at: Jun 4 2009, 16:12:01
With Motif: 2.3.1 [@(#)Motif Version 2.3.1] (UNTESTED)
Running Motif: 2.3 [unknown]
Server: The X.Org Foundation 10503000
Visual: 24-bit TrueColor (ID 0x22, Default)
Locale: en_US.UTF-8
but this is puzzling since it doesn't beep on Tiger for you.
I may have to try to get a newer
version and see if that exhibits this "feature". Actually, I
am amazed that a binary from June of 2002 still even
works at all, on Leopard, and on Tiger on my Intel
MacBook Pro via Rosetta. But, quirk or not, it worked
properly on earlier versions of OS X, and works great
on Leopard except for this one little oddity.
I don't have my original nedit source anymore, having
lost it in a disk crash 4 1/2 years ago. I believe I got the
source from a web site devoted to just nedit, from its
authors or maintainers.
I'd recommend MacPorts. Just install MacPorts, then run 'sudo port -v
install nedit'.
I just had a thought, brought up an xterm, typed in part of
a command line, double clicked on part of the line to
select it, and tried to type something. It did not replace
the selected text, since xterm is not an editor. However,
it did beep when I typed the text, just like in nedit. I then
tried the same thing with an xterm under Tiger on my
MacBook Pro, and there was no beep.
This suggests that the problem has nothing to do with
nedit, but that selecting text is setting some flag that then
triggers the beep when more text is typed.
The only thing that is really triggered on selection of text is that
option in the clipboard settings that I mentioned earlier, but it is
disabled by default.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden