Romano Giannetti | 5 Sep 12:49 2006
Picon

Re: Ann: New release of JoergsLatexMode


On Sun, 2006-07-23 at 18:15 +0000, Jörg Sommer wrote:
> 
> Please provide me some comments and don't be shy to tell me about new
> ideas or problems.
> 

Jörg, 

	I started again LaTeX-ing and again, thanks for the LaTeX mode. 
I have a couple of comments... maybe simple misunderstanding and/or
installation error on my side.

	* when there is an error in the file (compilation with C-c) I have a
message in the minibuffer with "(compose) finished with error" and after
a bit "Application error". I have to run pdflatex by hand in an xterm to
find the error. What am I doing wrong? 

In traceback I have: 

/usr/local/jed/lib/site.slc:2340:read_file_from_mini:Run-Time Error 
***string***:2::Undefined Name 
/home/romano/lib/jed/latex_external.sl:1078:compose_sig_handl:Application Error 
/home/romano/lib/jed/latex_external.sl:1078:compose_sig_handl:Application Error

	* trailing space detection is nice, but someway annoying while you are
writing... I do not know if it's a DFA restriction, but it would be nice
to disable it if the cursor is on the same line of the file and to the
right of the trailing space... 

(Continue reading)

Jörg Sommer | 5 Sep 14:33 2006
Picon

Re: Ann: New release of JoergsLatexMode

Hello Romano,

Romano Giannetti <romanol <at> upco.es> wrote:
> 	I started again LaTeX-ing and again, thanks for the LaTeX mode. 

Nice to hear. Which version do you use?

> 	* when there is an error in the file (compilation with C-c) I have a
> message in the minibuffer with "(compose) finished with error"

This is intended. The function error in SLang 1 is deprecated and I've
switched to throw. My intent is to inform the user in a harder way
about an error. Is it too hard? Is a normal message enough?

> and after a bit "Application error".

This is a bug in Jed and should IMO not happen, because it eats up the
next key.

> I have to run pdflatex by hand in an xterm to find the error.

This bemuses me. What happens if you press C-y after the Application
error eat up your key?

> 	* trailing space detection is nice, but someway annoying while you are
> writing... I do not know if it's a DFA restriction, but it would be nice
> to disable it if the cursor is on the same line of the file and to the
> right of the trailing space...

Yes, it's a DFA restriction. I cannot express such a condition for
(Continue reading)

Romano Giannetti | 5 Sep 17:55 2006
Picon

Re: Ann: New release of JoergsLatexMode


On Tue, 2006-09-05 at 14:33 +0200, Jörg Sommer wrote:

> Nice to hear. Which version do you use?

%       $Id: latex.sl 14 2006-07-20 16:00:11Z joerg $

downloaded this morning. By the way, a tar.gz and/or zip file would be
nice to have. 
Ah, I have still to put

define enable_stack_check() {}

otherwise I have an error on loading the latex mode... puzzled.

> This bemuses me. What happens if you press C-y after the Application
> error eat up your key?

Ahhh... yes, I see. Ctrl-c y show the error window... you see, operator
error. I expected it would opens alone in case of errors. 

Another thing: I was used (it was your or Guido mode? I do not
remember...) to be able to close an environment, opened "by hand" or
whatever, with "ctrl-c ]", which is not working now. Could you add it to
the "proposed features" list? Or I am simply missing (again) the key
combination? 

Romano

--
(Continue reading)

John E. Davis | 6 Sep 05:27 2006
Picon

Re: Next coup: Menus in foreign languages

Olesen, Mark <Mark.Olesen <at> arvinmeritor.com> wrote:
>John used to have some patches to achieve something like this, but they seem
>to have been scrapped.

I mentioned earlier that I thought this feature could be implemented
using a FIFO and even made a stab at it over the weekend.  The problem
that I encountered is that FIFOs are not well suited for multiple
clients, so I have abandoned that approach.  

Instead, I plan to implement this using the slang socket module.  The
idea would be to create an slsh script that implements a server that 
runs as a jed subprocess and communicates with it via stdio streams. A
companion script (jedclient?) would also be made available that
communicates with the server over a socket.  In this way, the
underlying C code would not have to be modified much.

Emacs uses a similar approach in the form of compiled C programs
(emacsclient and emacsserver).  In fact, if you have these programs
installed, then you can use Paul Boekholt's server.sl file to interact
with them.

--John

Olesen, Mark | 6 Sep 09:45 2006

RE: Next coup: Menus in foreign languages

Hi John,
There seems to have been some overlap/delay between the emails:

> I mentioned earlier that I thought this feature could be implemented
> using a FIFO 
... 

I had also wondered about removal/uniqueness of a FIFO.

> Instead, I plan to implement this using the slang socket module.  The
> idea would be to create an slsh script that implements a server that
> runs as a jed subprocess and communicates with it via stdio streams.

I haven't looked into the details of how nedit implements the client/server,
but it can be configured so that the client automatically starts a new
server if one is not already running.

Let me know where I can help with coding and/or testing.

/mark

This e-mail message and any attachments may contain legally privileged, confidential or proprietary
Information, or information otherwise protected by law of ArvinMeritor, Inc., its affiliates, or third
parties. This notice serves as marking of its “Confidential” status as defined in any confidentiality
agreements concerning the sender and recipient. If you are not the intended recipient(s), or the
employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby
notified that any dissemination, distribution or copying of this e-mail message is strictly
prohibited. If you have received this message in error, please immediately notify the sender and delete
this e-mail message from your computer.

(Continue reading)

Jörg Sommer | 6 Sep 03:34 2006
Picon

Re: Ann: New release of JoergsLatexMode

Hello Romano,

Romano Giannetti <romanol <at> upco.es> wrote:
>
> On Tue, 2006-09-05 at 14:33 +0200, Jörg Sommer wrote:
>
>> Nice to hear. Which version do you use?
>
> %       $Id: latex.sl 14 2006-07-20 16:00:11Z joerg $
>
> downloaded this morning. By the way, a tar.gz and/or zip file would be
> nice to have.

I've uploaded a new version and a tar.gz.

http://www.minet.uni-jena.de/~joergs/jed/jed.tar.gz

>> This bemuses me. What happens if you press C-y after the Application
>> error eat up your key?
>
> Ahhh... yes, I see. Ctrl-c y show the error window... you see, operator
> error. I expected it would opens alone in case of errors. 

That's for somewhat reason not possible, IIRC. I take a look into it.
Would you like to see it popup after the build?

> Another thing: I was used (it was your or Guido mode? I do not
> remember...) to be able to close an environment, opened "by hand" or
> whatever, with "ctrl-c ]", which is not working now. Could you add it to
> the "proposed features" list? Or I am simply missing (again) the key
(Continue reading)

Jörg Sommer | 7 Sep 01:58 2006
Picon

Looking for Python programmers for testing.

Hi,

this patch tries to address the problem that python forbids mixing up
spaces and tabs as indention characters. It should select the right
character for each file. Please test it and report all problems and
success.

#v+
#! /bin/sh /usr/share/dpatch/dpatch-run
## fix-pymode-tab-space.dpatch by Jörg Sommer <joerg <at> alea.gnuu.de>
##
## DP: In Python, it is forbidden to mix up tabs and spaces as indention
## DP: characters. This patch enhances the python mode to take care of the
## DP: prefered indention character in a file. Fixes #305668

 <at> DPATCH <at> 
diff -urNad trunk~/lib/pymode.sl trunk/lib/pymode.sl
--- trunk~/lib/pymode.sl	(Revision 35) 
+++ trunk/lib/pymode.sl	        (Arbeitskopie)
 <at>  <at>  -139,10 +139,16  <at>  <at> 

    col = what_column() - 1;

+   variable indent;
+   if ( get_blocal_var("py_use_tab") )
+      indent = TAB;
+   else
+      indent = Py_Indent_Level;
+
    if (py_line_ends_with_colon())
(Continue reading)

Romano Giannetti | 7 Sep 12:58 2006
Picon

Re: Ann: New release of JoergsLatexMode


On Wed, 2006-09-06 at 03:34 +0200, Jörg Sommer wrote:
> Hello Romano,
> 
> I've uploaded a new version and a tar.gz.
> 
> http://www.minet.uni-jena.de/~joergs/jed/jed.tar.gz
> 
Thanks, installed now, will play with it in the next hours.

> > Ahhh... yes, I see. Ctrl-c y show the error window... you see, operator
> > error. I expected it would opens alone in case of errors. 
> 
> That's for somewhat reason not possible, IIRC. I take a look into it.
> Would you like to see it popup after the build?
> 

Well, there was one point in story when if an error happened during a
build, the little window with the log and the cursor pointing to the
first error would open alone, without the need to ctrl-c y. Maybe it was
another LaTeX mode, don't remember... it's not a matter of calling
pop_log_file() if compose terminate with an error? 

> Maybe I've kicked this hot key. This function is also at the hot key
> C-e-c. Is C-] enabled in AucTeX?

No idea. I will get used to the new env-close (very logival) key
sequence, or add it to my latex_hook. Thanks again. 

Romano 
(Continue reading)

Jörg Sommer | 9 Sep 19:10 2006
Picon

Re: Looking for Python programmers for testing.

Hi Peter,

Peter Bengtsson schrieb am Thu 07. Sep, 13:07 (+0100):
> a) How do I test your patch? (I've always used the deb packages
> (ubuntu) for my jed so I've never compiled it)

Do you have your own lib directory, i.e. ~/.jed/? Copy the pymode.sl from
/usr/share/jed/lib/ there and apply the patch. If you don't have such a
directory, copy the file anywhere and put this line into your jed.rc:
  autoload("python_mode", "/path/to/pymode.sl");

> b) Did you see my patch to the python lib for jed that fixed the wrong
> auto dedentation on words like "return"?

Yes. I've added it to the Debian package.

Bye, Jörg.
--

-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
(Rich Cook)

Jörg Sommer | 10 Sep 01:31 2006
Picon

Re: Looking for Python programmers for testing.

Hi Peter,

Peter Bengtsson schrieb am Sat 09. Sep, 23:22 (+0100):
> On 9/9/06, Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
> >Peter Bengtsson schrieb am Thu 07. Sep, 13:07 (+0100):
> >> a) How do I test your patch? (I've always used the deb packages
> >> (ubuntu) for my jed so I've never compiled it)
> >
> >Do you have your own lib directory, i.e. ~/.jed/? Copy the pymode.sl from
> >/usr/share/jed/lib/ there and apply the patch. If you don't have such a
> >directory, copy the file anywhere and put this line into your jed.rc:
> >  autoload("python_mode", "/path/to/pymode.sl");
> >
> I don't have a /usr/share/jed/lib/pymode.sl. I only have a
> /usr/share/jed/lib/pymode.slc
> (this is ubuntu dapper drake)
> Where should I take a pymode.sl from?

I send it to you as PM.

Bye, Jörg.
--

-- 
Die Katze steht im Mittelpunkt unserer Arbeit.
Alles was wir tun, ist für sie.

Gmane