[JED] Configuration problem - Editors

This is a discussion on [JED] Configuration problem - Editors ; Hi all, I've been using JED as my preferred text editor for some years now: sadly (?) enough I never went much beyong a beginner's level with it, as far as configuration details are concerned. However it's always been working ...

+ Reply to Thread
Results 1 to 2 of 2

[JED] Configuration problem

  1. Default [JED] Configuration problem

    Hi all,


    I've been using JED as my preferred text editor for some years now:
    sadly (?) enough I never went much beyong a beginner's level with it,
    as far as configuration details are concerned. However it's always
    been working straight out of the box from the Linux distros I've been
    on, (and under Windows, with the precompiled binaries) and then
    loading the additional configuration files in my home.

    From some time on, though, things began not being so nice any more. In
    particular I've had problems both with gentoo installations and with
    debian ones: in a consistent manner, so the problem seems to be that
    of broken ports, whic may be relevant to report here.

    Under gentoo, when I fire up jed, it gives me an error message to the
    point that it is unable to load some file, but then it prompts me for
    suppliying a file to edit. For some reason, the keybindings are those
    I chose, thus ~/.jedrc is loaded, but my customized colors are not.

    What's worse, under debian, (and I will HAVE to work with it!) when I
    fire up jed, it writes "Run-time error" for a fraction of a second in
    the status bar, then it starts loading .slc files. At a certain point
    I'm left with "loading /usr/share/jed/lib/modeinfo.slc" - However I'm
    in Emacs mode with the default colors, which means that my ~/.jedrc is
    NEVER read.

    Any idea?


    TIA,
    Michele
    --
    >It's because the universe was programmed in C++.

    No, no, it was programmed in Forth. See Genesis 1:12:
    "And the earth brought Forth ..."
    - Robert Israel in sci.math, thread "Why numbers?"

  2. Default Re: [JED] Configuration problem

    For completeness:


    On Mon, 27 Oct 2008 11:35:29 +0100, Michele Dondi
    <bik.mido@tiscalinet.it> wrote:

    >Under gentoo, when I fire up jed, it gives me an error message to the
    >point that it is unable to load some file, but then it prompts me for
    >suppliying a file to edit. For some reason, the keybindings are those
    >I chose, thus ~/.jedrc is loaded, but my customized colors are not.


    Problem solved:

    ---------- Forwarded message ----------
    Date: Wed, 29 Oct 2008 12:23:38 +0000 (UTC)
    From: "[UTF-8] Jörg Sommer" <***>
    To: jed-users-l@elara.jtan.com
    Newsgroups: local.mailinglist.jed
    Subject: Re: Configuration problem

    Hallo Michele,

    Michele Dondi <***> wrote:

    On Tue, 28 Oct 2008, Jörg Sommer wrote:

    Michele Dondi <***> wrote:

    then it starts loading .slc files. At a certain point
    I'm left with "loading /usr/share/jed/lib/modeinfo.slc" -
    However I'm
    in Emacs mode with the default colors, which means that my
    ~/.jedrc is
    NEVER read.


    Do you have a directory ~/.jed? From
    /usr/share/doc/jed/README.Debian-startup:

    * ~/.jed/jed.rc % user config file (if it
    exists),
    % skipped with the -n
    command line option)
    or ~/.jedrc % if ~/.jed/ doesnot exist


    I have BOTH:

    icard:~ [22:30:58]$ ls -rl .jed*
    -rw-r--r-- 1 blazar users 10155 Jan 11 2005 .jedrc~
    -rw-r--r-- 1 blazar users 10245 Oct 27 11:57 .jedrc

    .jed:
    total 788
    -rw------- 1 blazar users 786534 Oct 28 22:29 recent_db
    drwxr-xr-x 3 blazar users 4096 Dec 5 2002 lib
    -rw-r--r-- 1 blazar users 5112 Mar 8 2002 home-lib.sl


    So you must move your .jedrc to ~/.jed/jed.rc. The Filesystem
    Hierarchy
    Standard recommends to place only one entry in the home directory.

    ,----[ /usr/share/doc/debian-policy/fhs/fhs-2.3.txt.gz ]
    |User specific configuration files for applications are stored in the user's
    |home directory in a file that starts with the '.' character (a "dot file"). If
    |an application needs to create more than one dot file then they should be
    |placed in a subdirectory with a name starting with a '.' character, (a "dot
    |directory"). In this case the configuration files should not start with the '.'
    |character. [11]
    `----

    So Debian uses ~/.jed/jed.rc if the directory ~/.jed exists and
    doesn't
    look for ~/.jedrc in this case. For backward compatibility the
    fallback
    to ~/.jedrc is provided, but I don't would swear that it stays.

    ---------- End of forwarded message ----------

    >What's worse, under debian, (and I will HAVE to work with it!) when I
    >fire up jed, it writes "Run-time error" for a fraction of a second in
    >the status bar, then it starts loading .slc files. At a certain point
    >I'm left with "loading /usr/share/jed/lib/modeinfo.slc" - However I'm
    >in Emacs mode with the default colors, which means that my ~/.jedrc is
    >NEVER read.


    ---------- Forwarded message ----------
    Date: Wed, 29 Oct 2008 10:25:44 -0400
    From: John E. Davis <***>
    To: jed-users@jedsoft.org
    Subject: Re: Configuration problem

    Michele Dondi <***> wrote:
    [...]

    loading /home/blazar/.jedrc
    loading /usr/share/slsh/local-packages/~/.jed/home-lib.sl
    Unable to load /usr/share/slsh/local-packages/~/.jed/home-lib.sl


    What file is loading ~/.jed/home-lib.sl? You will need to modify it
    to use

    ()= evalfile (expand_filename ("~/.jed/home-lib.sl"));

    Or, for more robustness, use:

    $1 = expand_filename ("~/.jed/home-lib.sl");
    if (NULL != stat_file ($1))
    () = evalfile($1);

    --John

    ---------- End of forwarded message ----------


    Michele
    --
    Liberta' va cercando, ch'e' si' cara,
    Come sa chi per lei vita rifiuta.
    [Dante Alighieri, Purg. I, 71-72]

    I am my own country - United States Confederate of Me!
    [Pennywise, "My own country"]

+ Reply to Thread