[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>

>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:

17 messages 2000/11/14
[#6367] Re: rescue clause affecting IO loop behavior — David Alan Black <dblack@...> 2000/11/14

Hello again --

[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>

Hello --

15 messages 2000/11/26

[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>

Ross asked something about widely known and largely ignored language (on

23 messages 2000/11/29
[#6652] RE: Array Intersect (&) question — rpmohn@... (Ross Mohn) 2000/11/29

aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in

[#6723] Re: Array Intersect (&) question — Mathieu Bouchard <matju@...> 2000/12/01

> >Use a hash. Here's code to do both and more. It assumes that

[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)

I'm coming to Ruby with a Python & Common Lisp background.

24 messages 2000/11/30

[ruby-talk:6134] emacs-mode

From: Johann Spies <jhspies@...>
Date: 2000-11-07 18:12:26 UTC
List: ruby-talk #6134
My emacs-mode does not work correctly.  I did put the following in my
.emacs:
----------------------------------
(defun ruby-xmp-region (reg-start reg-end))

(autoload 'ruby-mode "ruby-mode"
  "Mode for editing ruby source files")
(setq auto-mode-alist
      (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
(setq interpreter-mode-alist (append '(("^#!.*ruby" . ruby-mode))
                                     interpreter-mode-alist))
    
;;; (2) set to road inf-ruby and set inf-ruby key definition in ruby-mode.
;;;
(autoload 'run-ruby "inf-ruby"
  "Run an inferior Ruby process")
(autoload 'inf-ruby-keys "inf-ruby"
  "Set local key defs for inf-ruby in ruby-mode")
(add-hook 'ruby-mode-hook
          '(lambda ()
             (inf-ruby-keys)
             ))
 
(setq ruby-indent-level 4)
--------------------------------------
I get syntax highlighting while working in X11 but the following keys
does not work 

C-c C-s         run-ruby

Error message: "Searching for program: no such file or directory, irb"


C-c C-z         switch-to-ruby

Comment: This causes emacs to exit to a background process - the same
as C-z.
----------------------------------------------------------
I do not really understand the instruction in inf-ruby.el: 

";;; (0) check ruby-program-name variable that can run your
environment."

Can somebody explain it to me please?

Johann

-- 
J.H. Spies - Tel. 082 782 0336 / 023 55 11 568
     "Jesus said unto her, I am the resurrection, and  
      the life; he that believeth in me, though he were 
      dead, yet shall he live."      John 11:25 

In This Thread

Prev Next