PAbbrev with Ruby Electric



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 .



Relevant Pages

  • Re: Style feature in Word 2003 has major flaws.
    ... helpful if there was a glitch that suddenly shifted my tab, ... This post is a suggestion for Microsoft, ... Agree" button in the message pane. ...
    (microsoft.public.word.vba.general)
  • RE: Access denied creating GPO
    ... please refer to the following suggestions to solve this ... Suggestion 1: ... In the Startup tab, ... PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were ...
    (microsoft.public.windows.server.sbs)
  • Re: repeating spybot issue...suggestions?
    ... Bob Qin wrote: ... > I would like to suggest that you try the following suggestions to install ... > Suggestion 1 ... > Click the General tab, click Delete Files and the Clear History button. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Word should have colored tabs for opened documents
    ... and managing of multiple opened docs. ... Each document should be a tab inside of ... This post is a suggestion for Microsoft, ...
    (microsoft.public.word.docmanagement)
  • Re: ComboBox - After Value is Selected from List
    ... following fruit: ... >autocomplete with the option to use the drop down list also. ... >then tab to the next field or click their value from the list and have it ... Not a suggestion you want to hear but my suggestion is don't ...
    (microsoft.public.vb.controls)