tsgates / git-emacs Goto Github PK
View Code? Open in Web Editor NEWYet another git mode on emacs for newbies
Home Page: http://files.taesoo.org/git-emacs/git-emacs.html
Yet another git mode on emacs for newbies
Home Page: http://files.taesoo.org/git-emacs/git-emacs.html
as said in the title,
after runned
M-x git-status
the status line shows
Symbol's function definition is void: scroll-bar-columns
hi, tsgates.
I use emacs23-nox in ubuntu 12.04. when I run git-status, I get the message above.
I have to disable the function scroll-bar-columns and fringe-columns. And it work well then.
maybe there is some different way to solve it. thanks.
On Ubuntu 11.04, this functionality is provided via git ls-files
. I can't open files under git without it trying to execute git-ls-files
.
This line is causing the error
494: (apply #'git--exec-buffer "ls-files" "-t" "-z" args)
I'm running Aqua Emacs 1.8c2 on a Mac with the latest git-emacs from github. I installed git from MacPorts (version 1.5.6.2). It lives in /opt/local/bin, which is in my search path. git-emacs correctly reports the green/red status for a file, but if I try to check it in (C-x v v), nothing happens. In the Messages buffer, I get this:
ad-Orig-error:
No other error text. My working theory is that git-emacs is unable to find the git binary. I even tried hard-coding the path into git-exec, but to no avail. Any ideas?
I manually changed its value in git-emacs.el to sth like 10 secs:
(defcustom git--timer-sec 10.0
"Timer to monitor .git repo to update modeline"
:type '(number)
:group 'git-emacs)
.....however, when the task gets executed it is still ~40% CPU intensive. will gladly help out if you can provide some hints.
thanks!
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-to-char(nil)
git--status-index("init.el")
git--status-file("init.el")
git--update-modeline()
ad-Advice-vc-find-file-hook(#[nil "�\203�
Symbol's function definition is void: git--uninstall-state-mark-modeline
PR #19 breaks refreshing buffers when changing branches. Reverting cl-flet
-> flet
fixes the problem. I will update later with more details + PR.
Cloned git-emacs into new directory, ran make:
Compiling
rm -f *.elc
emacs -Q --batch ""-L /usr/share/doc/git-core/contrib/emacs -L ~/.emacs.d/"" -L . -f batch-byte-compile *.el
Ido mode enabled
Ido mode disabled
In end of data:
git--test.el:290:3:Warning: the function `git--uninstall-state-mark-modeline'
is not known to be defined.
Wrote /home/tamara/Projects/git-emacs/git--test.elc
In git-blame-filter:
git-blame.el:280:31:Warning: save-excursion' defeated by
set-buffer'
In git-blame-new-commit:
git-blame.el:323:53:Warning: save-excursion' defeated by
set-buffer'
git-blame.el:338:28:Warning: `goto-line' used from Lisp code
That command is designed for interactive use only
Wrote /home/tamara/Projects/git-emacs/git-blame.elc
Wrote /home/tamara/Projects/git-emacs/git-emacs-autoloads.elc
In toplevel form:
git-emacs.el:88:1:Warning: cl package required at runtime
In git--actual-push:
git-emacs.el:1030:39:Warning: reference to free variable `dry-run-output'
In git--resolve-merge-buffer:
git-emacs.el:1350:12:Warning: default-major-mode' is an obsolete variable (as of Emacs 23.2); use
major-mode' instead.
In git--branch-mode-refresh:
git-emacs.el:2191:23:Warning: goto-line' used from Lisp code That command is designed for interactive use only git-emacs.el:2195:21:Warning:
previous-line' used from Lisp code
That command is designed for interactive use only
git-emacs.el:2197:10:Warning: `next-line' used from Lisp code
That command is designed for interactive use only
Wrote /home/tamara/Projects/git-emacs/git-emacs.elc
Wrote /home/tamara/Projects/git-emacs/git-global-keys.elc
In toplevel form:
git-load-example.el:4:30:Error: Cannot open load file: soo-load
Wrote /home/tamara/Projects/git-emacs/git-log.elc
Wrote /home/tamara/Projects/git-emacs/git-modeline.elc
Wrote /home/tamara/Projects/git-emacs/git-status.elc
make: *** [compile] Error 1
Hello,
I am using magit but I still use this package for the status in the modeline.
I am more and more obliged to adapt it so that it still works.
I think it would be really good to reuse the part of the code that manages that ( especially the git-modeline.el file ).
Are you interested in this idea? if not can I get the code to do it?
Regards
"Yet another git mode on emacs for newbies
http://files.taesoo.org/git-emacs/git-emacs.html" @ https://github.com/tsgates/git-emacs/
Is there an obscure way of pushing to remote and if not are there plans of implementing this feature?
It feels like one of those things that is being left out on purpose but i can't really tell why...
Sometimes I have to edit files via a symlink, and then I want git-commit-file to commit the original file, not the symlink itself. A simple tweak is have git-commit-file
(in git-emacs.el) use true-filename
, i.e., change the second git-commit
call to
(git-commit amend (list (file-relative-name (file-truename buffer-file-name))))
In status mode, I'd leave the current behavior unchanged.
Thoughts?
On a project on github that I can control well on the command line, emacs-git fails when I try to commit:
if: Symbol's function definition is void: case
I am using GNU Emacs 22.3.1 (i386-mingw-nt6.0.6002)
Entering the debugger on the error shows:
Debugger entered--Lisp error: (void-function case)
(case (git--status-file filename) ((quote modified) (git-commit-all)) ((quote staged) (git-commit-all)) ((quote unknown) (git--add filename)) ((quote unmerged) (git--add filename)) (t (git--add filename)))
(if on-git\? (case (git--status-file filename) (... ...) (... ...) (... ...) (... ...) (t ...)) (setq ad-return-value (ad-Orig-vc-next-action verbose)))
(let ((on-git\? ...) (filename "")) (when buffer-file-name (setq filename ...)) (if on-git\? (case ... ... ... ... ... ...) (setq ad-return-value ...)))
(let (ad-return-value) (let (... ...) (when buffer-file-name ...) (if on-git\? ... ...)) ad-return-value)
vc-next-action(nil)
call-interactively(vc-next-action)
My lisp is very rusty, I don't see anything wrong with case. Apparently it is a void function?
Let me know if you need anything else!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.