R. Stewart Ellis | 2 Mar 2012 19:11
Favicon

[Jed-users-l] New to list, Introduction

I am new to the list.  I have been aware of jed for years, but have stuck to
jove since I taught myself C by porting it to 286 Xenix Sys. III on an Intel
development system in about 1986.  My first computer, a Seequa Chameleon,
which I purchased in 1983, came with Perfect Writer which consisted of an
emacs subset text editor and a scribe subset formatter to generate docs.

Jove had a full enough subset of features to satisfy me for the last 25+
years: C, fill, indent, text ,abbrev and paren-match modes; ctags and
next-error, macro recording and naming, regex, command
completion, and magic window help functions, as well as a small active
development community, that has since disappeared as far as I know.

Over the years, I kept trying other emacsen, but the lack of magic help
windows was always a non-starter, even though the completeness of jed has
always impressed me.  (I do not know which other emacs does it,
but in jove, when you do anything that sends prompts to the user, such as
listing available commands or variables, the 'typeout' writes over the
editing screens with a --more-- at the bottom.  SPC until the output drains,
then the magic window disappears and the editing windows are restored).

Recently, the difficulty with jove's handling of NULL chars as line
terminators has pushed me over the edge.  In re-reviewing emacs subsets I
discovered that jed seems to be the only one that has an active community,
and that it has grown a similar feature to magic windows in the form of
view.sl which lets you page down in help with a spacebar and restore the
previous screen layout without having to do a bunch of window manipulation
commands.

I have read all the archived messages on the list and have grepped the code
and read most of the docs.  As I run into issues I will post to the list.
(Continue reading)

R. Stewart Ellis | 2 Mar 2012 19:47
Favicon

[Jed-users-l] completion problems

I am trying to get jed to work as much as possible like jove.  In jove (and
Gnu EMACS) most (all?) commands and variables auto complete as you type them
in at the M-x prompt.  The command I use the most at M-x is apropos, which
in jove I enter as ^[xapr<SPC> and then I receive the apropos prompt.

In EMACS it ^[apr<SPC><CR> and then I get the prompt.  However, in jed I
have to type in the whole string apropos then <CR> before I receive the
apropos: prompt .

Another command (also from help.sl) that I would like to be able to enter
at M-x is showkey, ^[xshow<SPC> .  Another one is describe_command .

Is there any way to get these two and others like that to auto-complete?
Even better to complete without the <CR> at the end?

I know in the docs John or someone says that you cannot auto-complete
functions that are defined in modes.  Are these considered mode specific?

I thought maybe they were not completing because they were not loaded into
the interpreter yet, so following Guido's statement in section 8.4 of the
quickref, I did an autoload for showkey and apropos in .jedrc .

I have grepped the sl code as well as the .c sources, as well as all the
docs (I think) but am very rusty on C.  I had trouble understanding the
difference between internal and intrinsic functions.  Is the completion
behavior related to that?

--

-- 
   R.Stewart(Stew) Ellis,Prof.Appl.Socl.Informatics  Kettering University/
   Liberal Studies Dept. ellis <at> kettering.edu  ()    ___________________
(Continue reading)

John E. Davis | 2 Mar 2012 22:26
Picon
Favicon

Re: [Jed-users-l] completion problems

R. Stewart Ellis <ellis <at> kettering.edu> wrote:
[...]
> Is there any way to get these two and others like that to auto-complete?
> Even better to complete without the <CR> at the end?

  You can use the add_completion function:

     add_completion ("apropos");
     add_completion ("showkey");

> I know in the docs John or someone says that you cannot auto-complete
> functions that are defined in modes.  Are these considered mode specific?

Functions declared as "private" cannot be accessed outside the file
defining them.  Functions that require arguments should not be used at
jed's M-x prompt.

[...]
> I have grepped the sl code as well as the .c sources, as well as all the
> docs (I think) but am very rusty on C.  I had trouble understanding the
> difference between internal and intrinsic functions.  Is the completion
> behavior related to that?

There is a connection.  See #5 in the jed_faq.txt file under the
doc/txt/ directory of the jed distribution:

  <5> What is the difference between internal and intrinsic functions?

Welcome to the list.
--John
(Continue reading)

R. Stewart Ellis | 7 Mar 2012 17:39
Favicon

[Jed-users-l] calendar command, overwriting basic functions

I am running ubuntu 10.0.4 LTS with their packages of jed, jed-extra, etc..
It shows Jed 0.99.19U on the modeline.

When I try to run the calendar function a couple of odd things happen.  One,
if I type M-ecale<TAB> I am prompted with two instances of calendar.  If I
complete the command and type <RET> I get a message 
"Unable to open /home/stew/calendar: No such file or directory"

Same thing happens if I try to run calendar from the menu.

I believe I am on the track to solve the problem.  The debian packagers do
some magic which ends up with both /usr/share/jed/lib/cal.sl and
/usr/share/jed-extra/drop-in/calendar.sl defining a public function named
calendar.

I would actually like both functions, so I am going to have to figure out
how to name them so they do not clobber each other.  But this does bring up
a larger point: as valuable as some of the extras seem to be, programmers
and packagers need to avoid breaking pieces of the basic distribution of
jed.  It also needs to be easier for a new user, even someone like me with
>25 years of UNIX and C sysadmin with some programming, to put the pieces
together.  I do not know how influential John is, particularly with the
debian packagers, but I would like to see a more modular way of adding
modifications/enhancements to the base rather than the current way which
depends on the order in which modules are loaded.

I haven't been thinking about this long, but have some ideas.

For something that is truly a drop-in replacement for one of the basic
modules, there could be a directory, let's call it "drop-ins" at the same
(Continue reading)

Paul Boekholt | 8 Mar 2012 08:38
Picon

Re: [Jed-users-l] calendar command, overwriting basic functions

Hi Stew,

On Wed, Mar 7, 2012 at 5:39 PM, R. Stewart Ellis <ellis <at> kettering.edu> wrote:
> I am running ubuntu 10.0.4 LTS with their packages of jed, jed-extra, etc..
> It shows Jed 0.99.19U on the modeline.
>
> When I try to run the calendar function a couple of odd things happen.  One,
> if I type M-ecale<TAB> I am prompted with two instances of calendar.

I guess jed-extra added a completion for "calendar" even though there
was already a completion for it.

> Same thing happens if I try to run calendar from the menu.
>
> I believe I am on the track to solve the problem.  The debian packagers do
> some magic which ends up with both /usr/share/jed/lib/cal.sl and
> /usr/share/jed-extra/drop-in/calendar.sl defining a public function named
> calendar.

I guess they also add an autoload for the calendar function from
calendar.sl.

>
> I would actually like both functions, so I am going to have to figure out
> how to name them so they do not clobber each other.

calendar.sl is not meant to be run from JED.  If you want to manage
your appointments from JED, the functions for that are in cal.sl and
diary.sl.  Try adding a line
autoload("calendar", "cal");
(Continue reading)

R. Stewart Ellis | 8 Mar 2012 17:31
Favicon

Re: [Jed-users-l] calendar command, overwriting basic functions

On Thu, 8 Mar 2012, Paul Boekholt wrote:

> Date: Thu, 8 Mar 2012 08:38:42 +0100
> From: Paul Boekholt <p.boekholt <at> gmail.com>
> Reply-To: All about the jed editor <jed-users-l <at> jtan.com>
> To: All about the jed editor <jed-users-l <at> jtan.com>
> Subject: Re: [Jed-users-l] calendar command, overwriting basic functions
> 
> Hi Stew,
>
> On Wed, Mar 7, 2012 at 5:39 PM, R. Stewart Ellis <ellis <at> kettering.edu> wrote:
>> I am running ubuntu 10.0.4 LTS with their packages of jed, jed-extra, etc..
>> It shows Jed 0.99.19U on the modeline.
>>
>> When I try to run the calendar function a couple of odd things happen.  One,
>> if I type M-ecale<TAB> I am prompted with two instances of calendar.
>
> I guess jed-extra added a completion for "calendar" even though there
> was already a completion for it.
>

I see you are the author of both drop-ins/calendar.sl and one of the authors
of drop-ins/cal.sl .  Thank you for replying.

I had already read your comment that calendar.sl and cal.sl should only be
run in jed for debugging purposes.  I got calendar.sl out of the way
temporarily by mv'ing both it and its slc version to calendar.slc*-DIST, but
that caused an error in drop-ins/ini.sl, so I edited it "below this line" to
comment out all the calendar.sl stuff.  That got it working, I think (I am
not sure I am getting full cal/diary function).  However I only seem to have
(Continue reading)

Alain Nadeau | 19 Mar 2012 17:44
Picon

[Jed-users-l] New mode for n3 / turtle

Hello to everyone,

Just been spending some time trying to define a jed mode for N3/turtle RDF
notation:

http://www.w3.org/TeamSubmission/turtle/

But, as always when I'm working on a new mode, documentation on the various
options and commands is so scarce that I'm losing a lot of time with plain
trial and error trying to achieve the desired results. Not to mention
losing my sanity in the process.

I'm basically seeking something like the very nice n3 mode offered by emacs

http://larve.net/people/hugo/2003/scratchpad/NotationThreeEmacsMode.html

Notice how this one has the following features:

- chars in one color before a colon, and in another after the colon...

- URLs in one color, from the starting "<" to the closing ">", even and
including a "#" sign before the closing ">".

- how keyword " <at> prefix" is all in one color, including the " <at> "...

All seemingly easy stuff. Until one tries to achieve that.

I have no problems (duh!) with defining keywords through define_keywords_n.

But everything that has to do with dfa_define_highlight_rule in order to
(Continue reading)

John E. Davis | 20 Mar 2012 18:51
Picon
Favicon

Re: [Jed-users-l] New mode for n3 / turtle

Alain Nadeau <nadeau <at> peraldus.ch> wrote:
> I'm basically seeking something like the very nice n3 mode offered by emacs
>
> http://larve.net/people/hugo/2003/scratchpad/NotationThreeEmacsMode.html
>
> Notice how this one has the following features:
>
> - chars in one color before a colon, and in another after the colon...
>
> - URLs in one color, from the starting "<" to the closing ">", even and
> including a "#" sign before the closing ">".
>
> - how keyword " <at> prefix" is all in one color, including the " <at> "...
>
> All seemingly easy stuff. Until one tries to achieve that.
>
> I have no problems (duh!) with defining keywords through define_keywords_n.
>
> But everything that has to do with dfa_define_highlight_rule in order to
> obtain the features described above has been a failure. I fail to grasp the
> regex vocabulary needed.

See doc/txt/dfa.txt for a description of the dfa RE syntax.  Here is
something that I threw together this morning that you might find
helpful.  --John

create_syntax_table ("n3");
define_syntax ("A-Za-z", 'w', "n3");

#ifdef HAS_DFA_SYNTAX
(Continue reading)

Alain Nadeau | 24 Mar 2012 09:29
Picon

Re: [Jed-users-l] New mode for n3 / turtle

Hi John,

Thanks for the ref. to dfa.txt. After all these years working with jed I
had never known it was there.

And thanks for giving me a starting mode. With a few tweeks I now have a
working n3 mode. Excellent. But not everything is working as expected.
Could it have to do with the fact that I'm still using 0.99.13?

Best regards,

Alain

On Tue, Mar 20, 2012 at 18:51, John E. Davis <davis <at> space.mit.edu> wrote:

> Alain Nadeau <nadeau <at> peraldus.ch> wrote:
> > I'm basically seeking something like the very nice n3 mode offered by
> emacs
> >
> > http://larve.net/people/hugo/2003/scratchpad/NotationThreeEmacsMode.html
> >
> > Notice how this one has the following features:
> >
> > - chars in one color before a colon, and in another after the colon...
> >
> > - URLs in one color, from the starting "<" to the closing ">", even and
> > including a "#" sign before the closing ">".
> >
> > - how keyword " <at> prefix" is all in one color, including the " <at> "...
> >
(Continue reading)

John E. Davis | 24 Mar 2012 20:59
Picon
Favicon

Re: [Jed-users-l] New mode for n3 / turtle

Alain Nadeau <nadeau <at> peraldus.ch> wrote:
> Could it have to do with the fact that I'm still using 0.99.13?

It is hard to say without knowing what does not work.  Nevertheless,
0.99.13 is ancient and you should upgrade.  The latest development
version if available from <http://jedsoft.org/snapshots/>.  --John
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
http://mailman.jtan.com/mailman/listinfo/jed-users-l


Gmane