From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: completion should not inherit read-only property Date: Thu, 07 Dec 2006 15:43:25 -0700 Organization: IHS Message-ID: References: <17784.21266.323656.308120@gargle.gargle.HOWL> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165531497 30389 80.91.229.10 (7 Dec 2006 22:44:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 22:44:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 07 23:44:57 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsRz5-0001CJ-4k for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 23:44:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsRz4-0001Lx-H6 for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 17:44:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsRyj-0001L9-Qx for emacs-devel@gnu.org; Thu, 07 Dec 2006 17:44:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsRyh-0001Kv-1l for emacs-devel@gnu.org; Thu, 07 Dec 2006 17:44:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsRyg-0001Ks-Te for emacs-devel@gnu.org; Thu, 07 Dec 2006 17:44:30 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GsRyg-0002WH-Mk for emacs-devel@gnu.org; Thu, 07 Dec 2006 17:44:31 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GsRyb-00011b-Rr for emacs-devel@gnu.org; Thu, 07 Dec 2006 23:44:25 +0100 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Dec 2006 23:44:25 +0100 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Dec 2006 23:44:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <17784.21266.323656.308120@gargle.gargle.HOWL> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63438 Archived-At: T. V. Raman wrote: > I've noticed that recently, completion has started inheriting the > read-only property. > > Test: if you have a string in a read-only buffer > e.g. foobarbasbar > > and you then type foo and complete it to foobarbasbar using > command `complete' then the completed string ends up read-only. What is this command `complete'? What major and minor modes are you using and how do you invoke `complete'? > This is an irritant because if this happens to you in a mail > composition buffer (I use vm) then sending mail fails because > part of the buffer is read-only --- you end up having to eval > the appropriate lisp expression to remove the read-only property > with something like: > (let ((inhibit-read-only t)) > (put-text-property start end > 'read-only nil)) -- Kevin