emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (1- nil) because of nil previous-single-property-change
@ 2008-11-17  1:23 Daniel Clemente
  2008-11-17  4:54 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2008-11-17  1:23 UTC (permalink / raw)
  To: emacs-orgmode


  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (1- nil) because of nil previous-single-property-change
  2008-11-17  1:23 (1- nil) because of nil previous-single-property-change Daniel Clemente
@ 2008-11-17  4:54 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-11-17  4:54 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-17  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-17  1:23 (1- nil) because of nil previous-single-property-change Daniel Clemente
2008-11-17  4:54 ` Carsten Dominik

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).