Open OrionRandD opened 3 years ago
The problem is with your defun zetteldeft-generate-id
. Unless you want to change how IDs are generated, you shouldn't need to define the function yourself (and if you do, make sure it takes arguments -- see the docs).
So remove that defun and it should work fine (same as #87).
Thx a lot. I will do so...
On Tue, Oct 27, 2020 at 11:39 AM EFLS notifications@github.com wrote:
The problem is with your defun zetteldeft-generate-id. Unless you want to change how IDs are generated, you shouldn't need to define the function yourself (and if you do, make sure it takes arguments -- see the docs).
So remove that defun and it should work fine (same as #87 https://github.com/EFLS/zetteldeft/issues/87).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EFLS/zetteldeft/issues/88#issuecomment-717290132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKKB4NRPDXTB27MC24LSM3LRVANCNFSM4TA3CMYQ .
Now I am getting this new error:
-> deft-file-mtime: Wrong type argument: hash-table-p, nil
when calling "M-x zetteldeft-new-file"
It was working OK till yesterday...
here is my config again:
(use-package! deft :custom (deft-directory "~/org~/deft-notes") (deft-extensions '("org" "md")) (deft-recursive t) (deft-use-filename-as-title t) (deft-filter-only-filenames t) ;; (deft-auto-save-interval 30.0) (deft-file-limit 200))
(setq deft-auto-save-interval 15.0)
(defun cypher/deft-open-other () (interactive) (deft-open-file-other-window t))
(defun cypher/deft-open-preview () (interactive) (deft-open-file-other-window))
(with-eval-after-load 'deft
(define-key deft-mode-map
(kbd "
(setq deft-strip-summary-regexp (concat "\(" "[\n\t]" ;; blank "\|^#\+[a-zA-Z_]+:.*$" ;;org-mode metadata "\)"))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package! zetteldeft :after deft :config (setq deft-new-file-format zetteldeft-id-format) (zetteldeft-set-classic-keybindings))
;; (defun zetteldeft-generate-id () ;; "Generate an ID in the format of `zetteldeft-id-format'." ;; (format-time-string 'zetteldeft-id-format))
;; a fix to the bug ;; https://github.com/EFLS/zetteldeft/issues/70#issuecomment-650784731
;; This was an attempt to fix the bug ;; (after! zetteldeft ;; (setq zetteldeft-title-prefix nil)) ;; ;; let us try this one
(set-file-template! "\.org$" :ignore t)
On Tue, Oct 27, 2020 at 12:40 PM Vagner Rener vagnerrener@gmail.com wrote:
Thx a lot. I will do so...
On Tue, Oct 27, 2020 at 11:39 AM EFLS notifications@github.com wrote:
The problem is with your defun zetteldeft-generate-id. Unless you want to change how IDs are generated, you shouldn't need to define the function yourself (and if you do, make sure it takes arguments -- see the docs).
So remove that defun and it should work fine (same as #87 https://github.com/EFLS/zetteldeft/issues/87).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EFLS/zetteldeft/issues/88#issuecomment-717290132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKKB4NRPDXTB27MC24LSM3LRVANCNFSM4TA3CMYQ .
No clue what would cause that, to be honest, as neither of those functions are called by Zetteldeft.
Is Deft itself working fine? Can you create new notes via the classic Deft functions?
Yes. I can. I will report the issue in deft itself... Thx
On Mon, Nov 2, 2020 at 5:11 AM EFLS notifications@github.com wrote:
No clue what would cause that, to be honest, as neither of those functions are called by Zetteldeft.
Is Deft itself working fine? Can you create new notes via the classic Deft functions?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EFLS/zetteldeft/issues/88#issuecomment-720311367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKKQY4UGPSI3DDLJLODSNZSTNANCNFSM4TA3CMYQ .
Did you get your issue fixed, @OrionRandD?
Nope. When I make a new file with zetteldeft I get this error
Wrote /home/vagner/org~/deft-notes/2020-11-26-2152 testib.org deft-file-mtime: Wrong type argument: hash-table-p, nil
And the file does not open. I have to open it with zetteldeft-find-file and the title looks wrong :(
seems a error in deft deft-file-mtime: Wrong type argument: hash-table-p, nil
but I do not know how to fix it... here is my config again:
(use-package! deft :custom (deft-directory "~/org~/deft-notes") (deft-extensions '("org" "md")) (deft-recursive t) (deft-use-filename-as-title t) (deft-filter-only-filenames t) ;; (deft-auto-save-interval 30.0) (deft-file-limit 200))
(setq deft-auto-save-interval 15.0)
;; :config ;; (setq deft-directory "~/org~/deft-notes") ;; (setq deft-extensions '("org" "md")) ;; (setq deft-recursive t) ;; (setq deft-use-filename-as-title t) ;; (setq deft-filter-only-filenames t) ;; (setq deft-auto-save-interval 30.0) ;; (setq deft-file-limit 200))
(defun cypher/deft-open-other () (interactive) (deft-open-file-other-window t))
(defun cypher/deft-open-preview () (interactive) (deft-open-file-other-window))
(with-eval-after-load 'deft
(define-key deft-mode-map
(kbd "
(setq deft-strip-summary-regexp (concat "\(" "[\n\t]" ;; blank "\|^#\+[a-zA-Z_]+:.*$" ;;org-mode metadata "\)"))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package! zetteldeft :after deft :config (setq deft-new-file-format zetteldeft-id-format) (zetteldeft-set-classic-keybindings))
;; (defun zetteldeft-generate-id () ;; "Generate an ID in the format of `zetteldeft-id-format'." ;; ;; (format-time-string zetteldeft-id-format) ;; (format-time-string "%Y-%m-%d %H:%M ") ;; )
;; a fix to the bug ;; https://github.com/EFLS/zetteldeft/issues/70#issuecomment-650784731
;; This was an attempt to fix the bug ;; (after! zetteldeft ;; (setq zetteldeft-title-prefix nil)) ;; ;; let us try this one
(set-file-template! "\.org$" :ignore t)
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
On Thu, Nov 26, 2020 at 6:44 PM EFLS notifications@github.com wrote:
Did you get your issue fixed, @OrionRandD https://github.com/OrionRandD?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EFLS/zetteldeft/issues/88#issuecomment-734487345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKPKFRQBL74N7IKXE6DSR3D2ZANCNFSM4TA3CMYQ .
I am geting this error
zetteldeft-new-file: Wrong number of arguments: ((t) nil "Generate an ID in the format of `zetteldeft-id-format'." (format-time-string 'zetteldeft-id-format)), 1
on calling
M-x zetteldeft-new-file C-c d n
;;;;;;;;;;;;;;;;;;
It was working without problems until I upgraded to Emacs27.1 on GNU/Linux Debian yesterday
And my config is as follows:
(use-package! deft :custom (deft-directory "~/org~/deft-notes") (deft-extensions '("org" "md")) (deft-recursive t) (deft-use-filename-as-title nil) (deft-filter-only-filenames t) (deft-auto-save-interval 30.0) (deft-file-limit 200))
(defun cypher/deft-open-other () (interactive) (deft-open-file-other-window t))
(defun cypher/deft-open-preview () (interactive) (deft-open-file-other-window))
(with-eval-after-load 'deft (define-key deft-mode-map (kbd "") 'cypher/deft-open-preview)
(define-key deft-mode-map
(kbd "") 'cypher/deft-open-other)
(define-key deft-mode-map
(kbd "s-j") 'evil-next-line)
(define-key deft-mode-map (kbd "s-k") 'evil-previous-line))
(setq deft-strip-summary-regexp (concat "\(" "[\n\t]" ;; blank "\|^#\+[a-zA-Z_]+:.*$" ;;org-mode metadata "\)"))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package! zetteldeft :after deft :config (setq deft-new-file-format zetteldeft-id-format) (zetteldeft-set-classic-keybindings))
(defun zetteldeft-generate-id () "Generate an ID in the format of `zetteldeft-id-format'." (format-time-string 'zetteldeft-id-format))
;; a fix to the bug ;; https://github.com/EFLS/zetteldeft/issues/70#issuecomment-650784731
;; This was an attempt to fix the bug ;; (after! zetteldeft ;; (setq zetteldeft-title-prefix nil)) ;; ;; let us try this one
(set-file-template! "\.org$" :ignore t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;