From: "WAROQUIERS Philippe" <philippe.waroquiers@eurocontrol.int>
To: "martin rudalics" <rudalics@gmx.at>
Cc: stephen_leake@stephe-leak.org, bug-gnu-emacs@gnu.org
Subject: RE: ada-mode ada-initialize-properties has an error with read-only files
Date: Tue, 14 Aug 2007 21:51:02 +0200 [thread overview]
Message-ID: <1B2B2EF98D55CB41BD16F13B18B9B0080303EE75@FFBRUE001.cfmu.corp.eurocontrol.int> (raw)
In-Reply-To: <46C1A0BF.1090509@gmx.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 #<buffer
>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)
=> 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 copy.
Any views expressed in this message are those of the sender.
next prev parent reply other threads:[~2007-08-14 19:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 11:17 ada-mode ada-initialize-properties has an error with read-only files Philippe Waroquiers
2007-08-12 9:19 ` martin rudalics
2007-08-14 12:31 ` martin rudalics
2007-08-14 19:51 ` WAROQUIERS Philippe [this message]
2007-08-14 21:16 ` martin rudalics
2007-08-16 21:42 ` WAROQUIERS Philippe
2007-08-17 7:16 ` Stephen Leake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1B2B2EF98D55CB41BD16F13B18B9B0080303EE75@FFBRUE001.cfmu.corp.eurocontrol.int \
--to=philippe.waroquiers@eurocontrol.int \
--cc=bug-gnu-emacs@gnu.org \
--cc=rudalics@gmx.at \
--cc=stephen_leake@stephe-leak.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.