From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17912: inferior-octave-mode: Wrong type argument: number-or-marker-p, "100000000000" Date: Thu, 03 Jul 2014 21:36:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404437845 32428 80.91.229.3 (4 Jul 2014 01:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2014 01:37:25 +0000 (UTC) Cc: Kurt.Hornik@wu-wien.ac.at, 17912@debbugs.gnu.org To: Damian Nadales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 04 03:37:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2sRA-0008P6-Ab for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jul 2014 03:37:16 +0200 Original-Received: from localhost ([::1]:34112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2sR9-0003RJ-S4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 21:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2sR2-0003QF-HZ for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 21:37:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2sQx-0004aM-3R for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 21:37:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2sQw-0004Zd-W0 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 21:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2sQw-00060k-E8 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 21:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jul 2014 01:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17912-submit@debbugs.gnu.org id=B17912.140443778623061 (code B ref 17912); Fri, 04 Jul 2014 01:37:02 +0000 Original-Received: (at 17912) by debbugs.gnu.org; 4 Jul 2014 01:36:26 +0000 Original-Received: from localhost ([127.0.0.1]:42164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2sQL-0005zs-W6 for submit@debbugs.gnu.org; Thu, 03 Jul 2014 21:36:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2sQK-0005zd-B5 for 17912@debbugs.gnu.org; Thu, 03 Jul 2014 21:36:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJBOHcQjSGReOegeEOASpGYFqgXGBWyE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMQCzQSFBgNJBOHcQjSGReOegeEOASpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="76322803" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Jul 2014 21:36:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8D751660FA; Thu, 3 Jul 2014 21:36:15 -0400 (EDT) In-Reply-To: (Damian Nadales's message of "Thu, 3 Jul 2014 11:54:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91166 Archived-At: 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 + + * progmodes/octave.el (inferior-octave-mode): + Set comint-input-ring-size to a number (bug#17912). + 2014-07-03 Juri Linkov * 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)