From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Lisp error: (args-out-of-range "" 2 10) (was: 6.29c bug: (void-variable org-export-html-special-string-regexps)) Date: Mon, 10 Aug 2009 13:25:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaTwr-0008J7-8i for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 08:25:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaTwm-0008Hz-T0 for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 08:25:56 -0400 Received: from [199.232.76.173] (port=41751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaTwm-0008Hu-Ju for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 08:25:52 -0400 Received: from mx20.gnu.org ([199.232.41.8]:42000) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MaTwm-0006hS-8c for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 08:25:52 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MaTwk-0002Pz-OG for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 08:25:51 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MaTwe-000890-He for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 12:25:44 +0000 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 12:25:44 +0000 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 12:25:44 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2009-08-10 12:55 +0100, Leo wrote: > Another bug maybe related to this one is trying to complete #+ produces > another error: > > Debugger entered--Lisp error: (args-out-of-range "" 2 10) > match-string(2 "") > (cons (match-string 2 x) (match-string 1 x)) > (lambda (x) (string-match "^#\\+\\(\\([A-Z_]+:?\\).*\\)" x) (cons (match-string 2 x) (match-string 1 x)))("") > mapcar((lambda (x) (string-match "^#\\+\\(\\([A-Z_]+:?\\).*\\)" x) (cons (match-string 2 x) (match-string 1 x))) ("#+TITLE: Tasks.org" "#+AUTHOR: Leo Shidai Liu" "#+EMAIL: sl392@cam.ac.uk" "#+DATE: 2009-08-10 Mon" "#+DESCRIPTION: " "#+KEYWORDS: " "#+LANGUAGE: en" "#+OPTIONS: H:3 num:t toc:t \\n:nil @:t ::t |:t ^:t -:t f:t *:t <:t" "#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc" "" "#+EXPORT_SELECT_TAGS: export" "#+EXPORT_EXCLUDE_TAGS: noexport" "#+LINK_UP: " "#+LINK_HOME: " "#+CATEGORY: Tasks" "#+SEQ_TODO: TODO FEEDBACK VERIFY DONE" "#+TYP_TODO: Me Jason Marie DONE" "#+PRIORITIES: A C B" "#+DRAWERS: PROPERTIES CLOCK LOGBOOK" "#+STARTUP: content odd hidestars noalign nil" "#+TAGS: @Computer(c) @Errands(e) @Home(h) @None(n) @Off ic > e(o) @Phone(p)" "#+FILETAGS: " "#+ARCHIVE: %s_archive::" "#+LINK: org file:~/org/%s.org")) > (append (mapcar (lambda ... ... ...) (org-split-string ... "\n")) (mapcar (quote list) org-additional-option-like-keywords)) > (cond (opt (setq type :opt) (require ...) (append ... ...)) (startup (setq type :startup) org-startup-options) (link (append org-link-abbrev-alist-local org-link-abbrev-alist)) (texp (setq type :tex) org-html-entities) ((string-match "\\`\\*+[ ]+\\'" ...) (setq type :todo) (mapcar ... org-todo-keywords-1)) (searchhead (setq type :searchhead) (save-excursion ... ...) tbl) (tag (setq type :tag beg beg1) (or org-tag-alist ...)) (prop (setq type :prop beg beg1) (mapcar ... ...)) (t (progn ... ...))) > (let* ((a nil) (end ...) (beg1 ...) (beg ...) (confirm ...) (searchhead ...) (struct ...) (tag ...) (prop ...) (texp ...) (link ...) (opt ...) (startup ...) (completion-ignore-case opt) (type nil) (tbl nil) (table ...) (pattern ...) (completion ...)) (cond (... ...) (... ... ...) (... ... ... ... ... ... ...) (t ... ... ...))) > (catch (quote exit) (let* (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (cond ... ... ... ...))) > (progn (if pc-mode (partial-completion-mode -1)) (catch (quote exit) (let* ... ...))) > (unwind-protect (progn (if pc-mode ...) (catch ... ...)) (if pc-mode (partial-completion-mode 1))) > (let ((pc-mode ...)) (unwind-protect (progn ... ...) (if pc-mode ...))) > (org-without-partial-completion (catch (quote exit) (let* ... ...))) > org-complete(nil) > call-interactively(org-complete nil nil) Here is how to reproduce this one: 1. kk.el with the following line: (setq org-modules nil) 2. emacs -q -l kk.el 3. open an org file 4. type in #+ 5. press M-TAB Backtrace is as in the previous post. -- Emacs uptime: 11 minutes, 34 seconds