comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Ada-mode 3.6
Date: Mon, 20 Oct 2003 08:20:16 +0000 (UTC)
Date: 2003-10-20T08:20:16+00:00	[thread overview]
Message-ID: <bn05s0$cu7$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 3f8f6122_1@news.tm.net.my

Adrian Hoe <mailbox@adrianhoe.nospam.com.my> wrote:
: I installed it to xemacs 21.1.14 on Sparc/Solaris 9. Every time I 
: "first" open .adb and .ads files, xemacs gives me "No such face: 
: font-lock_constant-face". And I can't save the modified .adb and .ads 
: files. Sometimes, xemacs will give the above error and other time it 
: will give "Symbol's function definition is void: 
: delete-trailing-whitespace".
: 
: On my SuSE 8.2 Linux box, the xemacs 21.4 April 2001 will not have 
: problem when opening .adb and .ads files. But, it will give "Symbol's 
: function definition is void: delete-trailing-whitespace" when trying to 
: save a modified .ads and .adb file.

These might have to do with differing versions of emacs;
(is ada-mode made with XEmacs in mind? I think it isn't)
"delete-trailing-whitespace is an interactive compiled Lisp function
in `simple'\ .  (delete-trailing-whitespace)", so you can add the
definition from GNU Emacs' simple.el, or add your own definition
to your startup files. Just make sure this function is known when
the ada mode functions start working.

font-lock-constant-face might be different in XEmacs, too, in 
particular in older versions. Here is a sample find:
"- XEmacs only: `font-lock-builtin-face' and `font-lock-constant-face'
  are now based on respectively `font-lock-preprocessor-face' and
  `font-lock-reference-face' if available."
(XEmacs and GNU Emacs developers have/have had different views
of how international character sets and fonts should be handled...)
 
Maybe you can try basic-save-buffer instead of C-x C-s?
Or remove some functions off the save hooks?



HTH, georg



      reply	other threads:[~2003-10-20  8:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-17  3:29 Ada-mode 3.6 Adrian Hoe
2003-10-20  8:20 ` Georg Bauhaus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox