gwh's SlackBuilds
Find a file
Roger Crew cf60063e3b *magit-FOO-log* / introduce buffer name variables
Introduces

  magit-log-buffer-name 	*magit-log*
  magit-log-edit-buffer-name	*magit-edit-log*  (was *magit-log-edit*)
  magit-log-grep-buffer-name	*magit-grep-log*  (was *magit-log-grep*)
  magit-process-buffer-name 	*magit-process*
  magit-commit-buffer-name 	*magit-commit*
  magit-stash-buffer-name	*magit-stash*

Also adds C-c C-] as a binding for magit-log-edit-cancel-log-message
since C-c C-] as the aborting counterpart to C-c C-c is at least a
vague convention for other modes (cf. rmail, vm, query-replace...)

Motives:

It annoys me that, when wanting to switch to the *magit-log* buffer
from some random place, I can't type *ma<space>-l<space> and have it
complete properly, at least not if I've previously ever done a commit
(because there's then a *magit-log-edit* out there stealing the
completion).

Also looks like if I ever use magit-log-grep, I will be likewise
screwed.

Finally, it disturbs my sense of aesthetics when I look at source code
and see the same strings occuring over and over.  Usually, that's
crying defvars/defconsts.  (And this will also makes life easier
in the event you don't like my buffer name changes for -log-edit
and -log-grep).

 - -

(...This all leaves *magit-tmp* as the only remaining case of a buffer
    name string occurring multiple times, but that needs to be handled
    differently, so that'll be a different patch...)

(...Note that having buffer names as variables also allows the
    eventual possibility of making them local --- or at least the
    option thereof --- so that one can be visiting several
    repositories at once and not having these buffers all clobbering
    each other.  There's a tradeoff here in that some folks may find
    it confusing/annoying to have more than one set of these buffers
    to deal with,... hence option.

    *If* one is going to go that route, current gut feeling is buffer
    name variables should be local to *just* the status buffer(s),
    void elsewhere, and anything needing one of the auxiliary buffers
    should dispatch through its own status buffer to get what it
    wants.  That way, we're not having to repeat/update/copy
    per-repository definitions everywhere....)

The patch:
2010-04-28 12:17:26 +01:00
test Deleted. 2008-09-07 16:42:18 +03:00
.gitignore Add an rpm .spec file 2010-03-24 10:14:22 +00:00
50magit.el Make build cruft work. 2008-08-13 06:47:09 +03:00
AUTHORS Credit John. Thanks! 2009-01-28 22:23:46 +02:00
autogen.sh Provide autogen.sh 2008-08-13 07:11:44 +03:00
ChangeLog Added autotools cruft. 2008-08-13 06:20:36 +03:00
configure.ac Add an rpm .spec file 2010-03-24 10:14:22 +00:00
COPYING Renamed to follow convention. 2008-08-06 02:46:58 +03:00
fdl.texi Added FDL text. 2008-08-12 04:51:45 +03:00
magit-pkg.el.in Elpanized. 2009-03-09 22:15:07 +02:00
magit.el *magit-FOO-log* / introduce buffer name variables 2010-04-28 12:17:26 +01:00
magit.spec.in Add an rpm .spec file 2010-03-24 10:14:22 +00:00
magit.texi Minor doc changes. 2010-04-25 17:42:10 +01:00
Makefile.am Add an rpm .spec file 2010-03-24 10:14:22 +00:00
NEWS Support for magit-repo-dirs and nice completion based on it. 2009-07-28 02:25:44 +03:00
README README updates. 2009-06-06 23:17:12 +03:00

It's Magit!  A Emacs mode for Git.

I started to write Magit to learn about Git and to figure out how I
would be using Git in a 'natural' way.  Magit will grow and hopefully
become more coherent as I learn more about Git and good ways to use
it.  Feedback is welcome!

* Installing

Magit can be installed with the popular recipe of

   $ ./autogen.sh     # If you got the sources directly from Git
   $ ./configure
   $ make install

This will put magit.el into /usr/local/share/emacs/site-lisp, where
Emacs should be able to find it.  Then add

      (require 'magit)

to your .emacs file.

* Getting started

To get started with Magit, open any file in a Git repository in Emacs
and run 'M-x magit-status'.  Read the online help of magit-mode ('C-h
m' in the Magit buffer), make some changes to your files, and try to
commit them.

* Learning more

The Magit User Manual describes things with more words than the online
help.  You can read it in Emacs with 'C-u C-h i magit.info' for
example, or on the web at

    http://zagadka.vm.bytemark.co.uk/magit/magit.html

If you have questions, please use the mailing list at

    http://groups.google.com/group/magit/

Magit's web home is currently at

    http://zagadka.vm.bytemark.co.uk/magit/