Mike McClain | 6 Aug 2012 09:02
Favicon

[Jed-users-l] .jedrc

Howdy,
    In .jedrc if no mode selected with evalfile() 
which I think means I'm in emacs mode and
local_unsetkey("^G");
local_setkey("goto_line_cmd",       "^G");

When I enter "^h k" then "^G" in the minibuf I get:
Key "Ctrl-G" runs the S-Lang function "goto_line_cmd".

however when I enter the keys "^G" the minibuf shows:
User Break

In .jedrc if ide mode selected:
() = evalfile ("ide");
local_unsetkey("^G");
local_setkey("goto_line_cmd",       "^G");

When I enter "^h k" then "^G" in the minibuf I get:
Key "Ctrl-G" runs the S-Lang function "goto_line_cmd".

however when I enter the keys "^G" the minibuf shows:
User Break

In .jedrc if cua mode selected:
() = evalfile ("cua");
local_unsetkey("^G");
local_setkey("goto_line_cmd",       "^G");

When I enter "^h k" then "^G" in the minibuf I get:
Key "Ctrl-G" runs the S-Lang function "goto_line_cmd".
(Continue reading)

John E. Davis | 6 Aug 2012 17:11
Picon
Favicon

Re: [Jed-users-l] .jedrc

Mike McClain <mike.junk <at> nethere.com> wrote:
> When I enter "^h k" then "^G" in the minibuf I get:
> Key "Ctrl-G" runs the S-Lang function "goto_line_cmd".
>
> however when I enter the keys "^G" the minibuf shows:
> User Break

This is because ^G is handled by a much lower layer that causes a
SIGINT signal to be sent to jed.   The key that does this is
configurable using the `set_abort_char` function.  A number of
bindings use ^G for this.  You can see how it is used in emacs.sl,
cua.sl, ide.sl, ...

> In .jedrc if brief mode selected:
> in the minibuf which is red I see:
> ALT_CHAR is undefined
> and the file to be opened on the command line is not loaded.

As indicated by the "MSDOS only!!" comment in the jed.rc file, brief
bindings are not supported on Unix systems.

--John

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

Mike McClain | 7 Aug 2012 02:28
Favicon

Re: [Jed-users-l] .jedrc

Howdy John,
    Thanks for your help.

On Mon, Aug 06, 2012 at 11:11:20AM -0400, John E. Davis wrote:
> Mike McClain <mike.junk <at> nethere.com> wrote:
<snip> 
> This is because ^G is handled by a much lower layer that causes a
> SIGINT signal to be sent to jed.   The key that does this is
> configurable using the `set_abort_char` function.  A number of
> bindings use ^G for this.  You can see how it is used in emacs.sl,
> cua.sl, ide.sl, ...

OK, got that, thanks.

<snip> 
> As indicated by the "MSDOS only!!" comment in the jed.rc file, brief
> bindings are not supported on Unix systems.

OK, I interpreted this to mean the DOS version of brief not the Windows version.

Is there a way to turnoff the autoload of mode files?

Thanks,
Mike
--

-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
Jed-users-l mailing list
Jed-users-l <at> jtan.com
(Continue reading)

John E. Davis | 7 Aug 2012 06:40
Picon
Favicon

Re: [Jed-users-l] .jedrc

Mike McClain <mike.junk <at> nethere.com> wrote:
> Is there a way to turnoff the autoload of mode files?

Define your own mode_hook function:

  define mode_hook (ext)
  {
     % ext is the filename extension, e.g., ".c"
     ( <at> Default_Mode)();
  }

This overloads the one defined in site.sl.

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


Gmane