Code Monkey home page Code Monkey logo

git-emacs's People

Contributors

anrs avatar antonj avatar diasjorge avatar juhp avatar ovy avatar tarsius avatar tsgates avatar yoursaf avatar zzkt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-emacs's Issues

error when I install git-emacs

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

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.

value of 1.0 for git--timer-sec is eating up 50% + of CPU

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!

Aqua Emacs compatibility?

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?

Pushing

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

modeline status is very good

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

issue with flet -> cl-flet change

PR #19 breaks refreshing buffers when changing branches. Reverting cl-flet -> flet fixes the problem. I will update later with more details + PR.

if: Symbol's function definition is void: case

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!

make gives several warning and fails

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 byset-buffer'

In git-blame-new-commit:
git-blame.el:323:53:Warning: save-excursion' defeated byset-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); usemajor-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

symlinks and git-commit-file

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?

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.