From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: patch for completion in octave Date: Tue, 8 Feb 2011 14:49:25 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: dough.gmane.org 1297169404 9760 80.91.229.12 (8 Feb 2011 12:50:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2011 12:50:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 08 13:50:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pmn15-0005kG-NH for ged-emacs-devel@m.gmane.org; Tue, 08 Feb 2011 13:49:59 +0100 Original-Received: from localhost ([127.0.0.1]:57933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmn14-0003Bx-Oa for ged-emacs-devel@m.gmane.org; Tue, 08 Feb 2011 07:49:58 -0500 Original-Received: from [140.186.70.92] (port=34512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmn0w-0003Ae-Np for emacs-devel@gnu.org; Tue, 08 Feb 2011 07:49:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmn0u-0007NY-TT for emacs-devel@gnu.org; Tue, 08 Feb 2011 07:49:50 -0500 Original-Received: from www.eitan.edu ([199.203.54.24]:59877 helo=eitan.edu) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pmn0p-0007LN-Rd for emacs-devel@gnu.org; Tue, 08 Feb 2011 07:49:48 -0500 Original-Received: (qmail 28654 invoked from network); 8 Feb 2011 12:49:25 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 8 Feb 2011 12:49:25 -0000 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 199.203.54.24 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135741 Archived-At: 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 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