[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List of buffers under version control?
From: |
Rusi |
Subject: |
Re: List of buffers under version control? |
Date: |
Wed, 27 Jul 2016 21:05:21 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Thursday, July 28, 2016 at 5:33:59 AM UTC+5:30, Rolf Ade wrote:
> I often edit files in emacs, that are under version control. It should
> not, but it happens, that I haven#t save-buffer some buffer, while
> check-in on the cmd line.
>
> Since I already sometimes use a wrapper around my scm cmd line tool I
> imagined, that my wrapper could ask the running emacs about unsaved
> buffers under version control and warn me before actually checking in.
>
> Looks, emacsclient -e is the most general interpretation of 'query the
> running emacs' and emacsclient already works for me. Although I didn't
> was aware of -e so far less than five Minutes and it still looks easily
> done.
>
> But from that, it started to get swampy. I'd like to get a yes / no
> answer from emacs, if one (or more) of 'some buffers' is unsaved. I don't
> want to provide, what 'some buffers' mean. A good heuristic for my usage
> habits would be: some buffers are all files under version control.
>
> I tinkered araound more than a half hour, but wasn't able to come up
> with a few simple lines of emacs lisp that do that. How should I do?
Not an answer…
Still if you are using git, magit will deal with all (or most) of this
Of course you need to invert your workflow and do the command-line stuff
from inside emacs
- List of buffers under version control?, Rolf Ade, 2016/07/27
- Re: List of buffers under version control?,
Rusi <=
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, Marcin Borkowski, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, John Mastro, 2016/07/28
- RE: List of buffers under version control?, Drew Adams, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, Stefan Monnier, 2016/07/28