mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Use created argument in ein:org-goto-link
This commit is contained in:
parent
5da71023d9
commit
b8195bc947
1 changed files with 9 additions and 7 deletions
|
@ -29,15 +29,17 @@
|
|||
(require 'org)
|
||||
(require 'ein-notebooklist)
|
||||
|
||||
(defun* ein:org-goto-link (notebook -created-not-used-
|
||||
(defun* ein:org-goto-link (notebook created
|
||||
&key worksheet-index
|
||||
&allow-other-keys)
|
||||
(if worksheet-index
|
||||
(ein:notebook-worksheet-open-ith notebook worksheet-index
|
||||
#'pop-to-buffer)
|
||||
(pop-to-buffer (ein:notebook-buffer notebook)))
|
||||
;; More to come here:
|
||||
)
|
||||
(if created
|
||||
(ein:log 'info "Linked notebook did not exist. Created a new one.")
|
||||
(if worksheet-index
|
||||
(ein:notebook-worksheet-open-ith notebook worksheet-index
|
||||
#'pop-to-buffer)
|
||||
(pop-to-buffer (ein:notebook-buffer notebook)))
|
||||
;; More to come here:
|
||||
))
|
||||
|
||||
;;;###autoload
|
||||
(defun ein:org-open (link-path)
|
||||
|
|
Loading…
Add table
Reference in a new issue