[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ada-mode ada-initialize-properties has an error with read-only files

From: WAROQUIERS Philippe
Subject: RE: ada-mode ada-initialize-properties has an error with read-only files
Date: Tue, 14 Aug 2007 21:51:02 +0200

> > 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 #<buffer 
> >
> > 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)
     => 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.
      => 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 are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 

Any views expressed in this message are those of the sender.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]