- Subject: Re: Patches for jed
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 12:43:39 +0000 (UTC)
Hallo John,
"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> =?UTF-8?Q?J=C3=B6rg?= Sommer <joerg@xxxxxxxxxxxx> wrote:
>>http://www.minet.uni-jena.de/~joergs/jed-patches/slmode-function-popup.dpatch
>
> I was unable to access the above URL.
I've changed the patch. Please use this one:
#v+
#! /bin/sh /usr/share/dpatch/dpatch-run
## slmode-function-popup.dpatch by Jörg Sommer <joerg@xxxxxxxxxxxx>
##
## DP: In SLang mode the menu Mode->Functions includes if, while or for if they
## DP: occur outside of a function (which is valid).
@DPATCH@
diff -urNad branches~/lib/cmode.sl branches/lib/cmode.sl
--- branches~/lib/cmode.sl 2006-02-13 18:51:58.000000000 +0100
+++ branches/lib/cmode.sl 2006-07-28 15:11:14.298231102 +0200
@@ -1057,7 +1057,12 @@
continue;
c_bskip_over_comment (1);
- names[bextract_identifier ()] = what_line ();
+
+ % In SLang you can write statements at the same level like
+ % functions they look like functions but aren't it.
+ variable id = bextract_identifier ();
+ !if ( is_list_element("if,while,for,foreach,_for", id, ',') )
+ names[id] = what_line ();
}
}
}
#v-
Bye, Jörg.
--
Wenn unser Hirn so einfach wäre, dass es sich selbst
begreifen könnte, dann könnte es sich selbst nicht mehr
begreifen, weil es zu einfach wäre ;) Nur mal so als
philosophischer Denkanstoss …
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]