Comments (5)
If I "Instrument Function for Debugging" on magit-run-git-with-editor
, then step through line 458 and line 459, it succeeds. If I exit emacs and re-open, the problem repeats. Somehow, I managed to get this stack trace...
* #[128 "\300\301�\"\210\300\302�\"\207" [apply debug--implement-debug-on-entry (closure (eshell-preoutput-filter-functions t) (envvar &rest body) "Use the Emacsclient as the editor while evaluating BODY.\nModify the `process-environment' for processes started in BODY,\ninstructing them to use the Emacsclient as editor. ENVVAR is the\nenvironment variable that is exported to do so, it is evaluated\nat run-time.\n\n(fn [ENVVAR] BODY...)" (edebug-enter (quote with-editor*) (list envvar body) (function (lambda nil (edebug-after (edebug-before 0) 3 (cons ... ...)))))) ((depth . -100))] 4 nil](magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))
macroexpand((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))) nil)
macroexp-macroexpand((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))) nil)
macroexp--expand-all((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))
macroexp--all-forms(((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))))
#[1028 "\300�\300\301�\302\"\303��!��\242A#��\242#\207" [macroexp--cons macroexp--all-clauses 1 macroexp--all-forms] 10 "\n\n(fn FORM BODY BINDINGS FUN)"](((let ((magit-process-popup-time -1) (shell-file-name (if (and (eq system-type (quote windows-nt)) (not magit-cygwin-mount-points)) "cmdproxy" shell-file-name))) (with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))) ((with-editor* magit-with-editor-envvar (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))) ((magit-process-popup-time -1) (shell-file-name (if (and (eq system-type (quote windows-nt)) (not magit-cygwin-mount-points)) "cmdproxy" shell-file-name))) let)
macroexp--expand-all((magit-with-editor (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args)))))
macroexp--all-forms((edebug-after (edebug-before 2) 6 (magit-with-editor (edebug-after (edebug-before 3) 5 (magit-run-git-async (edebug-after 0 4 args))))) 1)
#[514 "\300�\301\"\211\204�```
from with-editor.
Try re-compiling (e.g. by re-installing) with-editor
and magit
(in that order).
from with-editor.
The reason why it works when debugging but not otherwise might be that the uncompiled code is used when debugging but the corrupted compiled code is used otherwise. The corruption is probably due to you having updated magit before with-editor.
from with-editor.
Anyway, carefully recompiling almost certainly fixes this.
from with-editor.
Perfect! Removed the *.elc
files from both directories and modified the init.el
to have a :requires with-editor
. Thank you!
from with-editor.
Related Issues (20)
- `export` output on new terminal buffers HOT 2
- No output in eshell on with-editor export HOT 2
- with-editor fails in term-mode. HOT 10
- `git` not found, despite `magit-git-executable` being set. HOT 15
- sleeping editor does not set `with-editor-previous-winconf` HOT 4
- Cannot commit from Magit on Windows 11
- magit-commit editor breakage after updating emacs master HOT 12
- unexpected EOF while looking for matching `'' trying to edit agenix secret with `agenix -e` HOT 1
- Cannot determine a suitable Emacsclient HOT 2
- shell-commands not seeing $EDITOR override HOT 5
- EDITOR setting in vterm breaks remote programs calling EDITOR HOT 2
- When cancelling an edit, why do we send USR2 instead of USR1? HOT 4
- homebrew emacs-plus breaks with-editor--setup HOT 10
- Can't call emacsclient.exe on Windows HOT 7
- [BUG] make-process--with-editor-process-filter: Creating pipe: Too many open files HOT 6
- Emacs Snap installation - unable to commit via magit HOT 3
- Failure after update of Emacs from 28.2 to 29.1 HOT 1
- shell-command-with-editor-mode: path is treated as local for remote files HOT 2
- `magit-status' reports failed to provide feature ‘with-editor’ HOT 39
- Tag latest release 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 with-editor.