From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: toggle-read-only should not give compilation warnings Date: Wed, 11 Jul 2012 20:58:06 -0400 Message-ID: References: <877gubszqq.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1342054695 4975 80.91.229.3 (12 Jul 2012 00:58:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 00:58:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 02:58:15 2012 Return-path: Envelope-to: ged-emacs-devel@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 1Sp7jS-0005T5-G0 for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 02:58:14 +0200 Original-Received: from localhost ([::1]:56412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7jR-0003ES-LH for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2012 20:58:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7jP-0003EN-8C for emacs-devel@gnu.org; Wed, 11 Jul 2012 20:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp7jL-000527-ER for emacs-devel@gnu.org; Wed, 11 Jul 2012 20:58:11 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:37509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp7jL-00051o-8Q for emacs-devel@gnu.org; Wed, 11 Jul 2012 20:58:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Sp7jK-0000Qd-Az; Wed, 11 Jul 2012 20:58:06 -0400 In-reply-to: <877gubszqq.fsf@gnu.org> (message from Chong Yidong on Wed, 11 Jul 2012 12:11:57 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151547 Archived-At: The reason for putting toggle-read-only into that list is that it displays a message, and programmers who don't know better would often use it for code that wants to modify some read-only text, code that really ought to bind inhibit-read-only. There are lots of toggle-read-only warnings in the Emacs Lisp source tree. How many is "lots"? As far as I can tell, the overwhelming majority of these are all legitimate use cases. That may be true -- because most of the erroneous uses were already fixed thanks to this warning. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call