Re: lmcompile-do-highlight and CVS-Emacs_2005-04-16
David PONCE <[email protected]> Fri, 27 May 2005 14:08:54 +0200 (CEST)
| Newsgroups | gmane.emacs.eieio |
|---|---|
| Message-ID | <16229138.1117195734499.JavaMail.www@wwinf1306> |
Hi Markus,
> Since I switched now permanently to the CVS-Emacs version dating
> from the 16th of April 2005 (precompiled binary for Windows
> downloadable from http://www.crasseux.com/emacs/), I wanted to ask
> about the status of the compile-reinitialize-errors replacement
> investigations.
>
> I had something like
>
> (add-to-list 'compilation-finish-functions
> (lambda (compilation-buffer finishing-message)
> (lmcompile-do-highlight)))
>
> in my .emacs file, but since lmcompile-do-highlight calls
> lmcompile-reinitialize-errors, which is defined as
>
> ;; Compatibility
> (if (fboundp 'compile-reinitialize-errors)
> (defalias 'lmcompile-reinitialize-errors 'compile-reinitialize-errors)
> ;; Newer versions of Emacs:
> (defun lmcompile-reinitialize-errors (&rest foo)
> "Find out what this should be."
> (error "Need replacement for `compile-reinitialize-errors")
> )
> )
>
> in lmcompile.el, it no longer works for recent Emacs versions.
According to what I understood the new compile.el library in CVS Emacs
now uses font-locking to highlight with different colors the various
kinds of compilation messages. So lmcompile.el shouldn't be necessary
anymore. Maybe could you change your .emacs like this and see if that
gives good results for you?
(when (fboundp 'compile-reinitialize-errors)
(add-to-list 'compilation-finish-functions
(lambda (compilation-buffer finishing-message)
(lmcompile-do-highlight)))
)
Sincerely,
David
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005