From: nobu.nakada@... Date: 1999-07-02T05:27:15+09:00 Subject: [ruby-dev:7272] Re: [PATCH] rubydb3x.el, ruby-mode.el なかだです。 At Fri, 2 Jul 1999 01:09:01 +0900, Koji Arai wrote: > > XEmacs 20.4 で rubydb3x.el が gud.el の中でエラーになるので、とりあえ > > ずパッチです。gud のバージョンは 1.3 です。他のバージョンでどうなるかは > > 確認してませんので、このままではマズい可能性大(^^;;。 > > GNU Emacs 20.3 において、rubydb3x.el で > > Symbol's function definition is void: gud-overload-functions > > というエラーが出ます。添付のパッチはこの関数の存在 > チェックで逃げてみました。 やっぱり出ましたか。(^^; パッチの方法でいいんじゃないでしょうか。確かこれ以外にも gud-rubydb-marker-acc というのもいじったと思うのですが、これに関しては不 都合は出てないでしょうか。これは方々に散らばってたので、これを戻すような ら別ファイルにしてしまったほうがいいかも。 > ARGV[0] がスクリプト名になる不具合もあって、 > > |Run rubydb (like this): ruby hoge.rb > | > |Current directory is /tmp/ > |(rdb:-) p ARGV > |["hoge.rb"] > |(rdb:-) > > これは元に戻すことで対処しました。XEmacsでは都合が > 悪いんですよね?どうしましょう? XEmacs だとスクリプト名が渡らなくなります。やっぱり添付のパッチのよう な感じでしょうか。なんか汚くてヤですが。(^^; > gud や comintについてよく調べもせずに修正していま > す。 同じく(^^;; -- ♪だって だって だって だって Bugってるんだもん!♪ 中田 "ねぇ hoge ってして♪" 伸悦 --- misc/rubydb3x.el.org beyond the epoch +++ misc/rubydb3x.el nowhen @@ -7,8 +7,11 @@ ;;; History of argument lists passed to rubydb. (defvar gud-rubydb-history nil) -(defun gud-rubydb-massage-args (file args) - (cons "-r" (cons "debug" args))) +(if (fboundp 'gud-overload-functions) + (defun gud-rubydb-massage-args (file args) + (cons "-r" (cons "debug" (cons file args)))) + (defun gud-rubydb-massage-args (file args) + (cons "-r" (cons "debug" args)))) ;; There's no guarantee that Emacs will hand the filter the entire ;; marker at once; it could be broken up across several strings. We