=== modified file 'lisp/progmodes/compile.el' --- lisp/progmodes/compile.el 2013-02-02 08:41:02 +0000 +++ lisp/progmodes/compile.el 2013-02-03 13:35:20 +0000 @@ -1318,6 +1318,24 @@ to `compilation-error-regexp-alist' if R file line end-line col end-col (or type 2) fmt)) (when (integerp file) + (when (integerp line) + (let* ((file-name (match-string file)) + (line-no (string-to-number (match-string line))) + (which-fn + (save-match-data + (with-current-buffer + (find-file-noselect file-name) + (goto-char (point-min)) + (forward-line (1- line-no)) + (which-function))))) + (overlay-put + (make-overlay (match-end file) (match-end file) + (current-buffer) t t) + 'after-string + (format "(%s)" + (propertize (or which-fn "global") + 'face 'cscope-function-face))))) + (compilation--put-prop file 'font-lock-face (if (consp type)