X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/abab0678161b2c8cd92d285589ae53bb2b191884..23a624ca1d40fa9cefd7229ac6152b79278a6517:/packages/ada-mode/gnat-inspect.el diff --git a/packages/ada-mode/gnat-inspect.el b/packages/ada-mode/gnat-inspect.el old mode 100755 new mode 100644 index 1c05fa8d2..5fb2d4ba5 --- a/packages/ada-mode/gnat-inspect.el +++ b/packages/ada-mode/gnat-inspect.el @@ -213,8 +213,12 @@ set compilation-mode with compilation-error-regexp-alist set to COMP-ERR." (gnat-inspect-session-send cmd-1 t) ;; at EOB. gnatinspect returns one line per result (setq result-count (- (line-number-at-pos) 1)) - (font-lock-fontify-buffer) + (if (fboundp 'font-lock-ensure) + (font-lock-ensure) + (font-lock-fontify-buffer)) ;; font-lock-fontify-buffer applies compilation-message text properties + ;; NOTE: Won't be needed in 24.5 any more, since compilation-next-error + ;; will apply compilation-message text properties on the fly. ;; IMPROVEME: for some reason, next-error works, but the font ;; colors are not right (no koolaid!) (goto-char (point-min)) @@ -226,6 +230,7 @@ set compilation-mode with compilation-error-regexp-alist set to COMP-ERR." ;; just go there, don't display session-buffer. We have to ;; fetch the compilation-message while in the session-buffer. (let* ((msg (compilation-next-error 0 nil (point-min))) + ;; FIXME: Woah! This is messing with very internal details! (loc (compilation--message->loc msg))) (setq file (caar (compilation--loc->file-struct loc)) line (caar (cddr (compilation--loc->file-struct loc))) @@ -495,7 +500,6 @@ Enable mode if ARG is positive" (setq ada-make-package-body 'ada-gnat-make-package-body) (add-hook 'ada-syntax-propertize-hook 'gnatprep-syntax-propertize) - (add-hook 'ada-syntax-propertize-hook 'ada-gnat-syntax-propertize) ;; must be after indentation engine setup, because that resets the ;; indent function list. @@ -519,7 +523,6 @@ Enable mode if ARG is positive" (setq ada-make-package-body nil) (setq ada-syntax-propertize-hook (delq 'gnatprep-syntax-propertize ada-syntax-propertize-hook)) - (setq ada-syntax-propertize-hook (delq 'ada-gnat-syntax-propertize ada-syntax-propertize-hook)) (setq ada-mode-hook (delq 'ada-gnat-inspect-setup ada-mode-hook)) (setq ada-xref-other-function nil)