emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug] read-passwd of CVS Emacs


From: David Kastrup
Subject: Re: [bug] read-passwd of CVS Emacs
Date: Thu, 25 May 2006 00:08:48 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Rodgers <address@hidden> writes:

> David Kastrup wrote:
>> Kevin Rodgers <address@hidden> writes:
>>
>>> Kazu Yamamoto (山本和彦) wrote:
>>>> If the CONFIRM argument is specified to read-passwd of CVS Emacs, it
>>>> causes an error after a user type a first password.
>>>>
>>>>    (read-passwd "password: " t)
>>> The error is "Attempt to modify read-only object" and is somehow caused
>>> by a string indexing bug.  Here's a patch:
> ...
>> Looks like causing trouble when the prompt is an empty string.  And it
>> looks like it would leave the properties off the last character of the
>> prompt.  Correct?
>
> You're right on both counts -- thanks for catching that!  I should have
> investigated further before posting a patch that has nothing to do with
> the underlying error.
>
> The strange thing is that the error is definitely triggered by the call
> to add-text-properties, but only in the second recursive call (not the
> first):

Maybe because adding text properties to an already read-only text is
prohibited?  In that case one would either have to refrain from doing
it, or bind inhibit-read-only to t while doing it.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]