* git diff output - terminal is not fully functional
@ 2010-08-17 10:10 Andreas Röhler
2010-08-17 11:55 ` Andrea Crotti
0 siblings, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2010-08-17 10:10 UTC (permalink / raw
To: help-gnu-emacs
Hi,
with `git diff' from an shell inside Emacs,
output stops at every diff-line,
reporting its line.
Also I get a
"WARNING: terminal is not fully functional
Assume it's a common known issue...
BTW from bazaar diff runs smoothly...
What to do?
Thanks
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 10:10 git diff output - terminal is not fully functional Andreas Röhler
@ 2010-08-17 11:55 ` Andrea Crotti
2010-08-17 12:59 ` Andreas Röhler
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Crotti @ 2010-08-17 11:55 UTC (permalink / raw
To: help-gnu-emacs
Andreas Röhler <andreas.roehler@online.de> writes:
> Hi,
>
> with `git diff' from an shell inside Emacs,
> output stops at every diff-line,
> reporting its line.
>
> Also I get a
>
> "WARNING: terminal is not fully functional
>
> Assume it's a common known issue...
>
> BTW from bazaar diff runs smoothly...
>
> What to do?
>
> Thanks
>
> Andreas
Well you probably don't want to use git diff in a shell, there are many
external packages that does it much better (for example magit).
The "problem" is that git diff calls a pager (less probably) and the
shell in emacs is not a full terminal emulator.
There is also M-x term which is closer, but it doesn't make so much
sense in my opinion..
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 11:55 ` Andrea Crotti
@ 2010-08-17 12:59 ` Andreas Röhler
2010-08-17 14:00 ` Erik Iverson
2010-08-17 14:13 ` Andrea Crotti
0 siblings, 2 replies; 12+ messages in thread
From: Andreas Röhler @ 2010-08-17 12:59 UTC (permalink / raw
To: help-gnu-emacs
Am 17.08.2010 13:55, schrieb Andrea Crotti:
> Andreas Röhler<andreas.roehler@online.de> writes:
>
>> Hi,
>>
>> with `git diff' from an shell inside Emacs,
>> output stops at every diff-line,
>> reporting its line.
>>
>> Also I get a
>>
>> "WARNING: terminal is not fully functional
>>
>> Assume it's a common known issue...
>>
>> BTW from bazaar diff runs smoothly...
>>
>> What to do?
>>
>> Thanks
>>
>> Andreas
>
> Well you probably don't want to use git diff in a shell, there are many
> external packages that does it much better (for example magit).
Hi,
thanks and sorry,
just want to use it in a shell:
while exploring something new or not so common, I'll not run into bugs
from emacs-scripts, have all feature indendent from implementation etc.
Also I use shell-scripts, which might be started from inside Emacs more
conveniently again.
I'll have look at magit anyway, thanks for the tip.
>
> The "problem" is that git diff calls a pager (less probably) and the
> shell in emacs is not a full terminal emulator.
>
> There is also M-x term which is closer, but it doesn't make so much
> sense in my opinion..
>
>
>
Wonder why bazaar is able to cope with this. There should be a way to
provide this for git too.
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 12:59 ` Andreas Röhler
@ 2010-08-17 14:00 ` Erik Iverson
2010-08-17 16:25 ` Andreas Röhler
2010-08-18 14:54 ` Kevin Rodgers
2010-08-17 14:13 ` Andrea Crotti
1 sibling, 2 replies; 12+ messages in thread
From: Erik Iverson @ 2010-08-17 14:00 UTC (permalink / raw
To: Andreas Röhler; +Cc: help-gnu-emacs
On 08/17/2010 07:59 AM, Andreas Röhler wrote:
> Am 17.08.2010 13:55, schrieb Andrea Crotti:
>> Andreas Röhler<andreas.roehler@online.de> writes:
>>
>>> Hi,
>>>
>>> with `git diff' from an shell inside Emacs,
>>> output stops at every diff-line,
>>> reporting its line.
>>>
>>> Also I get a
>>>
>>> "WARNING: terminal is not fully functional
>>>
>>> Assume it's a common known issue...
>>>
>>> BTW from bazaar diff runs smoothly...
>>>
>>> What to do?
>>>
Just do:
git-config --global core.pager ""
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 12:59 ` Andreas Röhler
2010-08-17 14:00 ` Erik Iverson
@ 2010-08-17 14:13 ` Andrea Crotti
1 sibling, 0 replies; 12+ messages in thread
From: Andrea Crotti @ 2010-08-17 14:13 UTC (permalink / raw
To: help-gnu-emacs
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
> Hi,
>
> thanks and sorry,
> just want to use it in a shell:
>
> while exploring something new or not so common, I'll not run into bugs
> from emacs-scripts, have all feature indendent from implementation
> etc.
>
> Also I use shell-scripts, which might be started from inside Emacs
> more conveniently again.
>
> I'll have look at magit anyway, thanks for the tip.
>
Yes sure I'm not saying it's bad to use a terminal in emacs, just saying
that for this tasks there are much better instruments..
I normally have many shells open outside of emacs, mostly because to
compile I use M-x compile and when I have to launch a short command I
just use M-!, which is much faster then going in the shell...
> Wonder why bazaar is able to cope with this. There should be a way to
> provide this for git too.
>
> Andreas
Strange that I didn't find any option in git diff to disable the
automatic "paging", but it should be possible...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 14:00 ` Erik Iverson
@ 2010-08-17 16:25 ` Andreas Röhler
2010-08-17 16:36 ` Erik Iverson
2010-08-18 14:54 ` Kevin Rodgers
1 sibling, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2010-08-17 16:25 UTC (permalink / raw
To: help-gnu-emacs
Am 17.08.2010 16:00, schrieb Erik Iverson:
> On 08/17/2010 07:59 AM, Andreas Röhler wrote:
>> Am 17.08.2010 13:55, schrieb Andrea Crotti:
>>> Andreas Röhler<andreas.roehler@online.de> writes:
>>>
>>>> Hi,
>>>>
>>>> with `git diff' from an shell inside Emacs,
>>>> output stops at every diff-line,
>>>> reporting its line.
>>>>
>>>> Also I get a
>>>>
>>>> "WARNING: terminal is not fully functional
>>>>
>>>> Assume it's a common known issue...
>>>>
>>>> BTW from bazaar diff runs smoothly...
>>>>
>>>> What to do?
>>>>
>
> Just do:
>
> git-config --global core.pager ""
>
>
Thanks,
unfortunatly it has no effect.
Also editing file config in .git fails.
While setting is recognised by --list
:(
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 16:25 ` Andreas Röhler
@ 2010-08-17 16:36 ` Erik Iverson
2010-08-17 16:49 ` Andreas Röhler
0 siblings, 1 reply; 12+ messages in thread
From: Erik Iverson @ 2010-08-17 16:36 UTC (permalink / raw
To: Andreas Röhler; +Cc: help-gnu-emacs
>>>>> with `git diff' from an shell inside Emacs,
>>>>> output stops at every diff-line,
>>>>> reporting its line.
>>>>>
>>>>> Also I get a
>>>>>
>>>>> "WARNING: terminal is not fully functional
>>
>> git-config --global core.pager ""
>>
>>
> unfortunatly it has no effect.
> Also editing file config in .git fails.
> While setting is recognised by --list
Well it definitely works for me, so something
else must be going on. What does your global
~/.gitconfig look like?
Mine is :
[user]
name = Erik Iverson
email = user@email.com
[core]
editor = emacs
pager =
Which version of git are you running?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 16:36 ` Erik Iverson
@ 2010-08-17 16:49 ` Andreas Röhler
2010-08-17 16:54 ` Erik Iverson
0 siblings, 1 reply; 12+ messages in thread
From: Andreas Röhler @ 2010-08-17 16:49 UTC (permalink / raw
To: help-gnu-emacs
Am 17.08.2010 18:36, schrieb Erik Iverson:
>
>>>>>> with `git diff' from an shell inside Emacs,
>>>>>> output stops at every diff-line,
>>>>>> reporting its line.
>>>>>>
>>>>>> Also I get a
>>>>>>
>>>>>> "WARNING: terminal is not fully functional
>>>
>>> git-config --global core.pager ""
>>>
>>>
>
>> unfortunatly it has no effect.
>> Also editing file config in .git fails.
>> While setting is recognised by --list
>
> Well it definitely works for me, so something
> else must be going on. What does your global
> ~/.gitconfig look like?
>
> Mine is :
>
> [user]
> name = Erik Iverson
> email = user@email.com
> [core]
> editor = emacs
> pager =
>
> Which version of git are you running?
>
git version 1.5.2.4
See three config-files
.gitconfig in ~/
config in ~/.git
config in ~/org-mode/.git
Contents in this order:
[user]
name = Andreas Roehler
email = andreas.roehler@online.de
[core]
pager =
;;;;;;;;
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
;;;;;;;
[core]
bare = false
filemode = true
logallrefupdates = true
repositoryformatversion = 0
whitespace = false
[remote "origin"]
url = git://repo.or.cz/org-mode.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
;;;;;;,
BTW whitespace = false has been added in these essay today, has no
visible effect so far.
Thanks
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 16:49 ` Andreas Röhler
@ 2010-08-17 16:54 ` Erik Iverson
2010-08-17 17:21 ` Andreas Röhler
0 siblings, 1 reply; 12+ messages in thread
From: Erik Iverson @ 2010-08-17 16:54 UTC (permalink / raw
To: Andreas Röhler; +Cc: help-gnu-emacs
Andreas Röhler wrote:
> Am 17.08.2010 18:36, schrieb Erik Iverson:
>>
>>>>>>> with `git diff' from an shell inside Emacs,
>>>>>>> output stops at every diff-line,
>>>>>>> reporting its line.
>>>>>>>
>>>>>>> Also I get a
>>>>>>>
>>>>>>> "WARNING: terminal is not fully functional
>>>>
>>>> git-config --global core.pager ""
>>>>
>>>>
>>
>>> unfortunatly it has no effect.
>>> Also editing file config in .git fails.
>>> While setting is recognised by --list
>>
>> Well it definitely works for me, so something
>> else must be going on. What does your global
>> ~/.gitconfig look like?
>>
>> Mine is :
>>
>> [user]
>> name = Erik Iverson
>> email = user@email.com
>> [core]
>> editor = emacs
>> pager =
>>
>> Which version of git are you running?
>>
>
> git version 1.5.2.4
I'm using git version 1.7.1, could very well be the difference?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 16:54 ` Erik Iverson
@ 2010-08-17 17:21 ` Andreas Röhler
0 siblings, 0 replies; 12+ messages in thread
From: Andreas Röhler @ 2010-08-17 17:21 UTC (permalink / raw
To: help-gnu-emacs
Am 17.08.2010 18:54, schrieb Erik Iverson:
>
>
> Andreas Röhler wrote:
>> Am 17.08.2010 18:36, schrieb Erik Iverson:
>>>
>>>>>>>> with `git diff' from an shell inside Emacs,
>>>>>>>> output stops at every diff-line,
>>>>>>>> reporting its line.
>>>>>>>>
>>>>>>>> Also I get a
>>>>>>>>
>>>>>>>> "WARNING: terminal is not fully functional
>>>>>
>>>>> git-config --global core.pager ""
>>>>>
>>>>>
>>>
>>>> unfortunatly it has no effect.
>>>> Also editing file config in .git fails.
>>>> While setting is recognised by --list
>>>
>>> Well it definitely works for me, so something
>>> else must be going on. What does your global
>>> ~/.gitconfig look like?
>>>
>>> Mine is :
>>>
>>> [user]
>>> name = Erik Iverson
>>> email = user@email.com
>>> [core]
>>> editor = emacs
>>> pager =
>>>
>>> Which version of git are you running?
>>>
>>
>> git version 1.5.2.4
>
> I'm using git version 1.7.1, could very well be the difference?
>
Hmm, maybe.
For the moment
git diff | tee
solves it...
Thanks all commenting
Andreas
--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-17 14:00 ` Erik Iverson
2010-08-17 16:25 ` Andreas Röhler
@ 2010-08-18 14:54 ` Kevin Rodgers
2010-08-18 15:58 ` Andreas Röhler
1 sibling, 1 reply; 12+ messages in thread
From: Kevin Rodgers @ 2010-08-18 14:54 UTC (permalink / raw
To: help-gnu-emacs
Erik Iverson wrote:
> On 08/17/2010 07:59 AM, Andreas Röhler wrote:
>> Am 17.08.2010 13:55, schrieb Andrea Crotti:
>>> Andreas Röhler<andreas.roehler@online.de> writes:
>>>
>>>> Hi,
>>>>
>>>> with `git diff' from an shell inside Emacs,
>>>> output stops at every diff-line,
>>>> reporting its line.
>>>>
>>>> Also I get a
>>>>
>>>> "WARNING: terminal is not fully functional
>>>>
>>>> Assume it's a common known issue...
>>>>
>>>> BTW from bazaar diff runs smoothly...
>>>>
>>>> What to do?
>>>>
>
> Just do:
>
> git-config --global core.pager ""
Andreas' problem seems to be caused by the terminal emulation provided
by Emacs' shell.
In any case, rather than configuring each tool, you can set the PAGER
environment variable for your shell when it's run under Emacs in the
~/.emacs_SHELLNAME file. I use PAGER=cat.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: git diff output - terminal is not fully functional
2010-08-18 14:54 ` Kevin Rodgers
@ 2010-08-18 15:58 ` Andreas Röhler
0 siblings, 0 replies; 12+ messages in thread
From: Andreas Röhler @ 2010-08-18 15:58 UTC (permalink / raw
To: help-gnu-emacs
Am 18.08.2010 16:54, schrieb Kevin Rodgers:
> Erik Iverson wrote:
>> On 08/17/2010 07:59 AM, Andreas Röhler wrote:
>>> Am 17.08.2010 13:55, schrieb Andrea Crotti:
>>>> Andreas Röhler<andreas.roehler@online.de> writes:
>>>>
>>>>> Hi,
>>>>>
>>>>> with `git diff' from an shell inside Emacs,
>>>>> output stops at every diff-line,
>>>>> reporting its line.
>>>>>
>>>>> Also I get a
>>>>>
>>>>> "WARNING: terminal is not fully functional
>>>>>
>>>>> Assume it's a common known issue...
>>>>>
>>>>> BTW from bazaar diff runs smoothly...
>>>>>
>>>>> What to do?
>>>>>
>>
>> Just do:
>>
>> git-config --global core.pager ""
>
> Andreas' problem seems to be caused by the terminal emulation provided
> by Emacs' shell.
>
> In any case, rather than configuring each tool, you can set the PAGER
> environment variable for your shell when it's run under Emacs in the
> ~/.emacs_SHELLNAME file. I use PAGER=cat.
>
Thats it, thanks!
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-08-18 15:58 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 10:10 git diff output - terminal is not fully functional Andreas Röhler
2010-08-17 11:55 ` Andrea Crotti
2010-08-17 12:59 ` Andreas Röhler
2010-08-17 14:00 ` Erik Iverson
2010-08-17 16:25 ` Andreas Röhler
2010-08-17 16:36 ` Erik Iverson
2010-08-17 16:49 ` Andreas Röhler
2010-08-17 16:54 ` Erik Iverson
2010-08-17 17:21 ` Andreas Röhler
2010-08-18 14:54 ` Kevin Rodgers
2010-08-18 15:58 ` Andreas Röhler
2010-08-17 14:13 ` Andrea Crotti
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.