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

I can't move to next blog when there is only 1 blog in easy-hugo-bloglist. #80

Closed
xyslope opened this issue Feb 28, 2024 · 2 comments
Closed
Labels

Comments

@xyslope
Copy link

xyslope commented Feb 28, 2024

Hi,
I am using easy hugo for some years.
I really like it.

The follwing code will do nothing when there is only 1 blog in easy-hugo-bloglist.
(defun easy-hugo-next-blog () "Go to next blog." (when (< 1 (length easy-hugo-bloglist)) (if (eq (- (length easy-hugo-bloglist) 1) easy-hugo--current-blog) (setq easy-hugo--current-blog 0)

In that case,
(length easy-hugo-bloglist)
return 1 and exit the function.

Should it be either of the following code?

(boundp 'easy-hugo-bloglist)
or
(when (< 0 (length easy-hugo-bloglist))

Well, I am trying to fix this issue but haven't got good solution.

@masasam
Copy link
Owner

masasam commented Feb 28, 2024

Hi, @xyslope !
Thank you for comment.
I don't understand the situation, so could you show me the part of your init.el related to easy-hugo?

@xyslope
Copy link
Author

xyslope commented Apr 25, 2024

I am really sorry.
I can't remember what I wanted to say at that time.
I will examine source codes later and make an new issue.

Thank you.

@xyslope xyslope closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants