Rahi374 / org-notebook

A package to ease the use of org-mode as a notebook
18 stars 4 forks source link

Not able to create a notebook via org-notebook-new-notebook #5

Open bigDaddyS1oth opened 6 years ago

bigDaddyS1oth commented 6 years ago

It's sort of a weird issue. I'm just taking notes while learning Apache Spark through a course I got on Udemy.

Behaviour

Doing M-x org-notebook-new-notebook and typing in a name for the notebook (for me it's ~/Documents/OrgProgShit/Apache-Spark) and upon pressing RET the minibuffer will show Notebook name: ~/Audio. Pressing RET again says /home/my_user/Audio/[some random audio file in that directory]. This happens always regardless of the name given for the new notebook, whether you type in .org after the name, and if there's a specific created empty directory for the new notebook.

Expected Behaviou

Actually being about to create a new notebook, or at least getting an error for why I can't create one.

Configuration files

Here's all I have in a file that I load in my init.el for Org stuff (path to it is ~/.emacs.d/layers/org/org-cfg.el):

;; Couple of basic keys (others will be in keys.el)
(global-set-key (kbd "C-c l") 'org-store-link)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c c") 'org-capture)
(global-set-key (kbd "C-c b") 'org-iswitchb)

(setq org-todo-keywords
      '((sequence "TODO(t)" "|" "DONE(d)")
    (sequence "WAITING(w)" "VERIFY(v)" "IDLE(i)" "|" "ALMOST(a)" "FIXED(x)")
    (sequence "|" "FEEDBACK(e)")
    (sequence "|" "CANCELED(c)")))

;; Buncha Orgmode addons
(use-package org-autolist
  :ensure t
  :hook (org-mode-hook . org-autolist-mode))

(use-package org-brain
  :ensure t
  :after org-mode)

(use-package org-notebook
  :ensure t)

(use-package org-journal
  :ensure t
  :after org-mode)

(use-package org-ref
  :ensure t
  :after org-mode)

(use-package org-edit-latex
  :ensure t
  :after org-mode)
;;

; Fancy Bullets
(use-package org-bullets
  :ensure t
  :commands 'org-mode
  :init
  (add-hook 'org-mode-hook 
        (lambda () (org-bullets-mode 1))))
;
;;

;; Extra Org-Babel packages
(use-package ob-async
  :ensure t)

(use-package ob-browser
  :ensure t)

(use-package ob-kotlin
  :ensure t)

(use-package ob-hy
  :ensure t)

;;
(provide 'org-cfg)
;; EOF

System Info and such

OS: GNU/Linux Emacs Version: 25.3.1 Org Version (from Melpa): 2017-12-25 Org-Notebook Version (from Melpa): 2017-03-21.2152

Rahi374 commented 6 years ago

I was unable to reproduce the problem.

I suspect, based on a static code trace, that ido-read-file-name is probably causing the problem.

Could you please try on a "fresh install" of emacs? As in make a temporary dir with a skeletal .emacs which includes practically just org-notebook and then HOME=tmpdir emacs

ghost commented 4 years ago

Same problem here, using Doom Emacs. Prompt gets stuck on "New Notebook Name"