From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: (1- nil) because of nil previous-single-property-change Date: Mon, 17 Nov 2008 05:54:52 +0100 Message-ID: <0EE6BC84-8E4F-43DB-B1BA-1B212BBF6CF5@uva.nl> References: <87y6zjgn7i.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1w8Y-0005IZ-5x for emacs-orgmode@gnu.org; Sun, 16 Nov 2008 23:54:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1w8W-0005HB-Ev for emacs-orgmode@gnu.org; Sun, 16 Nov 2008 23:54:57 -0500 Received: from [199.232.76.173] (port=48789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1w8V-0005Gu-T0 for emacs-orgmode@gnu.org; Sun, 16 Nov 2008 23:54:55 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]:20668) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1w8V-0007MM-3W for emacs-orgmode@gnu.org; Sun, 16 Nov 2008 23:54:55 -0500 Received: by ug-out-1314.google.com with SMTP id 36so387701uga.17 for ; Sun, 16 Nov 2008 20:54:53 -0800 (PST) In-Reply-To: <87y6zjgn7i.fsf@gmail.com> 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: Daniel Clemente Cc: emacs-orgmode@gnu.org Fixed, thanks for the analysis. - Carsten On Nov 17, 2008, at 2:23 AM, Daniel Clemente wrote: > > In org 6.12a from 15-11-2008 I got this error when exporting a file > to HTML (using htmlize): > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker- > p nil) > 1-(nil) > (max (point-min) (1- (previous-single-property-change ... ...))) > (get-text-property (max (point-min) (1- ...)) (quote target)) > (or (get-text-property (point) (quote target)) (get-text-property > (max ... ...) (quote target))) > (progn (or (get-text-property ... ...) (get-text-property ... ...))) > (if (and found (or ... ...)) (progn (or ... ...))) > (when (and found (or ... ...)) (or (get-text-property ... ...) (get- > text-property ... ...))) > (save-excursion (setq found (condition-case nil ... ...)) (when > (and found ...) (or ... ...))) > (cond ((cdr ...)) ((string-match org-link-types-re link) nil) > ((or ... ...) nil) (t (save-excursion ... ...))) > (let* ((md ...) (desc ...) (link ...) (slink ...) found props pos > (target ...)) (when target .................. > (if (get-text-property (point) (quote org-protected)) nil (let* > (... ... ... ... found props pos ...) (when > target ... ... ... ... ... ... ... ...))) > (unless (get-text-property (point) (quote org-protected)) (let* > (... ... ... ... found props pos ...) (when > target ... ... ... ... ... ... ... ...))) > (org-if-unprotected (let* (... ... ... ... found props pos ...) > (when target ... ... ... ... ... ... ... ...))) > (while (re-search-forward org-bracket-link-regexp nil t) (org-if- > unprotected (let* ... ...))) > org-export-target-internal-links((("sec-5" . "sec-5") ("sec-4.1" . > "sec-4.1") (................................... > org-export-preprocess-string(#("#+TITLE: V......................... > org-export-as-html(nil) > > > The problem is in org-export-target-internal-links (org-exp.el), in > lines: > > (max (point-min) > (1- (previous-single-property-change > (point) 'target))) > 'target)))))))) > > > And in fact, if in the org file I eval this: > (previous-single-property-change (point) 'target) > ...I get nil. This is valid according to the documentation (it > means the property is constant). > > > -- Daniel > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode