* inferior octave mode for emacs is unable to detect octave completion capabilities
@ 2005-08-18 11:27 Anselm Helbig
2005-08-24 7:30 ` Kurt Hornik
0 siblings, 1 reply; 2+ messages in thread
From: Anselm Helbig @ 2005-08-18 11:27 UTC (permalink / raw)
affected: octave-inf.el as shipped with octave-2.1.71
on line 232-233:
(setq inferior-octave-complete-impossible
(not (string-match "5$" (car inferior-octave-output-list))))
should read
(setq inferior-octave-complete-impossible
(not (string-match "5$" (cadr inferior-octave-output-list))))
^
because the car of inferior-octave-output-list is the command sent,
not the result which is to be tested, which is in the cdr.
as a result there were problems when sending a region that contained
tabs from an octave file to the inferior octave.
regards,
anselm helbig
Emacs : GNU Emacs 22.0.50.1 (alphaev67-dec-osfp4.0, X toolkit, Xaw3d scroll bars)
of 2005-06-30 on helene.molgen.mpg.de
Package: Emacs version 22.0.50.1
current state:
==============
(setq
octave-auto-indent nil
octave-auto-newline nil
octave-blink-matching-block t
octave-block-offset 2
octave-comment-char 35
octave-continuation-offset 4
octave-continuation-string "\\"
octave-mode-startup-message t
octave-send-echo-input t
octave-send-line-auto-forward t
octave-send-show-buffer t
)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inferior octave mode for emacs is unable to detect octave completion capabilities
2005-08-18 11:27 inferior octave mode for emacs is unable to detect octave completion capabilities Anselm Helbig
@ 2005-08-24 7:30 ` Kurt Hornik
0 siblings, 0 replies; 2+ messages in thread
From: Kurt Hornik @ 2005-08-24 7:30 UTC (permalink / raw)
Cc: Kurt Hornik, bug-gnu-emacs
>>>>> Anselm Helbig writes:
> affected: octave-inf.el as shipped with octave-2.1.71
> on line 232-233:
> (setq inferior-octave-complete-impossible
> (not (string-match "5$" (car inferior-octave-output-list))))
> should read
> (setq inferior-octave-complete-impossible
> (not (string-match "5$" (cadr inferior-octave-output-list))))
> ^
> because the car of inferior-octave-output-list is the command sent,
> not the result which is to be tested, which is in the cdr.
> as a result there were problems when sending a region that contained
> tabs from an octave file to the inferior octave.
Are you sure? I seem to get
ELISP> (inferior-octave-send-list-and-digest
(list "exist \"completion_matches\"\n"))
nil
ELISP> (car inferior-octave-output-list)
"ans = 5"
ELISP> (cadr inferior-octave-output-list)
nil
Best
-k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-24 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18 11:27 inferior octave mode for emacs is unable to detect octave completion capabilities Anselm Helbig
2005-08-24 7:30 ` Kurt Hornik
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).