all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.