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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remapping issue when org-habit is present #6380

Closed
et2010 opened this issue Jun 21, 2016 · 14 comments
Closed

Remapping issue when org-habit is present #6380

et2010 opened this issue Jun 21, 2016 · 14 comments

Comments

@et2010
Copy link
Contributor

et2010 commented Jun 21, 2016

Description :octocat:

Auto-evilication could not remap function in map org-agenda-mode-map when org-habit module is loaded.

Reproduction guide 馃

  • Add (add-to-list 'org-modules 'org-habit) to your user-config
  • Start emacs

Observed behaviour: 馃憖 馃挃
In message buffer, you will get a few warnings telling you that some functions were not properly remapped:

(Spacemacs) Warning: Auto-evilication could not remap these functions in map org-agenda-mode-map': - org-agenda-next-line' originally mapped on `C-n'

(Spacemacs) Warning: Auto-evilication could not remap these functions in map org-agenda-mode-map': - org-agenda-toggle-time-grid' originally mapped on `G'

(Spacemacs) Warning: Auto-evilication could not remap these functions in map org-agenda-mode-map': - org-agenda-filter-remove-all' originally mapped on `|'

(Spacemacs) Warning: Auto-evilication could not remap these functions in map org-agenda-mode-map': - org-agenda-filter-by-tag-refine' originally mapped on `'

Expected behaviour: 鉂わ笍 馃槃
No warnings.

System Info 馃捇

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.21
  • Spacemacs branch: nil (rev. 50d5cdd)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: hybrid
  • Completion: helm
  • Layers:
((auto-completion :disabled-for org)
 better-defaults emacs-lisp evil-snipe git github latex bibtex markdown org org-config window-purpose
 (han :variables han-enable-youdao-dict t han-enable-fcitx t han-org-line-spacing 0.2)
 pandoc pdf-tools python
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 shell-scripts smex
 (spell-checking :variables spell-checking-enable-by-default nil)
 syntax-checking version-control yaml)
@TheBB
Copy link
Collaborator

TheBB commented Jun 21, 2016

This isn't necessarily a bug. There will always be mappings that evilification can't fit. I disagree that the expected behaviour should be no warnings.

If you want you can suggest alternate bindings for these functions.

@bmag
Copy link
Collaborator

bmag commented Jun 21, 2016

This isn't necessarily a bug

I'm not sure if clarification is necessary, but I'll clarify anyway just in case: the warnings themselves are not a bug. What may be a bug is that the specified commands lost their bindings, and we may want to explicitly rebind them. Suggestions are welcome.

@syl20bnr
Copy link
Owner

Auto-evilication

Never saw the typo before :-)

@bmag When the warning is displayed it means that we effectively lose the key binding. One possibility would be to move these lost bindings to SPC m prefix.

@Stebalien
Copy link
Contributor

This has become a bit of an annoyance given that the *spacemacs* buffer now displays warnings by default.

@d12frosted
Copy link
Collaborator

The warning is converted to message with this commit 4f70055

@Stebalien
Copy link
Contributor

Thanks!

@eedahl
Copy link

eedahl commented Nov 9, 2016

@syl20bnr That sounds like a good idea. I get a bunch of these warnings too.

I have no idea which bindings I might have lost, which is also a problem. At least to me being a complete newb.

EDIT: Reinstalling packages, it's these: https://gyazo.com/5c3fda769b443b21fe4ecb5d7b73e265

@kain88-de
Copy link

I get these warnings by just enabling agenda or todos in dotspacemacs-startup-lists. That is annoying since it takes screen space away to show my agenda.
I'm using version Spacemacs v.0.200.5

@aulambda
Copy link

aulambda commented Jan 4, 2017

I'm having the same issue as @kain88-de, I get warnings if I enable agenda or todos in dotspacemacs-startup-lists, is there a way around this? I'm currently just not enabling agenda there, since there is no point, because the messages take up the space.

@gnohz
Copy link

gnohz commented Jan 7, 2017

same here as @et2010

@kain88-de
Copy link

Btw the problem I described above does not appear on the develop branch.

@fbob
Copy link

fbob commented Jan 28, 2017

Same here.
Any workaround without switching to the dev branch ?
Thanks :)

@ghost
Copy link

ghost commented Jan 31, 2017

Just fyi, because it fits in here. The same happens when mobile-org is loaded:

Warnings:
                                - Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
                                  `org-agenda-next-line' originally mapped on `C-n'      
                                - Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
                                  `org-agenda-toggle-time-grid' originally mapped on `G'      
                                - Auto-evilication could not remap these functions in map `org-agenda-mode-map': -
                                  `org-agenda-filter-remove-all' originally mapped on `|'      

@syl20bnr
Copy link
Owner

syl20bnr commented Feb 5, 2017

Same here.
Any workaround without switching to the dev branch ?

@fbob There is no clean work-around but a slightly clean hack you can try is to set spacemacs-buffer--warnings to nil in your user-config function. But it may also drop other warnings, fortunately enough they should still be logged in *messages* buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests