emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for completion in octave


From: Alexander Klimov
Subject: patch for completion in octave
Date: Tue, 8 Feb 2011 14:49:25 +0200

Hi.

The current version of inferior-octave-complete includes in the string
for completion symbols like `=', e.g., after

 M-x run-octave

 x=lins<Tab>

user gets an error

 No completions of x=linsp

Since in octave

 The name of a variable must be a sequence of letters, digits and
 underscores,

the following patch corrects the problem:

=== modified file 'lisp/progmodes/octave-inf.el'
--- lisp/progmodes/octave-inf.el        2011-01-26 08:36:39 +0000
+++ lisp/progmodes/octave-inf.el        2011-02-08 12:45:02 +0000
@@ -267,7 +267,7 @@
   (let* ((end (point))
         (command
          (save-excursion
-           (skip-syntax-backward "w_" (comint-line-beginning-position))
+           (skip-chars-backward "a-zA-Z0-9_" (comint-line-beginning-position))
            (buffer-substring-no-properties (point) end)))
         (proc (get-buffer-process inferior-octave-buffer)))
     (cond (inferior-octave-complete-impossible

-- 
Regards,
ASK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]