Custom Search
|
Date: February 18, 2006
From: Paul Maurice <paul_maurice@xxxxxxxx>
In-reply-to:
<43F045C5.2020601@xxxxxxxxxxx>
References:
<43F045C5.2020601@xxxxxxxxxxx>
Paolo Bonzini wrote: > > >> I guess you want it in gst-mode.el instead? > > No, although the menu and key maps call functions defined in gst-mode, > they go in smalltalk-mode. The smaltalk-mode applies to the buffer > containing the smalltalk code being edited. From that buffer you can start > and stop gst, select code and send it to gst to be executed, compile > methods, file-in other files... It is similar to the Worksheet created > from the browser. > > The gst-mode applies to the buffer connected to the gst process, It works > as a terminal running gst without the graphical interface. > >> Also, please send the diff as "diff -u OLDFILE NEWFILE". > > Here it is: > --- /usr/local/share/emacs/site-lisp/smalltalk-mode.el 2006-02-11 > 14:42:09.000000000 -0500 > +++ ./smalltalk-mode.el 2006-02-12 20:28:24.000000000 -0500 > @@ -23,6 +23,7 @@ > > ;;; Incorporates Frank Caggiano's changes for Emacs 19. > ;;; Updates and changes for Emacs 20 and 21 by David Forster > +;;; Smalltalk mode menu added: Paul Maurice, Feb 12, 2006 > > ;; ===[ Variables and constants ]===================================== > > @@ -177,6 +178,7 @@ > (setq mode-name "Smalltalk") > > (use-local-map smalltalk-mode-map) > + (smalltalk-add-menu) > (set-syntax-table smalltalk-mode-syntax-table) > (setq local-abbrev-table smalltalk-mode-abbrev-table) > > @@ -835,3 +837,33 @@ > > (provide 'smalltalk-mode) > (autoload 'gst "/usr/local/share/emacs/site-lisp/gst-mode.elc" "" t) > + > +;; > +;; > +;; Smalltalk Mode Menu > +;; > +;; > + > +(require 'easymenu) > + > +(defun smalltalk-add-menu () > + "Add the \"Smalltalk\" menu to the menu bar." > + > + (easy-menu-define > + smalltalk-mode-menu > + smalltalk-mode-map > + "Menu for smalltalk-mode." > + (append (list "Smalltalk") > + (list > + ["Start gst" gst t] > + ["----------" nil nil] > + ["Do-it" smalltalk-eval-region t] > +; ["Eval-expression" smalltalk-doit t] > + ["Print-it" smalltalk-print t] > + ["----------" nil nil] > + ["Compile method" smalltalk-compile t] > + ["File-in" smalltalk-filein t] > + ["Snapshot image" smalltalk-snapshot t] > + ["----------" nil nil] > + ["Quit gst" smalltalk-quit t]))) > + (easy-menu-add smalltalk-mode-menu)) > > Paul Maurice > > > _______________________________________________ > help-smalltalk mailing list > help-smalltalk@xxxxxxx > http://lists.gnu.org/mailman/listinfo/help-smalltalk > > -- View this message in context: http://www.nabble.com/Re%3A-Emacs-smalltalk-mode-t1112587.html#a3008302 Sent from the Gnu - SmallTalk forum at Nabble.com.
Date: February 17, 2006
From: Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx>
In-reply-to:
<20060217115832.688627.be2e8372@xxxxxxxxxxx>
References:
<20060217115832.688627.be2e8372@xxxxxxxxxxx>
The make finished successfully except that adding readline feature
failed. The tck/tk libraries used for this link process are those for
Tcl/Tk Aqua (not for Tcl/Tk X11). So you can enjoy some native widgets
PLUS beautiful anti-alias font. To adapt this gst image onto a standard
Mac display, some modifications are required in methods on a blox layer
and others classes. Here is my setup for that
<http://bagdad-cafe.homedns.org/myblog/article.php?id=76>
Many thanks for Paolo, and all the contributors to gst!!!
Very nice, I'm incorporating some changes. This is not an exact
application of your patch because I'm making #defaultFont react to the
platform ("BLOX.Blox platform" should yield "#macintosh" right?) and I'm
choosing the font in blox-tk, and never in the browser/*.st files.
The "file" changes are already in 2.2 I think (or will be in 2.2.1). What's the exact purpose of the "window" changes? Paolo
Date: February 17, 2006
From: Yamamoto Jiro <jyamamoto@xxxxxxxxxxx>
Hello all,
I built smalltalk-2.2 under Mac OSX 10.4.4 with the following options;
%
sudo ./configure --with-tcl=/usr/lib --with-tk=/usr/lib --enable-jit
--enable-dis
assembler --enable-peremption
% sudo make
The make finished successfully except that adding readline feature
failed. The tck/tk libraries used for this link process are those for
Tcl/Tk Aqua (not for Tcl/Tk X11). So you can enjoy some native widgets
PLUS beautiful anti-alias font. To adapt this gst image onto a standard
Mac display, some modifications are required in methods on a blox layer
and others classes. Here is my setup for that
<http://bagdad-cafe.homedns.org/myblog/article.php?id=76>
Many thanks for Paolo, and all the contributors to gst!!!
Regards,
Jiro JQ2LMG
Date: February 13, 2006
From: Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx>
In-reply-to:
<200602122139.35985.paul_maurice@xxxxxxxx>
References:
<200602122139.35985.paul_maurice@xxxxxxxx>
Paul wrote:
I guess you want it in gst-mode.el instead? Also, please send the diff as "diff -u OLDFILE NEWFILE".Hi Paolo!The enclosed diff file adds a Smalltalk menu to Emacs when editing a smalltalk file (.st). It is useful mainly as a reminder for the key mappings. I probably won't use Emacs as much when I get used to the Browser, but until then, I find it useful and other people may be interested.Keep up the good work! GNU st is really a great product.
But it looks nice! Thanks very much. Paolo
Date: February 07, 2006
From: Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx>
In-reply-to:
<20060207003912.8268.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<20060207003912.8268.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Isaac Gouy wrote:
Thanks, see http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=gst&id=0 Any thoughts on the ackermann problem?
Hm, not yet. Paolo
Date: February 07, 2006
From: Isaac Gouy <igouy2@xxxxxxxxx>
In-reply-to:
<43E78ADC.6000509@xxxxxxxxxxx>
References:
<43E78ADC.6000509@xxxxxxxxxxx>
Thanks, see http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=gst&id=0 Any thoughts on the ackermann problem? --- Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx> wrote: > Isaac Gouy wrote: > > >Seems like > > String>>#copyFrom:to:replacingAllRegex:with: > > > >expects a nil rather than a FailedMatchRegexResults ? > > > >See > >http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=gst&id=0#log > > > > > Indeed. I attach a patch; you can include the fixed methods in the > regexdna.st file in order to run the benchmark with 2.2. > > Paolo > > --- orig/examples/regex.st > +++ mod/examples/regex.st > @@ -515,7 +515,7 @@ > | regs beg end repl res | > regs := self searchRegex: pattern from: from to: to. > > - regs notNil > + regs matched > ifTrue: [ > beg := regs from. > end := regs to. > @@ -544,7 +544,7 @@ > idx := from. > [ > regs := self searchRegex: regex from: idx to: to. > - regs notNil > + regs matched > ] whileTrue: [ > beg := regs from. > end := regs to. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Date: February 06, 2006
From: Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx>
In-reply-to:
<20060206173403.61498.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<20060206173403.61498.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Isaac Gouy wrote:
Seems like String>>#copyFrom:to:replacingAllRegex:with:Indeed. I attach a patch; you can include the fixed methods in the regexdna.st file in order to run the benchmark with 2.2.expects a nil rather than a FailedMatchRegexResults ? See http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=gst&id=0#log
Paolo
--- orig/examples/regex.st
+++ mod/examples/regex.st
@@ -515,7 +515,7 @@
| regs beg end repl res |
regs := self searchRegex: pattern from: from to: to.
- regs notNil
+ regs matched
ifTrue: [
beg := regs from.
end := regs to.
@@ -544,7 +544,7 @@
idx := from.
[
regs := self searchRegex: regex from: idx to: to.
- regs notNil
+ regs matched
] whileTrue: [
beg := regs from.
end := regs to.
_______________________________________________ help-smalltalk mailing list help-smalltalk@xxxxxxx http://lists.gnu.org/mailman/listinfo/help-smalltalk
Date: February 06, 2006
From: Isaac Gouy <igouy2@xxxxxxxxx>
Seems like String>>#copyFrom:to:replacingAllRegex:with: expects a nil rather than a FailedMatchRegexResults ? See http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=gst&id=0#log __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com