Comments (5)
Thanks for the bug report @flexibeast . Could you provide some repro instructions? Specifically in a make emacs
session (check out evil's Makefile for more details) if possible. Evil isn't easy to get "outside" of once activated, so want to make sure I'm doing the same thing you're doing when trying to repro.
from evil.
.... dang. It works in the Emacs instance opened via make emacs
. (And 224/225 tests passed, with one skipped: evil-test-jump-buffers
).
i'm actually not surprised; i've suspected the issue is something specific to my setup, as it's the sort of thing that other users would probably be reporting otherwise. But i've not had any good ideas about how to approach this. i have ~180 packages installed, and my config is a literate Org file that, once tangled, is nearly 3000 lines long, but many packages aren't specifically configured beyond their defaults. So i'm not sure whether bisection would work ....
By "outside of evil" i meant: i don't have evil enabled globally, and usually only enable it per-buffer via evil-local-mode
.
Here's the entirety of evil-related stuff in my config:
[excerpt from the value assigned to `mode-line-format`:]
'(:eval
(if evil-state
" (v)"))
...
(define-key personal-global-map (kbd "e") #'evil-local-mode-y-or-n)
...
(require 'evil)
(setq evil-emacs-state-cursor '("red" box))
(setq evil-normal-state-cursor '("green" box))
(setq evil-visual-state-cursor '("orange" box))
(setq evil-insert-state-cursor '("red" bar))
(setq evil-replace-state-cursor '("red" bar))
(setq evil-operator-state-cursor '("red" hollow))
;; KLUDGE:
;; Remove all advice on `describe-char', including the advice added by
;; evil-integration.el, to get `describe-char' working again.
(ad-deactivate #'describe-char)
...
(defun evil-local-mode-y-or-n ()
(interactive)
(if (member 'evil-local-mode local-minor-modes)
(evil-local-mode -1)
(if (y-or-n-p "Enable evil-local-mode?")
(evil-local-mode))))
evil-local-mode-y-or-n
is there because i found myself accidentally invoking the binding for evil-local-mode
in personal-global-map
, not realising i'd done so, and was then confused as to what was happening in responses to my keyboard inputs. :-P
from evil.
I still can't reproduce this error, having tried running emacs like so:
emacs -Q -L . -l evil.el
and manually enabling and disabling evil-local-mode
in various buffers, describe-char
still works in both instances. I'll close this issue for now, but please feel free to reopen if you can provide repro instructions in such a limited environment. If you're not aware, it looks like org-babel-tangle is an option for extracting the source code from a literate config. Maybe worth a try if bisection is tricky as is.
from evil.
Yeah, my config gets tangled at each startup, so i did a bisect-and-restart thing.
Embarrassingly, it turned out that a while back, for reasons i now can't remember, i'd put a couple of lines in a separate file i have for ELisp dev purposes, which i load from my main config file:
(debug-on-entry #'evil-mode)
(debug-on-entry #'evil-local-mode)
Commenting out those lines has resulted in things working again.
Sorry for the noise, and for wasting your time!
from evil.
No problem, glad it's sorted!
from evil.
Related Issues (20)
- `company-complete` results in `(evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil)`
- Missing Visual Mode command: v_g_CTRL-A HOT 3
- evil-visual-char is not inclusive when using goto-char? HOT 2
- the global ex command (:g) doesn't take a count HOT 1
- provide vim-like indication of mode in statusline HOT 3
- completion-in-region-mode keybindings don't override, breaking minibuffer-visible-completions
- evil + prettify
- Visual states should set region-extract-function
- `Vkko` does nothing under cua-selection-mode
- How to reliably check if at the beginning of the line in Evil visual state? HOT 3
- visual selection + prettify
- `vip` select wrong region in org-mode HOT 3
- Help overriding only certain postfixs to "m" HOT 2
- $ followed by g j moves point at the beginning of next line HOT 4
- Don't move cursor (and don't unhighlight) options in evil mode HOT 1
- Move `evil-test-helpers.el` to its own repo? HOT 6
- `evil-redo` won't redo `evil-undo`, unless the latter was called in "normal mode" HOT 6
- Can't exit Visual-Block Mode with keyboard-escape-quit HOT 1
- Copy/paste in + register doesn't work when evil is run in Emacs terminal HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evil.