Giter VIP home page Giter VIP logo

Comments (5)

tomdl89 avatar tomdl89 commented on June 7, 2024

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.

flexibeast avatar flexibeast commented on June 7, 2024

.... 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.

tomdl89 avatar tomdl89 commented on June 7, 2024

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.

flexibeast avatar flexibeast commented on June 7, 2024

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.

tomdl89 avatar tomdl89 commented on June 7, 2024

No problem, glad it's sorted!

from evil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.