[REBOL] Re: lost the case ...
From: nitsch-lists:netcologne at: 5-Nov-2003 16:42
Am Dienstag, 4. November 2003 03:17 schrieb Tim Johnson:
> Now, given that scenario, suppose I've got rebol imbedded in my
> editor (which is VIM), just as python is imbedded in vim.
> If that were that case, I could program rebol to automate
> the writing of "C".
> That would make for a remarkable plugin, and I'm sure that the vim
> developers and the vim community would work with RT to make that
> happen. that would be just awesome and give rebol that much more
> And BTW, I don't believe that RT would have to provide source code. Vim
> doesn't care about python binary source.
===Rebol as emacs-plugin:
I guess vim can work similar.
===some of my beginners emacs-code.
it saves, calls a script, reads result and jumps to old position. in this case
it prettyprints the sourcecode with rebols own cleaner.:
(defun cleans () "clear rebol script"
(shell-command (concat"rebol -cs ~/xenv/cleans.r " (buffer-file-name
(find-alternate-file (buffer-file-name (current-buffer)))
===a rebol-script in the background:
this o(not presented) script uploads the file with ftp. or downloads.
or shows date and size and header of both. since its a shared ftp-site i want
to check before. all actions are on hotkeys, so its "c-x c-g c-u" from emacs.
(the c-u goes to the rebol-window ;)
(defun run-uni () "run rebol-buffer through emacs.r"
(concat rebol-binary " -s ~/xenv/uni.r emacs "
(buffer-file-name (current-buffer)) "&" ))
===using emacs for the real editing from rebol (view 1.2.10 beta)
line: length? parse/all
copy/part d-area/text system/view/caret "^/"
browse probe join "+" [line " " a-file]
wait 1 quit