John K. Parejko | 9 May 2013 22:15
Picon

[Jed-users-l] py_check_indentation

Hello,

When opening a new python file in jed, I would like to run the py_check_indentation() function from the
jedmodes version of pymodes.sl. I've got pymodes running (I can toggle between the dfa and normal syntax
highlighting, for example), and have this in my .jedrc:

define python_mode_hook ()
{
   py_check_indentation();
}

but I get this error when opening a .py file

py_check_indentation is undefined

during startup. It looks like .jedrc is loaded before pymode.sl is loaded. How do I run a function from
pymode in .jedrc?

Thanks,
John
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

Martin Klaiber | 9 May 2013 15:09
Picon
Picon
Favicon

[Jed-users-l] Defining personal sl-files.

Hi all!

As mentioned in another mail some time ago, I have redefined some
functions for latex-mode and put them into my .jedrc. But I want to
have them in a separate file now, because my .jedrc is getting a bit
messy. So I put them in $HOME/jed/mylatex.sl. Like that:

   define my_tex_insert_quote ()
   {
      ...
   }

   more functions ...

   define latex_mode_hook ()
   {
      ...
   }

In .jedrc I wrote:

   variable Jed_Home_Library = "/home/martinkl/jed";
   set_jed_library_path (Jed_Home_Library + "," + get_jed_library_path ());

   add_mode_for_extension ("mylatex", "tex");

Unfortunately mylatex.sl is either not found or not loaded. I assume
my use of add_mode_for_extension is wrong. Could someone tell me, how
to do it right?

(Continue reading)

Martin Klaiber | 26 Apr 2013 22:37
Picon
Picon
Favicon

[Jed-users-l] How to redefine a function?

Hi,

when inserting a quote in LaTeX-Mode two single backticks are inserted
before or two ticks after a word. As I use csquotes, I want to modify
it, so it inserts "\enquote{" before or "}" after it (without the
quotation marks of course).

To do so, I have changed this part of tex_insert_quote() of texcom.sl:

   if (is_substr("[({\t ", char(c)))
     {
        insert_char ('`');
        if (LAST_CHAR == '"') insert_char ('`');
     }
   else
     {
        insert_char ('\'');
        if (LAST_CHAR == '"') insert_char ('\'');
     }

to that:

   if (is_substr("[({\t ", char(c)))
     {
        insert ("\\enquote{");
     }
   else
     {
        insert_char ('}');
     }
(Continue reading)

Ulli Horlacher | 19 Apr 2013 08:36
Picon
Favicon

[Jed-users-l] () vs pop

When I do slang coding and have functions where I do not need the return
value I have the two possibilities:

() = function(...);

pop(function(...));

Is one better than the other?

--

-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher <at> tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF: <20130419063659.GA6295 <at> rus.uni-stuttgart.de>
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

frank | 18 Apr 2013 19:04
Picon

[Jed-users-l] TODO

The TODO list for the current jed *64 has shrunk to one minor item 
while a couple of years ago other items were prominent, e.g.:

-   soft wrap
-   encoding switch (say between UTF-8 and ANSI)

which currently are not on the list but still pending.

Besides, when you browse jed's C code there are a number of FIXME here 
and there.

Sunset Boulevard?
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

Ulli Horlacher | 18 Apr 2013 08:52
Picon
Favicon

[Jed-users-l] jed -h

I am missing a "jed -h" usage message, like most UNIX programs have.

For example:

$ vi -h

usage: vim [arguments] [file ..]       edit specified file(s)
   or: vim [arguments] -               read text from stdin
   or: vim [arguments] -t tag          edit file where tag is defined
   or: vim [arguments] -q [errorfile]  edit file with first error

Arguments:
   --                   Only file names after this
   -v                   Vi mode (like "vi")
   -e                   Ex mode (like "ex")
(...)

One have to read defaults.sl to know which jed command line options exist. 

--

-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher <at> tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF: <20130418065219.GA16233 <at> rus.uni-stuttgart.de>
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l
(Continue reading)

Ulli Horlacher | 10 Apr 2013 08:18
Picon
Favicon

[Jed-users-l] editing symbolic links

When I edit a file via a symbolic link, I would like to see in jed the
real file name.

Example:

framstag <at> fex: ll /client/bin/xx
lrwxrwxrwx root     root     - 2013-03-07 14:59:59 /client/bin/xx -> /sw/share/fstools-0.0/bin/xx

framstag <at> fex: ll /sw/share/fstools-0.0/bin/xx
lrwxrwxrwx framstag users    - 2008-10-15 18:29:53 /sw/share/fstools-0.0/bin/xx -> fexsend

framstag <at> fex: jed /client/bin/xx

jed shows me in the status line a buffer named xx and not fexsend which is
real edited. Also ^X^B shows me:

  Flags     umask   Buffer Name             Dir/File

----------- 0000    "*scratch*"             /sw/share/fstools-0.0/bin/
-----U---A- 0000    "xx"                    /sw/share/fstools-0.0/bin/xx

Here I would like to see:

  Flags     umask   Buffer Name             Dir/File

----------- 0000    "*scratch*"             /sw/share/fstools-0.0/bin/
-----U---A- 0000    "fexsend"               /sw/share/fstools-0.0/bin/fexsend

(How) is this possible?

(Continue reading)

Ulli Horlacher | 3 Apr 2013 18:47
Picon
Favicon

[Jed-users-l] extended backup (versioning)?

JED's backup files~ saved me often :-)

Being an old VMS hacker, I really like it's integrated versioning. Example:

file.txt;1
file.txt;2
file.txt;3

(the bigger the number, the older the file)

How about extending JED's backup file concept to a similar versioning
system for UNIX? I think of this kind of naming:

file.txt
file.txt~1
file.txt~2
file.txt~3

When one saves a new file.txt then JED should rename the old files:

file.txt~3 --> file.txt~4
file.txt~2 --> file.txt~3
file.txt~1 --> file.txt~2
file.txt   --> file.txt~1

A JED config variable would define the maximum number of backup versions.

--

-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher <at> tik.uni-stuttgart.de
(Continue reading)

Andrew Lannan | 25 Mar 2013 17:32
Picon

[Jed-users-l] syntax highlighting issue

Hi,

I have been teaching myself s-lang and using jed over the last week or so.
One issue I have noticed is that the text covered by this line :

set_color("normal", $1, $2);

in my color scheme is always highlighted (or bold or bright, not sure which
is the correct term) regardless of the color setting. The the other
settings seem to react normally (ie. changing the "comment" setting from
"brightcyan" to "cyan" makes the font thinner). I am using Jed in a linux
console (aterm). I'm not sure if this is the default behavior, but am
wondering if it is possible to change.

Thanks in advance for any help,

Andy
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

Martin Klaiber | 23 Mar 2013 16:01
Picon
Picon
Favicon

[Jed-users-l] Restore position of cursor when opening file

Hello all,

does JED have a function to remember the last cursor position before
the file was closed? Especially in large files I would like to have
the cursor immediately at the last editing-position when re-opening
the file.

It would be even nicer if JED could remember the last edited file of a
set of files when loading these files (e.g. with "jed *.tex"). Does JED
have such functionality, e.g. as a form of "project management"?

TIA, Martin
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l

J.B. Nicholson-Owens | 10 Jan 2013 02:37

[Jed-users-l] S-Lang mode tab indent oddity?

I am editing S-Lang in S-Lang mode and I'm using Jed version 0.99.19U on 
x86_64 GNU/Linux (Debian).

In S-Lang mode, the following code formats in a way I did not expect and 
I'm not sure if my experience indicates that my expectations are 
unusual, the indenting is off, or something else is going on I'm unaware of.

Consider the following code:

#v+
define foo (n)
{
     switch (n)
     { case (0):
          do_something ();
        do_another_thing ();
        .
        .
     }
}
#v-

When I hit tab to auto-indent do_something(); Jed indents to a different 
place than Jed indents do_another_thing(); and all of the subsequent 
lines in that case block (indicated by periods).

Why is that?
What can I do to get uniform tab indentation here?

Thanks for your help.
(Continue reading)


Gmane