{"action":"created","issue":{"url":"https://api.github.com/repos/abo-abo/lispy/issues/141","labels_url":"https://api.github.com/repos/abo-abo/lispy/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/abo-abo/lispy/issues/141/comments","events_url":"https://api.github.com/repos/abo-abo/lispy/issues/141/events","html_url":"https://github.com/abo-abo/lispy/issues/141","id":116935088,"number":141,"title":"org + lispy + evil Possible issue | Not able to cycle subtree/heading","user":{"login":"nixmaniack","id":542810,"avatar_url":"https://avatars.githubusercontent.com/u/542810?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmaniack","html_url":"https://github.com/nixmaniack","followers_url":"https://api.github.com/users/nixmaniack/followers","following_url":"https://api.github.com/users/nixmaniack/following{/other_user}","gists_url":"https://api.github.com/users/nixmaniack/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmaniack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmaniack/subscriptions","organizations_url":"https://api.github.com/users/nixmaniack/orgs","repos_url":"https://api.github.com/users/nixmaniack/repos","events_url":"https://api.github.com/users/nixmaniack/events{/privacy}","received_events_url":"https://api.github.com/users/nixmaniack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-14T16:14:27Z","updated_at":"2015-11-15T11:00:30Z","closed_at":"2015-11-15T09:57:09Z","body":"Following is `~/.emacs`\r\n```elisp\r\n(require 'package)\r\n(add-to-list 'package-archives\r\n\t     '(\"melpa\" . \"https://melpa.org/packages/\") t)\r\n(when (< emacs-major-version 24)\r\n  ;; For important compatibility libraries like cl-lib\r\n  (add-to-list 'package-archives '(\"gnu\" . \"https://elpa.gnu.org/packages/\")))\r\n(package-initialize)\r\n\r\n(unless (package-installed-p 'use-package)\r\n  (package-refresh-contents)\r\n  (package-install 'use-package))\r\n\r\n(require 'use-package)\r\n(use-package lispy\r\n  :ensure t\r\n  :init\r\n  (progn\r\n    (defun turn-on-lispy-mode ()\r\n      (when (member major-mode\r\n                    '(emacs-lisp-mode lisp-interaction-mode clojure-mode racket-mode))\r\n        (lispy-mode)))\r\n    (defun turn-off-lispy-mode () (lispy-mode -1))\r\n\r\n    (add-hook 'evil-insert-state-entry-hook  'turn-on-lispy-mode)\r\n    (add-hook 'evil-insert-state-exit-hook 'turn-off-lispy-mode)\r\n    ;; (define-key evil-insert-state-map (kbd \"s-m\") 'lispy-mark-symbol)\r\n    ))\r\n\r\n(use-package evil\r\n  :ensure t\r\n  :init (evil-mode 1))\r\n```\r\n\r\nFollowing is `sample.org`\r\n```org\r\n* This is heading\r\n* This is another heading\r\n\r\n** This is sub heading\r\n\r\n** And one more sub heading\r\n\r\n** So is this one\r\n\r\n*** This is level 3 sub heading\r\n\r\n- [X] item 1\r\n- [ ] item 2\r\n- [ ] item 3\r\n- [ ] item 4\r\n```\r\n\r\nOpen sample.org, navigate to \"This is level 3 sub heading\", you can use `<tab>` to cycle it while in normal evil state, go to insert state with `i`, you can still cycle subtree, now go back to normal mode, and now you can't cycle anymore. Following error/message is generated. \r\n\r\n`byte-code: Before first headline at position 118 in buffer sample.org`\r\n\r\nFollowing is from view-lossage if at all it's helpful, after opening sample.org, the last <tab> threw error.\r\n```\r\nj <tab>\r\nj j j j <tab> j j <tab> i <escape> i <tab> \r\n```\r\n\r\nIf you comment out, lispy in `~/.emacs`, everything works as expected, you can cycle headings normally. \r\n\r\n\r\nI'm not entirely sure if it's lispy or something else, but based on repro steps, I can only point at lispy hence filing issue here. \r\n\r\nAnd, thank you for making this awesome lisp editing package. \r\n"},"comment":{"url":"https://api.github.com/repos/abo-abo/lispy/issues/comments/156801997","html_url":"https://github.com/abo-abo/lispy/issues/141#issuecomment-156801997","issue_url":"https://api.github.com/repos/abo-abo/lispy/issues/141","id":156801997,"user":{"login":"abo-abo","id":2937359,"avatar_url":"https://avatars.githubusercontent.com/u/2937359?v=3","gravatar_id":"","url":"https://api.github.com/users/abo-abo","html_url":"https://github.com/abo-abo","followers_url":"https://api.github.com/users/abo-abo/followers","following_url":"https://api.github.com/users/abo-abo/following{/other_user}","gists_url":"https://api.github.com/users/abo-abo/gists{/gist_id}","starred_url":"https://api.github.com/users/abo-abo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abo-abo/subscriptions","organizations_url":"https://api.github.com/users/abo-abo/orgs","repos_url":"https://api.github.com/users/abo-abo/repos","events_url":"https://api.github.com/users/abo-abo/events{/privacy}","received_events_url":"https://api.github.com/users/abo-abo/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T11:00:30Z","updated_at":"2015-11-15T11:00:30Z","body":"Thanks for catching that :)"}}