Am 01.10.2009 um 02:21 schrieb LanX:
The emacs 23 is a snapshot installation parallel to my "normal" emacs
22, does this lead to conflicts?
No. Check load-path. Maybe re-organise the init files.
--
Greetings
Pete
Indentation?! I will show you how to indent when I indent your skull!
Is your question specifically about some kind of color highlighting
in the compilation buffer, or is it about just getting a listing of
errors?
If you don't get a listing of errors, what *does* appear in the
compilation buffer? Do you get any output at all?
> you never used it?
Not much, though I have it installed. I don't need it for perl stuff,
and haven't yet gotten into the habit of using it for non-perl stuff.
This Works For Me:
emacs -Q -l /usr/local/share/emacs/site-lisp/mode-compile.el ~/bin/some_perl_script
ESC-x mode-compile <RET>
<RET>
But then, just running "ESC-x compile" also Works For Me (after manually
changing the run string from that idiotic "make -k" guess to
"perl /home/doom/bin/some_perl_script").
I'm running a cvs build of emacs from july 8th, 2009 (and it's about
time I pulled another...):
GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1) of 2009-07-08 on fineline
The version of mode-compile.el I have is "2.28".
> I get the normal output of running perl in an extra buffer.
Right, exactly.
> Cperl-mode passes regexes to compile-mode to properly parse error and
> warning messages. They are highlighted. You can click on them to jump to the
> sourceline causing the error or you can jump by keybinding from error to
> error.
Yes, got it. I would call them "active" myself. Talking about
"highlighting" makes it sound like a complaint about the display,
not whether you can use the "next-error" command.
> No problem with gnu 22 but gnu 23 only shows the output and claims there are
> no errors.
Um... do you mean "no warnings"? (If there were errors, you wouldn't
get any output, right?)
If you don't see the warnings at all, then it's not a problem with
whether mode-compile or compile can parse them.
LanX <lanx...@googlemail.com> wrote:
> you never used it?
>
> I get the normal output of running perl in an extra buffer.
>
> Cperl-mode passes regexes to compile-mode to prperly parse error and
> warning messages. They are highlighted. You can click on them to jump to the
> sourceline causing the error or you can jump by keybinding from error to
> error.
>
> No problem with gnu 22 but gnu 23 only shows the output and claims there are
> no errors.
>
> actually it's the same problem with proper perl-mode, but sh and python
> don't have this problem.
>
> Just need an independent confirmation before sending a bug-report.
>
> Crossposts:
> http://perlmonks.org/?node_id=798725
> http://groups.google.de/group/gnu.emacs.help/browse_thread/thread/c1a62e304177fefe#
>
> I think I could patch that manually by reconfiguring the parsing-regexes but
> I think good bug report is always valuable.
>
>
> 2009/10/1 Joe Brenner <do...@kzsu.stanford.edu>
>
> >
> --00504502cc18fc60e30474e5c9b2
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> you never used it?<br><br>
> I get the normal output of running perl in an extra buffer. <br>
> <br>Cperl-mode passes regexes to compile-mode=A0 to prperly parse error and=
> warning messages. They are highlighted. You can click on them to jump to t=
> he sourceline causing the error or you can jump by keybinding from error to=
> error.<br>
> <br>No problem with gnu 22 but gnu 23 only shows the output and claims ther=
> e are no errors.<br><br>actually it's the same problem with proper perl=
> -mode, but sh and python don't have this problem.<br><br>Just need an i=
> ndependent confirmation before sending a bug-report.<br>
> <br>Crossposts:<br><a href=3D"http://perlmonks.org/?node_id=3D798725">http:=
> //perlmonks.org/?node_id=3D798725</a><br><a href=3D"http://groups.google.de=
> /group/gnu.emacs.help/browse_thread/thread/c1a62e304177fefe#">http://groups=
> .google.de/group/gnu.emacs.help/browse_thread/thread/c1a62e304177fefe#</a><=
> br>
> <br>I think I could patch that manually by reconfiguring the parsing-regexe=
> s but I think=A0 good bug report is always valuable. <br><br><br><div class=
> =3D"gmail_quote">2009/10/1 Joe Brenner <span dir=3D"ltr"><<a href=3D"mai=
> lto:do...@kzsu.stanford.edu">do...@kzsu.stanford.edu</a>></span><br>
> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
> 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
> Myself, I never got into using mode-compile.el. =A0(The perlnow.el<br>
> libary that I wrote handles this kind of thing, and covers a few more<br>
> perl-specific things than mode-compile does).<br>
> <br>
> Is your question specifically about some kind of color highlighting<br>
> in the compilation buffer, or is it about just getting a listing of<br>
> errors?<br>
> <br>
> If you don't get a listing of errors, what *does* appear in the<br>
> compilation buffer? =A0Do you get any output at all?<br>
> <div><div></div><div class=3D"h5"><br>
> <br>
> LanX <<a href=3D"mailto:lanx...@googlemail.com">lanx.perl@googlemail.c=
> om</a>> wrote:<br>
> <br>
> > Hi guys<br>
> ><br>
> > Does one of you already use emacs23 and does mode-compile parse and<br=
> >
> > highlight errorlines in the compilation buffer after M-x mode-compile =
> from a<br>
> > perl-buffer?<br>
> ><br>
> > I discribed a little testcase in the following to isolate the problem.=
> It's<br>
> > a crosspost from gnu.emacs.help.<br>
> ><br>
> > Cheers<br>
> > =A0 Rolf<br>
> ><br>
> > ---------- Forwarded message ----------<br>
> > From: LanX <<a href=3D"mailto:lanx...@googlemail.com">lanx.perl@g=
> ooglemail.com</a>><br>
> > Date: 2009/10/1<br>
> > Subject: Re: In emacs 23 compile-mode doesn't recognize (c)perl er=
> ror<br>
> > messages<br>
> > To: <a href=3D"mailto:help-gn...@gnu.org">help-gn...@gnu.org</=
> a><br>
> ><br>
> ><br>
> > (This is a fwd to the mailinglist)<br>
> ><br>
> ><br>
> > Well,did you try it out?<br>
> ><br>
> > I've spend hours to isolate the problem without any success!<br>
> ><br>
> > Starting emacs23 with<br>
> ><br>
> > > emacs-snapshot -debug-init -no-site-file =A0tst.pl &<br>
> ><br>
> > doesn't work, while taking emacs22 instead, does highlight the bug=
> s after<br>
> > calling "M-x mode-compile"!<br>
> ><br>
> > The config .emacs links to debug.el which only (auto)loads the newest<=
> br>
> > versions of mode-compile and cperl-mode.<br>
> ><br>
> > --------------------------------<br>
> > lanx@nc10-ubuntu:~$ ll .emacs<br>
> > lrwxrwxrwx 1 lanx lanx 23 2009-10-01 15:28 .emacs -> .emacs.d/debug=
> /debug.el<br>
> > lanx@nc10-ubuntu:~$ cat .emacs<br>
> ><br>
> ><br>
> > (message "loading debug.el")<br>
> ><br>
> > ;--------------------<br>
> > ; =A0 =A0 =A0 =A0load-path<br>
> > ;--------------------<br>
> > (normal-top-level-add-to-load-path<br>
> > =A0'("~/.emacs.d/debug"))<br>
> ><br>
> ><br>
> > ;--------------------<br>
> > ; =A0 =A0cperl-mode<br>
> > ;--------------------<br>
> ><br>
> > (load "~/.emacs.d/debug/cperl-mode.el")<br>
> ><br>
> ><br>
> > ;--------------------<br>
> > ; =A0 =A0mode-compile<br>
> > ;--------------------<br>
> ><br>
> > (autoload 'mode-compile "mode-compile"<br>
> > =A0 "Command to compile current buffer file based on the major mo=
> de" t)<br>
> ><br>
> > (add-to-list 'auto-mode-alist '("\\.pl\\'" . cpe=
> rl-mode))<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > (message "leaving debug.el")lanx@nc10-ubuntu:~$<br>
> > lanx@nc10-ubuntu:~$ ll .emacs.d/debug/<br>
> > insgesamt 588<br>
> > -r-------- 1 lanx lanx 402932 2009-10-01 15:16 cperl-mode.el<br>
> > -rw-r--r-- 1 lanx lanx =A0 =A0520 2009-10-01 15:22 debug.el<br>
> > -rw-r--r-- 1 lanx lanx 101476 2009-06-04 14:46 mode-compile.el<br>
> > -rw-r--r-- 1 lanx lanx =A074288 2009-10-01 13:58 mode-compile.elc<br>
> > lanx@nc10-ubuntu:~$<br>
> > --------------------------------<br>
> ><br>
> ><br>
> > mode-compiling a bash file works without problems.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > BTW: deleting .emacs and starting with<br>
> ><br>
> > > emacs-snapshot -debug-init -no-site-file =A0tst.pl &<br>
> ><br>
> > leads to a buffer *Local Variables* with the Message<br>
> > --------------------------------<br>
> > The local variables list in mode-compile.el<br>
> > contains values that may not be safe (*).<br>
> ><br>
> > Do you want to apply it? =A0You can type<br>
> > y =A0-- to apply the local variables list.<br>
> > n =A0-- to ignore the local variables list.<br>
> > ! =A0-- to apply the local variables list, and permanently mark these<=
> br>
> > =A0 =A0 =A0 values (*) as safe (in the future, they will be set automa=
> tically.)<br>
> ><br>
> > =A0 =A0 outline-regexp : ";; @+"<br>
> > =A0 * eval : (outline-minor-mode 1)<br>
> > ------------------------------------<br>
> ><br>
> > But no matter which option I chose the problem remains!<br>
> ><br>
> ><br>
> ><br>
> > So what am I supposed to try now???<br>
> ><br>
> ><br>
> > Please note: This is specific to cperl-mode and perl-mode. Bash and<br=
> >
> > python-files compile as expected.<br>
> ><br>
> ><br>
> > 2009/10/1 Peter Dyballa <<a href=3D"mailto:Peter_...@web.de">Pe=
> ter_D...@web.de</a>><br>
> ><br>
> ><br>
> > > Am 01.10.2009 um 02:21 schrieb LanX:<br>
> > ><br>
> > > =A0The emacs 23 is a snapshot installation =A0parallel to my &quo=
> t;normal" emacs<br>
> > >> 22, does this lead to conflicts?<br>
> > ><br>
> > > No. Check load-path. Maybe re-organise the init files.<br>
> </div></div></blockquote></div><br>
>
> --00504502cc18fc60e30474e5c9b2--
> So you say it works for you? Strange! I'm really only loading
> mode-compile.el and nothing more.
Same with me, as I showed you. I started a new emacs without any of my
usual customizations.
> I have GNU Emacs 23.1.50.1 and mode-compile.el Version: 2.29.
> (no wait the header says 2.29 but the variable mode-compile-version is 2.28
> ?!?)
Could it be that you have more than one copy kicking around? You might
be running a different file than you think you are.
I only have one copy myself ("locate mode-compile.el" turns up just one
hit). I looked at the variable definition inside the source to
determine it was 2.28.
> Which cperl-mode-version are you running?
I'm just using what ships with Gnu emacs:
cperl-version is a variable defined in `cperl-mode.el'.
Its value is "5.23"
Documentation:
Version of IZ-supported CPerl package this file is based on.
Could it be that you have more than one copy kicking around? You might
be running a different file than you think you are.
I only have one copy myself ("locate mode-compile.el" turns up just one
hit). I looked at the variable definition inside the source to
determine it was 2.28.
cperl-version is a variable defined in `cperl-mode.el'.
Its value is "5.23"
Documentation:
Version of IZ-supported CPerl package this file is based on.