emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Hyatt <ahyatt@gmail.com>
To: Sebastien Vauban <sva-news@mygooglest.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] (wrong-type-argument wholenump nil)
Date: Mon, 16 Sep 2013 14:29:44 -0400	[thread overview]
Message-ID: <CAM6wYYJCJ6jR+0YPBw-P6s1piJ947D2jzapx4XX6TK4xaurW_Q@mail.gmail.com> (raw)
In-Reply-To: <86fvv4xesf.fsf@somewhere.org>

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

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
<sva-news@mygooglest.com>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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2080 bytes --]

  reply	other threads:[~2013-09-16 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 13:34 [BUG] (wrong-type-argument wholenump nil) Sebastien Vauban
2013-09-16 18:29 ` Andrew Hyatt [this message]
2013-09-16 19:04   ` Sebastien Vauban

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM6wYYJCJ6jR+0YPBw-P6s1piJ947D2jzapx4XX6TK4xaurW_Q@mail.gmail.com \
    --to=ahyatt@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sva-news@mygooglest.com \
    /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/org-mode.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).