From: Alexander Klimov <alserkli@inbox.ru>
To: emacs-devel@gnu.org
Subject: patch for completion in octave
Date: Tue, 8 Feb 2011 14:49:25 +0200 [thread overview]
Message-ID: <TheMailAgent.92635356d5342c@1b5a67e4a859901070b32> (raw)
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
next reply other threads:[~2011-02-08 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 12:49 Alexander Klimov [this message]
2011-02-08 20:39 ` patch for completion in octave Stefan Monnier
2011-02-09 14:00 ` Alexander Klimov
2011-04-25 16:32 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TheMailAgent.92635356d5342c@1b5a67e4a859901070b32 \
--to=alserkli@inbox.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).