From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.help Subject: Re: Annoying message "Text is read only" Date: Tue, 16 Sep 2008 23:11:02 +1000 Organization: I know I put it down here, somewhere. Message-ID: <87abe8me1l.fsf@rimspace.net> References: <87tzcgbo7y.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1221571271 8150 80.91.229.12 (16 Sep 2008 13:21:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 13:21:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 15:22:08 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfaT1-0002B5-3c for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 15:19:43 +0200 Original-Received: from localhost ([127.0.0.1]:48365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfaRz-0002NB-EQ for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 09:18:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfaRh-0002N6-3M for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:18:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfaRf-0002Mi-JY for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:18:20 -0400 Original-Received: from [199.232.76.173] (port=59424 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfaRf-0002Mf-HF for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:18:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:33153 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfaRf-0005ve-51 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:18:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KfaRX-0007u9-Iy for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 13:18:11 +0000 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2008 13:18:11 +0000 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2008 13:18:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-Distribution: bofh Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:VrNIGgonsrYAioCdZunmmrtzP5w= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57696 Archived-At: Davin Pearson writes: > On Sep 16, 7:29 pm, Daniel Pittman wrote: >> This is a traditional default; try: >> >>    M-x customize-variable minibuffer-prompt-properties >> >> Enable the "Don't Enter" option and save your changes, which will >> implement what you expect.  (Well, no beep, but you can't move over the >> text any longer.) > > The following code appears to work: > > (setq minibuffer-prompt-properties (remove 'read-only minibuffer- > prompt-properties)) Ouch. That risks causing *serious* breakage: `minibuffer-prompt-properties' is a plist, which means that it needs to have an even number of elements. You just removed one, potentially leaving an odd number, which could be bad. (As in, nothing that tries to prompt in the minibuffer works any more bad.) Anyway, as far as I can tell that would allow you to edit the prompt text, which probably isn't as desirable as not being able to move there. I use: (plist-put minibuffer-prompt-properties 'point-entered 'minibuffer-avoid-prompt) That has the same effect as the custom stuff, but is plist safe and avoids the cursor getting in there in the first place. Regards, Daniel