all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cedet and lmcompile
@ 2007-01-12 20:19 fred
  2007-01-15  5:21 ` Kevin Rodgers
       [not found] ` <mailman.3086.1168880189.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: fred @ 2007-01-12 20:19 UTC (permalink / raw)


Hi,
In the Cedet web site, it is said that
"You can also add the above command [lmcompile-do-highlight] to
compilation-finish-functions to have it occur automatically."
How? I don't know anything about elisp!!
Would it be something like this
(setq compilation-finish-functions '(lmcompile-do-highlight))
?
Thanks.
Fred

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cedet and lmcompile
  2007-01-12 20:19 Cedet and lmcompile fred
@ 2007-01-15  5:21 ` Kevin Rodgers
       [not found] ` <mailman.3086.1168880189.2155.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2007-01-15  5:21 UTC (permalink / raw)


fred@mayot.net wrote:
> Hi,
> In the Cedet web site, it is said that
> "You can also add the above command [lmcompile-do-highlight] to
> compilation-finish-functions to have it occur automatically."
> How? I don't know anything about elisp!!
> Would it be something like this
> (setq compilation-finish-functions '(lmcompile-do-highlight))

Almost: (add-hook 'compilation-finish-functions 'lmcompile-do-highlight)


-- 
Kevin Rodgers
Denver, Colorado, USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cedet and lmcompile
       [not found] ` <mailman.3086.1168880189.2155.help-gnu-emacs@gnu.org>
@ 2007-01-16 14:25   ` Fred
  2007-01-18  5:57     ` Kevin Rodgers
       [not found]     ` <mailman.3237.1169099839.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Fred @ 2007-01-16 14:25 UTC (permalink / raw)


Thanks but...
A command seems to be executed after the compilation process. The pb is
that this command generates an error.
If I type manually lmcompile-do-highlight, OK.
With the add-hook, pb. The error appears in the mini buffer is not very
clear (wrong type of argumnent... + binary data)

Kevin Rodgers wrote:
> fred@mayot.net wrote:
> > Hi,
> > In the Cedet web site, it is said that
> > "You can also add the above command [lmcompile-do-highlight] to
> > compilation-finish-functions to have it occur automatically."
> > How? I don't know anything about elisp!!
> > Would it be something like this
> > (setq compilation-finish-functions '(lmcompile-do-highlight))
>
> Almost: (add-hook 'compilation-finish-functions 'lmcompile-do-highlight)
> 
> 
> -- 
> Kevin Rodgers
> Denver, Colorado, USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cedet and lmcompile
  2007-01-16 14:25   ` Fred
@ 2007-01-18  5:57     ` Kevin Rodgers
       [not found]     ` <mailman.3237.1169099839.2155.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2007-01-18  5:57 UTC (permalink / raw)


[Please don't top-post.]

Fred wrote:
> Thanks but...
> A command seems to be executed after the compilation process. The pb is
> that this command generates an error.
> If I type manually lmcompile-do-highlight, OK.
> With the add-hook, pb. The error appears in the mini buffer is not very
> clear (wrong type of argumnent... + binary data)

What does `C-h f lmcompile-do-highlight' say about its arguments?

If you set debug-on-error to t before running it via the hook, a
*Backtrace* buffer will be displayed.  Post it so we can see what
function is signalling the error, what type it is expecting for
its argument, and what function called it.

> Kevin Rodgers wrote:
>> fred@mayot.net wrote:
>>> Hi,
>>> In the Cedet web site, it is said that
>>> "You can also add the above command [lmcompile-do-highlight] to
>>> compilation-finish-functions to have it occur automatically."
>>> How? I don't know anything about elisp!!
>>> Would it be something like this
>>> (setq compilation-finish-functions '(lmcompile-do-highlight))
>> Almost: (add-hook 'compilation-finish-functions 'lmcompile-do-highlight)

-- 
Kevin Rodgers
Denver, Colorado, USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cedet and lmcompile
       [not found]     ` <mailman.3237.1169099839.2155.help-gnu-emacs@gnu.org>
@ 2007-01-23 23:17       ` Fred
  0 siblings, 0 replies; 5+ messages in thread
From: Fred @ 2007-01-23 23:17 UTC (permalink / raw)


Result of `C-h f lmcompile-do-highlight':
-------------------------
lmcompile-do-highlight is an interactive compiled Lisp function in
`lmcompile'.
(lmcompile-do-highlight)

Do compilation mode highlighting.
Works on grep, compile, or other type mode.
-------------------------


Here is the result after debug-on-error
-------------------------
Debugger entered--Lisp error: (wrong-number-of-arguments #[nil "Æ ˆÇ
\x10ÈÉ!ˆŠ\bqˆ	)‰\x1a…²É‰‰‰Êɉ^[\x1c\x1d\x1e\x1c\x1e\x1d\x1e\x1e\x1e\x1f
@@\x16\x1f
@A<ƒZ
@A@\x16\x1eË
@8\x16\x1d\x0e\x1eA@\x0e\x1e@P\x16\x1eÌ\x0e\x1e!„y
@A@@\x16\x1e‚yÍÎ
@A!!\x16\x1eŠÎ
@A!qˆŠ
@AbˆÏÐ`T\"*\x16\x1dÌ\x0e\x1e!„ŠÑÎ
@A!!ƒ¨ÉÒӏˆÉÔՏˆÖ\x0e ×\x0e\x1eØ\x0e\x1dÙ\x0e\x1fÚ\x0e\x1cÛ\v&\v\x14.\a
A‰\x12„\x15É)‡" [compilation-last-buffer compilation-error-list marks txt
entry case-fold-search lmcompile-clear compilation-find-buffer
lmcompile-reinitialize-errors nil t 2 file-exists-p buffer-name
marker-buffer count-lines 1 bufferp (byte-code "ŠÂ\b!qˆŠ\bbˆÃÄÅ
Æ#ƒ\x17Ç‚%ÃÈÅ Æ#ƒ$É‚%Ê\x11*‡" [errmark face marker-buffer
re-search-forward "error" point-at-eol t linemark-stop-face "warning"
linemark-caution-face linemark-go-face] 4) ((error)) (byte-code
"ŠÂ\b!qˆŠ\bbˆÃÄ Å
\"\x11ÆÇ	\"ƒ!	È•ÉO\x11‚\x11ÆÊ	\"ƒ.	È•ÉO\x11*ɇ" [errmark txt
marker-buffer buffer-substring-no-properties point-at-bol point-at-eol
string-match "[0-9]:" 0 nil "^\\s-++"] 3) ((error)) linemark-add-entry
:filename :line :errormarker :face :errmsg face line file errmark
lmcompile-error-group] 13
("/homedir/fmayot/cedet-1.0pre3/eieio/lmcompile.elc" . 2804) nil] 2)
  lmcompile-do-highlight(#<buffer *compilation*> "exited abnormally
with code 2\n")
  compilation-handle-exit(exit 2 "exited abnormally with code 2\n")
  compilation-sentinel(#<process compilation> "exited abnormally with
code 2\n")
-------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-23 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 20:19 Cedet and lmcompile fred
2007-01-15  5:21 ` Kevin Rodgers
     [not found] ` <mailman.3086.1168880189.2155.help-gnu-emacs@gnu.org>
2007-01-16 14:25   ` Fred
2007-01-18  5:57     ` Kevin Rodgers
     [not found]     ` <mailman.3237.1169099839.2155.help-gnu-emacs@gnu.org>
2007-01-23 23:17       ` Fred

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.