From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Hyatt Subject: Re: [BUG] (wrong-type-argument wholenump nil) Date: Mon, 16 Sep 2013 14:29:44 -0400 Message-ID: References: <86fvv4xesf.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1fde665034e04e684637c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLdYR-0005Ll-1t for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 14:29:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLdYP-00016k-NA for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 14:29:46 -0400 Received: from mail-oa0-x22b.google.com ([2607:f8b0:4003:c02::22b]:46546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLdYP-00016X-Ht for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 14:29:45 -0400 Received: by mail-oa0-f43.google.com with SMTP id j10so339367oah.16 for ; Mon, 16 Sep 2013 11:29:44 -0700 (PDT) In-Reply-To: <86fvv4xesf.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: "emacs-orgmode@gnu.org" --e89a8fb1fde665034e04e684637c Content-Type: text/plain; charset=ISO-8859-1 I see this as well with org-indent-line-to, and org-clock-in. org-clock-in calls org-indent-line-to with a negative number, and org-indent-line-to calls indent-line-to with a negative number, which calls move-to-column with a negative number. But move-to-column doesn't allow negative numbers. On Wed, Jul 24, 2013 at 9:34 AM, Sebastien Vauban wrote: > Hello, > > With a *minimal config file* and > > Org-mode version 8.0.6 (release_8.0.6-357-gf00d75 @ > d:/Users/sva/Public/Repositories/org-mode/lisp/) > > there is a Lisp error generated when trying to split a block of code into > two > pieces through `C-c C-v C-d' (org-babel-demarcate-block). > > ECM: > > --8<---------------cut here---------------start------------->8--- > #+begin_src sh > ls > ls > #+end_src > --8<---------------cut here---------------end--------------->8--- > > Steps to reproduce: > > 1. Put point on the second "ls" line > 2. Press `C-c C-v C-d' > > Backtrace: > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument wholenump nil) > make-string(nil 32) > (let ((lang (nth 0 info)) (indent (make-string (nth 5 info) 32))) ...) > ... > org-babel-demarcate-block(nil) > call-interactively(org-babel-demarcate-block nil nil) > --8<---------------cut here---------------end--------------->8--- > > FYI, it works in an old Org version (such as 7.9.2+, bundled with GNU Emacs > 24.2.91.1). > > Best regards, > Seb > > -- > Sebastien Vauban > > > --e89a8fb1fde665034e04e684637c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I see this as well with org-indent-line-to, and org-clock-= in. =A0org-clock-in calls org-indent-line-to with a negative number, and or= g-indent-line-to calls indent-line-to with a negative number, which calls m= ove-to-column with a negative number. =A0But move-to-column doesn't all= ow negative numbers. =A0


On Wed, Jul 2= 4, 2013 at 9:34 AM, Sebastien Vauban <sva-news@mygooglest.com>= ; wrote:
Hello,

With a *minimal config file* and

=A0 Org-mode version 8.0.6 (release_8.0.6-357-gf00d75 @ d:/Users/sva/Public= /Repositories/org-mode/lisp/)

there is a Lisp error generated when trying to split a block of code into t= wo
pieces through `C-c C-v C-d' (org-babel-demarcate-block).

ECM:

--8<---------------cut here---------------start------------->8---
#+begin_src sh
ls
ls
#+end_src
--8<---------------cut here---------------end--------------->8---

Steps to reproduce:

1. Put point on the second "ls" line
2. Press `C-c C-v C-d'

Backtrace:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument wholenump nil)
=A0 make-string(nil 32)
=A0 (let ((lang (nth 0 info)) (indent (make-string (nth 5 info) 32))) ...)<= br> =A0 ...
=A0 org-babel-demarcate-block(nil)
=A0 call-interactively(org-babel-demarcate-block nil nil)
--8<---------------cut here---------------end--------------->8---

FYI, it works in an old Org version (such as 7.9.2+, bundled with GNU Emacs=
24.2.91.1).

Best regards,
=A0 Seb

--
Sebastien Vauban



--e89a8fb1fde665034e04e684637c--