Hi Uwe,

The overlay abstraction should avoid the warnings, but perhaps the defalias 
isn't working with the byte compiler correctly.  I don't know why those 
warnings exist.  It may be an eval-and-compile type trick is needed around that 
block.

There were some other warnings in the list where I suspect we just need to move 
a definition sooner in the file.  I think they are harmless otherwise.

There are some changes from Emacsen that are pretty old, perhaps we can just 
claim to not support Emacs 22 or earlier.  That was quite a while ago.

Eric

-----Original Message-----
From: Uwe Brauer [mailto:o...@mat.ucm.es] 
Sent: Friday, September 02, 2016 8:09 AM
To: John Ciolfi <john.cio...@mathworks.com>
Cc: matlab-emacs-discuss@lists.sourceforge.net
Subject: Re: [Matlab-emacs-discuss] compiler warnings

>>> "John" == John Ciolfi <john.cio...@mathworks.com> writes:

   > I just updated to the latest matlab emacs and see a few warnings. I
   > realize some of these are to support older emacs's but some look like
   > they could be fixed (and maybe suppress the others for older
   > releases)? I'm building on Debian 8 using emacs 24.4.1

I am on GNU emacs 25 (git version, after being a die hard Xemacs user for ages).

IMHO the GNU emacs team changes to much the definition of variables (which 
could break backward compatibility), but I don't want to change the naming of 
certain variable because GNU emacs 23 and Xemacs users could run into problems, 
not that there are many left, but...

The most harmful warnings I can detect are those starting with

   > matlab.el:5867:1:Warning: the following functions are not known to be 
defined:
   >     extent-list, start-itimer, matlab-overlays-at, matlab-overlay-get,

Some of the stuff looks Xemacs specific so maybe we should wrap
a (if    (featurep 'xemacs) around it, Eric any ideas?


Uwe Brauer 


------------------------------------------------------------------------------
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

------------------------------------------------------------------------------
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to