emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

prolog.el and compile.el


From: Stefan Monnier
Subject: prolog.el and compile.el
Date: Mon, 24 Jan 2011 22:20:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

I see in your prolog.el the following piece of code:

     (with-current-buffer buffer
       (delete-region (point-min) (point-max))
       (compilation-mode)
       ;; Setting up font-locking for this buffer
       (set (make-local-variable 'font-lock-defaults)
            '(prolog-font-lock-keywords nil nil ((?_ . "w"))))
       (if (eq prolog-system 'sicstus)
           (progn
             (set (make-local-variable 'compilation-parse-errors-function)
                  'prolog-parse-sicstus-compilation-errors)))

This looks suspicious.  E.g. to the point it looks like it was written
for the compile.el from Emacs<22 and may not work that well for
Emacs>=22 which uses font-lock-keywords to parse errors.  But maybe
I don't understand it right, since calling compilation-mode also looks
odd since I though this buffer was supposed to use prolog-inferior-mode.

Can you help me figure it out?


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]