-
Notifications
You must be signed in to change notification settings - Fork 103
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
Editorconfig causes 'Revert buffer from file ...' #246
Comments
So I've run into this and I think the problem is a combination of having a [*] entry in the project's .editorconfig which causes editorconfig to attempt to reset the mode every time the git-rebase-todo file is loaded. The short term fix is to exclude git-rebase-mode:
However I think editorconfig could be a lot smarter here. git-rebase-mode along with other "interactive" style modes are derived from special-mode. I think it would probably make sense for |
…g#246) Some buffers get confused if you keep setting their mode, one example is git-rebase-mode. This is an example buffer of a class of special-mode buffers which are usually (but not always) non-file buffers. Either way these buffers are usually special purpose interactive buffers that will only get confused if editorconfig tries to mess around with them.
Some buffers get confused if you keep setting their mode, one example is git-rebase-mode. This is an example buffer of a class of special-mode buffers which are usually (but not always) non-file buffers. Either way these buffers are usually special purpose interactive buffers that will only get confused if editorconfig tries to mess around with them.
@melias122 I can use xref-find-references fine in my .emacs.d but perhaps it's a function of how it's setup. I don't have .editorconfig files for it for example. Can you explain in more detail what goes wrong? |
Thanks for reporting your issue, and sorry for inconvenience. |
I haven't looked into exactly which commit introduced the issue, but editorconfig seems to be breaking https://github.com/NicolasPetton/Indium as well. It seems that when entering I'm not sure if it's the exact same issue as reported by the OP, and I could |
I started testing a new implementation of editorconfig-mode, in hope that the issue reported in #242, #244 and #246 would be solved. It is not so tested very well yet, but currently I'm using this impl several days without any problem. |
Thanks @10sr, I will do testing and let you know if something is broken (in my case). |
I just merged #263 so this is now enabled by default 🙌 (set editorconfig--legacy-version to disable this and use old version) |
Thank you for this.
10sr ***@***.***> writes:
… I just merged #263 so this is now enabled by default 🙌 (set editorconfig--legacy-version to disable this and use old version)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
Kind regards,
Met een vriendelijke groet,
Atenciosamente,
Ben Mezger
https://seds.nl
https://github.com/benmezger
|
Closing this now. |
* editorconfig.el: Drop redundant `require`s of pcase, nadvice, rx. Remove unnecessary (and incorrect) `defvar`s in `eval-when-compile`. (recentf): Remove `with-eval-after-load` workaround introduced for issue editorconfig#240 since a real fix was installed (for issue editorconfig#246) since then. (editorconfig--get-indentation): Use `derived-mode-all-parents` when available. (find-library-name, lm-version): Move declarations to right after the corresponding `require` so we have a reason to believe they're defined. (editorconfig-version): Use `package-get-version` when available. * ert-tests/editorconfig-fnmatch.el: Prefer #' to quote function names.
Hey found that editroconfig started to cause this when doing
magit
interactive rebase.xref-find-references
is also affected in some modes in elisp.Found that something was already done in #240. Tried to with miniconfig:
init-mini.el
Steps to reproduce similar as in #240
emacs -Q -l init-mini.el
editorconfig
and `magitM-x magit-status
andr i
(rebase interactive) on any git hash.Revert buffer from file .../.emacs.d/.git/rebase-merge/git-rebase-todo? (y or n)
The text was updated successfully, but these errors were encountered: