comp.lang.ada
 help / color / mirror / Atom feed
* Ada-mode 3.6
@ 2003-10-17  3:29 Adrian Hoe
  2003-10-20  8:20 ` Georg Bauhaus
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Hoe @ 2003-10-17  3:29 UTC (permalink / raw)


Hi,

I just downloaded the ada-mode 3.6 from http://libre.act-europe.fr/adamode/

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.

I have to "Save as" under same file name. After that, the problem 
disappear when I save the modified .adb and .ads file again.

I look at the source of ada-mode and have got no idea what causes this 
behavior.

Could anyone help?

Thanks and best regards,

--
Adrian Hoe




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ada-mode 3.6
  2003-10-17  3:29 Ada-mode 3.6 Adrian Hoe
@ 2003-10-20  8:20 ` Georg Bauhaus
  0 siblings, 0 replies; 2+ messages in thread
From: Georg Bauhaus @ 2003-10-20  8:20 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-20  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17  3:29 Ada-mode 3.6 Adrian Hoe
2003-10-20  8:20 ` Georg Bauhaus

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