Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No buffer file name when exporting in org mode #1743

Closed
Yevgnen opened this issue Jun 20, 2017 · 0 comments
Closed

No buffer file name when exporting in org mode #1743

Yevgnen opened this issue Jun 20, 2017 · 0 comments

Comments

@Yevgnen
Copy link

Yevgnen commented Jun 20, 2017

The line here checks the buffer-file-name. When exporting in org-mode, the it seems that a indirect buffer is created and with no buffer file name which emits an error.

#+BEGIN_SRC cython
  cdef int i
  cdef float k
#+END_SRC

Error:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  replace-regexp-in-string("[^-0-9a-zA-Z_./\n]" "\\\\\\&" nil)
  shell-quote-argument(nil)
  cython-mode()
  org-html-fontify-code("cdef int i\ncdef float k" "cython")
  org-html-do-format-code("cdef int i\ncdef float k" "cython" nil t nil)
  ...
  org-export-to-file(html "./cython.html" nil nil nil nil nil)
  org-html-export-to-html(nil nil nil nil)
  (org-open-file (org-html-export-to-html nil s v b))
  (if a (org-html-export-to-html t s v b) (org-open-file (org-html-export-to-html nil s v b)))
  (lambda (a s v b) (if a (org-html-export-to-html t s v b) (org-open-file (org-html-export-to-html nil s v b))))(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)
@scoder scoder closed this as completed in 08ef5bd Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant