From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12117: read-passwd deletes prompt Date: Tue, 07 Aug 2012 11:08:31 -0400 Message-ID: References: <87vcihuzdp.fsf@mail.jurta.org> <87lihr7eke.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344352159 6072 80.91.229.3 (7 Aug 2012 15:09:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 15:09:19 +0000 (UTC) Cc: 12117@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 17:09:19 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SylPH-000500-QM for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 17:09:15 +0200 Original-Received: from localhost ([::1]:52021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SylPG-0005ko-Vk for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 11:09:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SylPB-0005kP-HI for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 11:09:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SylP5-0006ha-O6 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 11:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SylP5-0006hV-L9 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 11:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SylWo-0006Er-Cg for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Aug 2012 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12117-submit@debbugs.gnu.org id=B12117.134435259323941 (code B ref 12117); Tue, 07 Aug 2012 15:17:02 +0000 Original-Received: (at 12117) by debbugs.gnu.org; 7 Aug 2012 15:16:33 +0000 Original-Received: from localhost ([127.0.0.1]:39889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SylWK-0006E5-IG for submit@debbugs.gnu.org; Tue, 07 Aug 2012 11:16:33 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:48063) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SylWJ-0006Dy-Df for 12117@debbugs.gnu.org; Tue, 07 Aug 2012 11:16:32 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q77F8VXt030671; Tue, 7 Aug 2012 11:08:31 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id A88A3B4081; Tue, 7 Aug 2012 11:08:31 -0400 (EDT) In-Reply-To: <87lihr7eke.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 07 Aug 2012 03:04:17 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4303=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4303> : streams <795846> : uri <1186098> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62914 Archived-At: >> 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. > Since there is not much minibuffer input during insert-file-contents > (one is known at the moment) then perhaps it would be safer to fix > just these places specific to insert-file-contents: No, I'd rather fix it in read-from-minibuffer than in just those specific cases we bump into. I think the "right" fix might be to make inhibit-read-only buffer-local. But I fear some code relies on it being global, so it might introduce bugs. Stefan