From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "WAROQUIERS Philippe" Newsgroups: gmane.emacs.bugs Subject: RE: ada-mode ada-initialize-properties has an error with read-only files Date: Tue, 14 Aug 2007 21:51:02 +0200 Message-ID: <1B2B2EF98D55CB41BD16F13B18B9B0080303EE75@FFBRUE001.cfmu.corp.eurocontrol.int> References: <46C1A0BF.1090509@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187121169 15231 80.91.229.12 (14 Aug 2007 19:52:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2007 19:52:49 +0000 (UTC) Cc: stephen_leake@stephe-leak.org, bug-gnu-emacs@gnu.org To: "martin rudalics" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 21:52:47 2007 Return-path: Envelope-to: geb-bug-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 1IL2Ra-0004ym-1g for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 21:52:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IL2RZ-0000XM-1X for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2007 15:52:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IL2QM-0008Ts-Nk for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 15:51:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IL2QL-0008Sc-IM for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 15:51:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IL2QL-0008SW-CA for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 15:51:29 -0400 Original-Received: from exprod8og54.obsmtp.com ([64.18.3.90]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IL2QK-0001DW-Ng for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2007 15:51:29 -0400 Original-Received: from source ([193.221.170.178]) by exprod8ob54.obsmtp.com ([64.18.7.12]) with SMTP; Tue, 14 Aug 2007 12:51:14 PDT Original-Received: from HHBRUE007.hq.corp.eurocontrol.int (hhbrue007.hq.corp.eurocontrol.int [193.221.160.203]) by ecw.eurocontrol.int (8.12.10/8.12.7) with ESMTP id l7EJp7H3004318; Tue, 14 Aug 2007 21:51:11 +0200 (MEST) Original-Received: from FFBRUE001.cfmu.corp.eurocontrol.int ([193.58.25.50]) by HHBRUE007.hq.corp.eurocontrol.int with Microsoft SMTPSVC(6.0.3790.2499); Tue, 14 Aug 2007 21:51:07 +0200 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <46C1A0BF.1090509@gmx.at> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ada-mode ada-initialize-properties has an error with read-only files Thread-Index: Acfeb1+I4xK4jbgcS46XlZZpqC0fhwAPH+Bg X-OriginalArrivalTime: 14 Aug 2007 19:51:07.0733 (UTC) FILETIME=[74B86050:01C7DEAC] X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16359 Archived-At: > > We have encountered a small problem with the ada-mode and emacs 22. > > When an Ada file is visited in emacs (in this case, I find this file > > with M-x find-tag) and this Ada file is a read-only file, > > we see an error message appearing in the mini-buffer/*Messages*: > > File mode specification error: (buffer-read-only #flight.adb>) > > > > After investigation, we see that this error message is produced > > by ada-initialize-properties. > >I've been looking into this and noted that handling syntax-table >properties seems completely broken unless done by font-lock. Could you >please try the attached patch and tell me whether it gives good results >with font-lock-mode enabled _and_ disabled. Thanks. I have done the following: * applied the patch on ada-mode.el * started emacs -Q * M-x load-file ada-mode.el * loaded an Ada file * re-indented the complete buffer (with font-lock enabled) =3D> indentation was correctly done. * put the cursor inside a single character (e.g. 'a') + evaluated (ada-in-string-p) before a, on a, after a. =3D> expected result obtained. * did the same tests after having disabled font-lock mode Obtained same results except that re-indenting without font-lock is a *lot* slower. So, from what I can see with this little test, the patch seems ok (assuming I have done some relevant tests). Thanks for your work ... ____ This message and any files transmitted with it are legally privileged and= intended for the sole use of the individual(s) or entity to whom they ar= e addressed. If you are not the intended recipient, please notify the sen= der by reply and delete the message and any attachments from your system.= Any unauthorised use or disclosure of the content of this message is str= ictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitme= nt on the part of EUROCONTROL, unless it is confirmed by appropriately si= gned hard copy. Any views expressed in this message are those of the sender. =0D