emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "No link found" error during export of source block when headline has link
@ 2010-09-23  1:49 Hsiu-Khuern Tang
  2010-09-23  5:44 ` Noorul Islam K M
  0 siblings, 1 reply; 6+ messages in thread
From: Hsiu-Khuern Tang @ 2010-09-23  1:49 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi all,

When I export this file to HTML

============================================================
* [[http://www.example.com][example]]

  #+BEGIN_SRC R
    1
  #+END_SRC
============================================================


I get a "No link found" error.  The responsible function seems to be

org-open-link-from-string(#("[[/tmp/a.org::%5B%5Bhttp://www.example.com%5D%5Bexample%5D%5D][/tmp/a.org::[[http://www.example.com][example]]]
...)

Please see the attached backtrace.

I am using the latest version from git.  I used git bisect and found
that the first bad commit is efdf78172d9f7c0070c781d136a9b49a2a56fcc4.

--
Best,
Hsiu-Khuern.

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 6125 bytes --]

Debugger entered--Lisp error: (error "No link found")
  signal(error ("No link found"))
  error("No link found")
  org-open-at-point(nil #<buffer a.org>)
  org-open-link-from-string(#("[[/tmp/a.org::%5B%5Bhttp://www.example.com%5D%5Bexample%5D%5D][/tmp/a.org::[[http://www.example.com][example]]]]" 2 14 (org-attr nil) 20 42 (org-attr nil) 48 55 (org-attr nil) 63 110 (org-attr nil)))
  org-babel-exp-src-blocks(#("1" 0 1 (font-lock-fontified t fontified t)) #("R" 0 1 (fontified t font-lock-fontified t)))
  apply(org-babel-exp-src-blocks #("1" 0 1 (font-lock-fontified t fontified t)) #("R" 0 1 (fontified t font-lock-fontified t)))
  byte-code("\306\307\211\211\211\211\211\211\211\211\x18\x19\x1a^[\x1c\x1d\x1e%\x1e&\x1e'\x1e(\310\311!\211\x1e)\205#\0\311K\x1e*\312\216\311\313M\210eb\210`\x14\314\315\307\306#\203\326\0\316\317!G\x16&\320\316\321!\227!\x16%\322 \x1e+\323\216\324\316\325!\326\"*\x12\316\327!\x13\x0e,\206`\0\330\n\235\211\x11\204p\0\322 \x1e+\331\216\332\v!*\x13\x0e%\x0e'>\204\x7f\0\x0e%\x0e'B\x16'\322 \x1e+\333\216\311\f\334\224\"\210*\335\x0e%\x0e-\"\211\x1e.A@)\211\x15\203\320\0\322 \x1e+\336\216\x0e%\x0e/>\203\257\0\337\202\264\0\340\r\v\n#*\211\x1e0\203\317\0\341\x0e0\306\211#\210	\204\317\0\342\334\224\334\225\x0e&#\210)\334\225\x14\2020\0\311\fd\"\210\343\344!.\r\207" [progress-marker preserve-indent headers body start func t nil fboundp interblock ((byte-code "\b\203\v\0\302	M\210\202\x0f\0\303\302!\210\302\207" [--cl-letf-bound-- --cl-letf-save-- interblock fmakunbound] 2)) #[(start end) "\301\302\b\"\207" [org-export-interblocks mapcar #[... "\b\211\x19A@)\n\v\"\207" [pair x start end] 4]] 3] re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*[\r\n]?" match-string 1 intern 2 match-data ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-split-string 3 "[ 	]+" 4 "-i" ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-remove-indentation ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 0 assoc ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "" apply replace-match indent-code-rigidly run-hooks org-export-blocks-postblock-hook type indentation types case-fold-search --cl-letf-bound-- --cl-letf-save-- save-match-data-internal org-src-preserve-indentation org-export-blocks x org-export-blocks-witheld replacement] 11)
  org-export-blocks-preprocess()
  run-hooks(org-export-preprocess-after-include-files-hook)
  org-export-preprocess-string(#("* [[http://www.example.com][example]]\n\n  #+BEGIN_SRC R\n    1\n  #+END_SRC\n" 0 2 (fontified t face org-level-1) 2 4 (fontified t face org-link org-no-flyspell t invisible org-link keymap (keymap ... ... ...) mouse-face highlight font-lock-multiline t help-echo "LINK: http://www.example.com") 4 27 (fontified t face org-link org-no-flyspell t mouse-face highlight keymap (keymap ... ... ...) invisible org-link font-lock-multiline t help-echo "LINK: http://www.example.com") 27 28 (fontified t face org-link org-no-flyspell t mouse-face highlight keymap (keymap ... ... ...) invisible org-link font-lock-multiline t help-echo "LINK: http://www.example.com" rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text)) 28 34 (fontified t face org-link org-no-flyspell t mouse-face highlight keymap (keymap ... ... ...) font-lock-multiline t help-echo "LINK: http://www.example.com") 34 35 (fontified t face org-link org-no-flyspell t mouse-face highlight keymap (keymap ... ... ...) rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text) font-lock-multiline t help-echo "LINK: http://www.example.com") 35 36 (fontified t face org-link org-no-flyspell t invisible org-link keymap (keymap ... ... ...) mouse-face highlight font-lock-multiline t help-echo "LINK: http://www.example.com") 36 37 (fontified t face org-link org-no-flyspell t invisible org-link keymap (keymap ... ... ...) mouse-face highlight font-lock-multiline t help-echo "LINK: http://www.example.com" rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text)) 37 38 (fontified t) 38 39 (fontified t) 39 41 (fontified t font-lock-fontified t font-lock-multiline t face org-meta-line) 41 43 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 43 49 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 49 54 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 54 55 (font-lock-fontified t fontified t font-lock-multiline t) 55 60 (font-lock-fontified t fontified t font-lock-multiline t) 60 61 (font-lock-fontified t fontified t font-lock-multiline t) 61 63 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 63 65 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 65 69 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 69 72 (font-lock-fontified t fontified t font-lock-multiline t face org-meta-line) 72 73 (fontified t rear-nonsticky t face org-meta-line)) :emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t :archived-trees headline :select-tags ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments t)
  org-export-as-html(nil)
  call-interactively(org-export-as-html)
  org-export(nil)
  call-interactively(org-export nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!\0\310\311\312\"\210\313\311!\211\x1aA@)\242\314=\203!\0\310\315\312\"\210\316\v!\210\317 \210\320	!\210\f\203d\0\321ed\"\rV\203W\0eb\210\322\r\245y\210`\x1e^[db\210\322\r\245\rZy\210\x0e^[`|\210)\323c\210eb\210\324\325\326 \"\210\327\306!\210\324\330!\210\331\312\x1e\x1c\x1e\x1d\324\330!\210\212\332 \210+\331\207" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(error (error "No link found"))

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please 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] 6+ messages in thread

end of thread, other threads:[~2010-10-09  6:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23  1:49 "No link found" error during export of source block when headline has link Hsiu-Khuern Tang
2010-09-23  5:44 ` Noorul Islam K M
2010-10-04 19:07   ` Michael Brand
2010-10-06 14:52     ` Eric Schulte
2010-10-07 15:49       ` Michael Brand
2010-10-09  6:42       ` Hsiu-Khuern Tang

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