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

Magit commit causes error when fci-mode is not used #7236

Closed
bmag opened this issue Oct 1, 2016 · 1 comment
Closed

Magit commit causes error when fci-mode is not used #7236

bmag opened this issue Oct 1, 2016 · 1 comment

Comments

@bmag
Copy link
Collaborator

bmag commented Oct 1, 2016

Description :octocat:

Commiting with Magit causes an error when fci-mode is not defined. The cause is that git layer hooks fci-mode into git-commit-mode-hook even when the package fill-column-indicator is not used. (see

(add-hook 'git-commit-mode-hook 'fci-mode)
)

Reproduction guide 🪲

  • Have a Spacemacs config that doesn't use fill-column-indicator package
  • Start Emacs
  • In a git projects with changes, open magit-status (SPC g s)
  • open a commit (c c)

Observed behaviour: 👀 💔
Error message in the echo area:

Git failed ... [Hit $ to see buffer *magit-process: spacemacs-base for details]

Pressing $ shows that the error was:

*ERROR*: Symbol’s function definition is void: fci-modeerror: There was a problem with the editor '"c:/Users/bar/Desktop/emacs/programs/emacs-w64-25.1/bin/emacsclient.exe"'.
Please supply the message using either -m or -F option.

Expected behaviour: ❤️ 😄
Commit buffer opens and I'm able to commit the changes.

System Info 💻

  • OS: windows-nt
  • Emacs: 25.1.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: develop (rev. ac31e45)
  • Graphic display: t
  • Distribution: spacemacs-base
  • Editing style: hybrid
  • Completion: ivy
  • Layers:
((spacemacs-editing :packages
                    (avy expand-region))
 (spacemacs-evil :packages
                 (evil-lisp-state evil-iedit-state evil-nerd-commenter evil-numbers evil-surround))
 spacemacs-layouts
 (spacemacs-ui :packages
               (restart-emacs))
 ivy auto-completion emacs-lisp git markdown org
 (spacemacs-org :packages
                (not toc-org))
 (latex :variables latex-enable-auto-fill t latex-enable-folding t))
@TheBB
Copy link
Collaborator

TheBB commented Oct 20, 2016

Should be fixed in master.

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

3 participants