Open zhcosin opened 7 years ago
In EGO, the symbol 'k' is only used at the following place:
(do ((k summary-alist (cdr k))
(result-k nil (append (cdr (car k)) result-k)))
((equal k nil) result-k))
It's a do
loop, and I don't find there is any problem, maybe you type 'k' into the source code by accident?
My configure is show in bellow and the output of grep in ego is as fllow:
zhcosin@zhcosin-ubuntu2:~/.emacs.d/elpa/ego-20160909.937$ grep -nH '[^a-zA-Z]k[^a-zA-Z]' *.el
ego-export.el:619: (sort (do ((k summary-alist (cdr k))
ego-export.el:620: (result-k nil (append (cdr (car k)) result-k)))
ego-export.el:621: ((equal k nil) result-k))
and I use toggle-debug-on-error, then the error information as fllow:
Debugger entered--Lisp error: (void-variable k)
ego--update-summary(((:title "梅子黄时日日晴" :date "2016-09-12" :mod-date "2016-09-12" :description "<Add description here>" :thumb nil :tags ("tag1" "tag2" "tag3") :year "2016" :authors ("zhcosin") :category "math" :uri "/math/梅子黄时日日晴/" :pub-dir "~/.ego-tmp/math/梅子黄时日日晴/")) "~/.ego-tmp/" "years")
#[(name) "\303 \n#\207" [file-attr-list pub-root-dir name ego--update-summary] 4]("years")
mapc(#[(name) "\303 \n#\207" [file-attr-list pub-root-dir name ego--update-summary] 4] ("years" "authors" "tags"))
ego--publish-changes(("/home/zhcosin/zhcosin.github.io/math/2016-09-12-1.org") nil (:update ("/home/zhcosin/zhcosin.github.io/math/2016-09-12-1.org") :delete nil) "~/.ego-tmp/")
ego-do-publication("zhcosin.github.io" t nil "HEAD~1" "dssgs" nil)
call-interactively(ego-do-publication record nil)
command-execute(ego-do-publication record)
helm-M-x(nil #("ego-do-publication" 0 18 (match-part "ego-do-publication")))
call-interactively(helm-M-x nil nil)
command-execute(helm-M-x)
Sorry, I can't repeat your result.
I tried many different data types in summary-alist
at the following codes:
(do ((k summary-alist (cdr k))
(result-k nil (append (cdr (car k)) result-k)))
((equal k nil) result-k))
But (void-variable k)
warning won't happen.
And I use your configure to build new repository with no problem. That's strange.
So leave it here, maybe others can help.
I found the error has occur when I pass a function as a parameter for the other function, so I had to use the keyword 'funcall'. I guess it's the maybe reason, maybe the do-for-each-in-list syntax is provider by some dependency package which not in my emacs.
I am trying ego, but when I execute ego-do-publication, the error "Symbol's value as variable is void: k" is occur. My system is ubuntu 12.04, emacs 24.5 and my configure as follow: