GNU bug report logs - #12117
read-passwd deletes prompt

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Thu, 2 Aug 2012 08:25:01 UTC

Severity: minor

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Juri Linkov <juri <at> jurta.org>
Cc: 12117 <at> debbugs.gnu.org
Subject: bug#12117: read-passwd deletes prompt
Date: Mon, 06 Aug 2012 18:00:09 -0400
> The problem is that `find-file-noselect-1' binds `inhibit-read-only' to t
> before calling `insert-file-contents':

>             (let ((inhibit-read-only t))
>               (insert-file-contents filename t))

Hmm... I guess the problem is even more general: any minibuffer input
during insert-file-contents will suffer from it (granted, there usually
isn't much minibuffer input during such calls, luckily).

Maybe read-from-minibuffer should let-bind inhibit-read-only to nil?
That sounds ugly, tho.


        Stefan




This bug report was last modified 12 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.