* bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
@ 2014-07-03 9:53 Damian Nadales
2014-07-03 9:54 ` Damian Nadales
0 siblings, 1 reply; 3+ messages in thread
From: Damian Nadales @ 2014-07-03 9:53 UTC (permalink / raw)
To: Kurt.Hornik, 17912
Hello,
Whenever I start octave-mode from emacs I got the following error message:
inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
Running it for a second time makes the error disappear.
Furthermore, the following error appears randomly (to me at least)
when using the Octave buffer:
comint-send-input: Wrong type argument: number-or-marker-p, "100000000000"
The constant 100000000000 is the same I use to set the history size of
octave in my pam_environment:
OCTAVE_HISTSIZE DEFAULT=100000000000
But I don't know how is this related to the error I got.
What could be happening?
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
2014-07-03 9:53 bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000" Damian Nadales
@ 2014-07-03 9:54 ` Damian Nadales
2014-07-04 1:36 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Damian Nadales @ 2014-07-03 9:54 UTC (permalink / raw)
To: Kurt.Hornik, 17912
I forgot to add the system info:
Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
of 2014-03-07 on lamiak, modified by Debian
Package: Emacs version 24.3.1
current state:
==============
(setq
octave-blink-matching-block t
octave-block-offset 2
octave-comment-char 35
octave-continuation-offset 4
octave-continuation-string "\\"
octave-send-echo-input t
octave-send-line-auto-forward t
octave-send-show-buffer t
)
On Thu, Jul 3, 2014 at 11:53 AM, Damian Nadales
<damian.nadales@gmail.com> wrote:
> Hello,
>
> Whenever I start octave-mode from emacs I got the following error message:
> inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
>
> Running it for a second time makes the error disappear.
>
> Furthermore, the following error appears randomly (to me at least)
> when using the Octave buffer:
> comint-send-input: Wrong type argument: number-or-marker-p, "100000000000"
>
> The constant 100000000000 is the same I use to set the history size of
> octave in my pam_environment:
> OCTAVE_HISTSIZE DEFAULT=100000000000
>
> But I don't know how is this related to the error I got.
>
> What could be happening?
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
2014-07-03 9:54 ` Damian Nadales
@ 2014-07-04 1:36 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2014-07-04 1:36 UTC (permalink / raw)
To: Damian Nadales; +Cc: Kurt.Hornik, 17912
Version:24.4
>> Whenever I start octave-mode from emacs I got the following error message:
>> inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000"
Apparently you're the only use who sets OCTAVE_HISTSIZE ;-)
I installed the patch below which should hopefully fix this problem,
Stefan
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2014-07-03 23:48:24 +0000
+++ lisp/ChangeLog 2014-07-04 01:34:57 +0000
@@ -1,3 +1,8 @@
+2014-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * progmodes/octave.el (inferior-octave-mode):
+ Set comint-input-ring-size to a number (bug#17912).
+
2014-07-03 Juri Linkov <juri@jurta.org>
* desktop.el (desktop-minor-mode-table): Add `defining-kbd-macro'
=== modified file 'lisp/progmodes/octave.el'
--- lisp/progmodes/octave.el 2014-04-12 04:07:53 +0000
+++ lisp/progmodes/octave.el 2014-07-04 01:34:11 +0000
@@ -747,9 +747,10 @@
(setq-local info-lookup-mode 'octave-mode)
(setq-local eldoc-documentation-function 'octave-eldoc-function)
- (setq comint-input-ring-file-name
- (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist")
- comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024))
+ (setq-local comint-input-ring-file-name
+ (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist"))
+ (setq-local comint-input-ring-size
+ (string-to-number (or (getenv "OCTAVE_HISTSIZE") "1024")))
(comint-read-input-ring t)
(setq-local comint-dynamic-complete-functions
inferior-octave-dynamic-complete-functions)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-04 1:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 9:53 bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000" Damian Nadales
2014-07-03 9:54 ` Damian Nadales
2014-07-04 1:36 ` 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).