PAbbrev with Ruby Electric

  • Thread starter Christopher Campbell
  • Start date
C

Christopher Campbell

Hi,

Does anyone have problems with PAbbrev completion with Ruby Electric in
Emacs? (Specifically Ubuntu) In other modes TAB completes a word if it
has a suggestion, but it's not doing that with Ruby Electric enabled.
TAB still offers a suggestion, but a further TAB won't insert. If Ruby
Electric is off, it works fine with Ruby mode. To be sure it is ruby
electric, everything but the following plus some non-related settings
have been commented out of .emacs


;; pabbrev mode.
;;
(require 'pabbrev)
(setq pabbrev-idle-timer-verbose nil)

;; ruby mode.
;;
(require 'ruby-mode)
(require 'ruby-electric)

(defun ruby-eval-buffer () (interactive)
"Evaluate the buffer with ruby."
(shell-command-on-region (point-min) (point-max) "ruby"))

(defun my-ruby-mode-hook ()
(font-lock-mode t)
(setq standard-indent 2)
(pabbrev-mode t)
(ruby-electric-mode t)
(define-key ruby-mode-map "\C-c\C-a" 'ruby-eval-buffer))
(add-hook 'ruby-mode-hook 'my-ruby-mode-hook)

(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))
(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode))

Using the following on Kubuntu Breezy

GNU Emacs 21.4.1 (21.4a-1ubuntu1)
PAbbrev 1.5
ruby 1.8.2-9ubuntu1 (Ruby Electric comes with it - dated March 6th, 2005)
ruby-elisp 1.8.2-9ubuntu1


Regards,
Chris Campbell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top