jed-users mailing list

[2012 Date Index] [2012 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

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@xxxxxxxxx>
> Reply-To: All about the jed editor <jed-users-l@xxxxxxxx>
> To: All about the jed editor <jed-users-l@xxxxxxxx>
> 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@xxxxxxxxxxxxx> 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
a calendar command available to M-x, not a cal command.  Is that right? 
However, the comments in ini.sl say that my edits will be overwritten the
next time make_ini() runs.  I tried to run M-xmake_ini<RET> but got a
read-only buffer error.  I also tried to run M-xupdate_ini<RET> in jed and
got "no SLang files in /usr/share/jed/" .

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

They seem to do it in jed-extra/drop-in/ini.sl, even though you say in the
comments that it should not be loaded.

>
>>
>> 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");
> to your .jedrc.

But how do I defeat the stuff that debian seems to have added that
automagically seems to load all of the .sl files even the ones that should
not be?  I may go back to square one, and follow a scheme like I proposed in
the original post and get rid of all the jed-extras except the parts that I
really want and understand.

Thank you again

>
> Paul
> _______________________________________________
> Jed-users-l mailing list
> Jed-users-l@xxxxxxxx
> http://mailman.jtan.com/mailman/listinfo/jed-users-l
>

Stew
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2012 date index] [2012 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]