unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* patch for completion in octave
@ 2011-02-08 12:49 Alexander Klimov
  2011-02-08 20:39 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Klimov @ 2011-02-08 12:49 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-25 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 12:49 patch for completion in octave Alexander Klimov
2011-02-08 20:39 ` Stefan Monnier
2011-02-09 14:00   ` Alexander Klimov
2011-04-25 16:32     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).