* ls in eshell will cause the prompt jumped to mid of buf
@ 2007-09-18 5:58 William Xue
2007-09-18 19:34 ` Richard Stallman
0 siblings, 1 reply; 18+ messages in thread
From: William Xue @ 2007-09-18 5:58 UTC (permalink / raw)
To: emacs-devel
in eshell, if the files listed by ls are too many to display in current
view of the buf, the prompt will scroll to the midle of it.
I encounted this issue in emacs-unicode-2 in windows xp and 22.0.91.1 in
ubuntu.
Is there something incorrect in my .emacs or a bug in eshell?
Thanks!
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-18 5:58 ls in eshell will cause the prompt jumped to mid of buf William Xue
@ 2007-09-18 19:34 ` Richard Stallman
2007-09-19 1:39 ` William Xue
0 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2007-09-18 19:34 UTC (permalink / raw)
To: William Xue; +Cc: emacs-devel
in eshell, if the files listed by ls are too many to display in current
view of the buf, the prompt will scroll to the midle of it.
Could you please send me a *precise* test case for this bug? The test
case should start with `emacs -q', so that your .emacs file does not
affect it, and it should show exactly what text to put in the buffer,
what commands to execute, and how and where to click. Also please say
exactly what incorrect results you get.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-18 19:34 ` Richard Stallman
@ 2007-09-19 1:39 ` William Xue
2007-09-19 3:32 ` Glenn Morris
2007-09-19 15:49 ` Richard Stallman
0 siblings, 2 replies; 18+ messages in thread
From: William Xue @ 2007-09-19 1:39 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
OK, please let me descript what I have done step by step.
1. emacs -q
2. M-x eshell
3. ls
4. ls
5. do 'ls' to list the files, until the prompt reachs the bottom
6. ls, then the prompt will scroll to the half of a page. I think it
should be still stayed at the bottom.
If you do 'ls' in a path where has lots of files and can not be displayed
in one page, the prompt will
appear in the half of the page directly, instead of the bottom of the page.
Is it a intended behavior? If yes, how to disable the feature?
I asked this (a intended behavior?), because if I do the following:
1. emacs -q
2. C-x C-f
3. then hit 'enter', 'enter'..... in the keyboard
it will do the same behavior as in eshell (scroll to the half of a page).
But after I set following in .emacs, it can scroll line by line.
'(scroll-conservatively 10000)
'(scroll-down-aggressively 0.01)
'(scroll-margin 3)
'(scroll-preserve-screen-position t)
'(scroll-up-aggressively 0.01)
But the above settings did not effect the 'eshell'. And I could not get
help from *info* or the web
(http://www.gnu.org/software/emacs/manual/html_node/eshell/Smart-scrolling.html),
they are
empty.
At last, let me make clear my request, that is: how to scroll line by line
in eshell?
Thanks in advance!
On Wed, 19 Sep 2007 03:34:06 +0800, Richard Stallman <rms@gnu.org> wrote:
> in eshell, if the files listed by ls are too many to display in
> current
> view of the buf, the prompt will scroll to the midle of it.
>
> Could you please send me a *precise* test case for this bug? The test
> case should start with `emacs -q', so that your .emacs file does not
> affect it, and it should show exactly what text to put in the buffer,
> what commands to execute, and how and where to click. Also please say
> exactly what incorrect results you get.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-19 1:39 ` William Xue
@ 2007-09-19 3:32 ` Glenn Morris
2007-09-19 4:40 ` William Xue
2007-09-19 15:49 ` Richard Stallman
1 sibling, 1 reply; 18+ messages in thread
From: Glenn Morris @ 2007-09-19 3:32 UTC (permalink / raw)
To: William Xue; +Cc: rms, emacs-devel
"William Xue" wrote:
> At last, let me make clear my request, that is: how to scroll line
> by line in eshell?
(add-hook 'eshell-output-filter-functions 'eshell-postoutput-scroll-to-bottom)
I think this should be there by default (since there are variables to
control _how_ it scrolls, as for comint).
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-19 3:32 ` Glenn Morris
@ 2007-09-19 4:40 ` William Xue
2007-09-20 1:39 ` Glenn Morris
0 siblings, 1 reply; 18+ messages in thread
From: William Xue @ 2007-09-19 4:40 UTC (permalink / raw)
To: Glenn Morris; +Cc: rms, emacs-devel
On Wed, 19 Sep 2007 11:32:35 +0800, Glenn Morris <rgm@gnu.org> wrote:
> "William Xue" wrote:
>
>> At last, let me make clear my request, that is: how to scroll line
>> by line in eshell?
>
> (add-hook 'eshell-output-filter-functions
> 'eshell-postoutput-scroll-to-bottom)
Thanks, it makes things closer.
Now, after hiting 'enter', the prompt is at the bottom, but when input a
letter, it will
move one or two line up.
>
> I think this should be there by default (since there are variables to
> control _how_ it scrolls, as for comint).
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-19 4:40 ` William Xue
@ 2007-09-20 1:39 ` Glenn Morris
2007-09-20 7:43 ` William Xue
0 siblings, 1 reply; 18+ messages in thread
From: Glenn Morris @ 2007-09-20 1:39 UTC (permalink / raw)
To: William Xue; +Cc: rms, emacs-devel
"William Xue" wrote:
>> (add-hook 'eshell-output-filter-functions
>> 'eshell-postoutput-scroll-to-bottom)
>
> Thanks, it makes things closer.
>
> Now, after hiting 'enter', the prompt is at the bottom, but when
> input a letter, it will move one or two line up.
Not for me (though maybe I don't understand what you mean).
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-20 1:39 ` Glenn Morris
@ 2007-09-20 7:43 ` William Xue
2007-09-20 8:13 ` Glenn Morris
0 siblings, 1 reply; 18+ messages in thread
From: William Xue @ 2007-09-20 7:43 UTC (permalink / raw)
To: Glenn Morris; +Cc: rms, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
On Thu, 20 Sep 2007 09:39:21 +0800, Glenn Morris <rgm@gnu.org> wrote:
> "William Xue" wrote:
>
>>> (add-hook 'eshell-output-filter-functions
>>> 'eshell-postoutput-scroll-to-bottom)
>>
>> Thanks, it makes things closer.
>>
>> Now, after hiting 'enter', the prompt is at the bottom, but when
>> input a letter, it will move one or two line up.
>
> Not for me (though maybe I don't understand what you mean).
You can see the different between e:\sc_tmp_13.png and e:\sc_tmp_14.png.
Thanks!
[-- Attachment #2: sc_tmp_13.png --]
[-- Type: image/png, Size: 19054 bytes --]
[-- Attachment #3: sc_tmp_14.png --]
[-- Type: image/png, Size: 17181 bytes --]
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-20 7:43 ` William Xue
@ 2007-09-20 8:13 ` Glenn Morris
2007-09-20 8:30 ` William Xue
2007-09-28 6:54 ` William Xue
0 siblings, 2 replies; 18+ messages in thread
From: Glenn Morris @ 2007-09-20 8:13 UTC (permalink / raw)
To: William Xue; +Cc: rms, emacs-devel
"William Xue" wrote:
>>> Now, after hiting 'enter', the prompt is at the bottom, but when
>>> input a letter, it will move one or two line up.
[...]
> You can see the different between e:\sc_tmp_13.png and e:\sc_tmp_14.png.
Yes, I can. It doesn't do that for me though.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-20 8:13 ` Glenn Morris
@ 2007-09-20 8:30 ` William Xue
2007-09-21 12:23 ` Richard Stallman
2007-09-28 6:54 ` William Xue
1 sibling, 1 reply; 18+ messages in thread
From: William Xue @ 2007-09-20 8:30 UTC (permalink / raw)
To: Glenn Morris; +Cc: rms, emacs-devel
On Thu, 20 Sep 2007 16:13:39 +0800, Glenn Morris <rgm@gnu.org> wrote:
> "William Xue" wrote:
>
>>>> Now, after hiting 'enter', the prompt is at the bottom, but when
>>>> input a letter, it will move one or two line up.
> [...]
>> You can see the different between e:\sc_tmp_13.png and e:\sc_tmp_14.png.
>
> Yes, I can. It doesn't do that for me though.
I found the issue only occured in the default 'emacs -q' started window.
After I changed the window size, it works very well.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-20 8:13 ` Glenn Morris
2007-09-20 8:30 ` William Xue
@ 2007-09-28 6:54 ` William Xue
2007-09-28 18:07 ` Glenn Morris
1 sibling, 1 reply; 18+ messages in thread
From: William Xue @ 2007-09-28 6:54 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
On Thu, 20 Sep 2007 16:13:39 +0800, Glenn Morris <rgm@gnu.org> wrote:
> "William Xue" wrote:
>
>>>> Now, after hiting 'enter', the prompt is at the bottom, but when
>>>> input a letter, it will move one or two line up.
> [...]
>> You can see the different between e:\sc_tmp_13.png and e:\sc_tmp_14.png.
>
> Yes, I can. It doesn't do that for me though.
I found the issue was cause by the setting for 'scroll-margin'.
I set 'scroll-margin' to 3, when input a char, the prompt scroll up 3
lines.
Can I set the 'scroll-margin' to 0 only for 'eshell'? I have tried
something on load hook, but failed.
--
Yours,
WilliamX
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: ls in eshell will cause the prompt jumped to mid of buf
2007-09-19 1:39 ` William Xue
2007-09-19 3:32 ` Glenn Morris
@ 2007-09-19 15:49 ` Richard Stallman
2007-09-21 3:00 ` Glenn Morris
1 sibling, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2007-09-19 15:49 UTC (permalink / raw)
To: emacs-devel; +Cc: William Xue
Can someone please DTRT, then ack?
He also said
I encounted this issue in emacs-unicode-2 in windows xp and 22.0.91.1 in
ubuntu.
Date: Wed, 19 Sep 2007 09:39:02 +0800
To: rms@gnu.org
Subject: Re: ls in eshell will cause the prompt jumped to mid of buf
From: "William Xue" <william.xue@gmail.com>
Organization: SMILING
Cc: emacs-devel@gnu.org
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
MIME-Version: 1.0
In-Reply-To: <E1IXipi-0006Ol-R9@fencepost.gnu.org>
OK, please let me descript what I have done step by step.
1. emacs -q
2. M-x eshell
3. ls
4. ls
5. do 'ls' to list the files, until the prompt reachs the bottom
6. ls, then the prompt will scroll to the half of a page. I think it
should be still stayed at the bottom.
If you do 'ls' in a path where has lots of files and can not be displayed
in one page, the prompt will
appear in the half of the page directly, instead of the bottom of the page.
Is it a intended behavior? If yes, how to disable the feature?
I asked this (a intended behavior?), because if I do the following:
1. emacs -q
2. C-x C-f
3. then hit 'enter', 'enter'..... in the keyboard
it will do the same behavior as in eshell (scroll to the half of a page).
But after I set following in .emacs, it can scroll line by line.
'(scroll-conservatively 10000)
'(scroll-down-aggressively 0.01)
'(scroll-margin 3)
'(scroll-preserve-screen-position t)
'(scroll-up-aggressively 0.01)
But the above settings did not effect the 'eshell'. And I could not get
help from *info* or the web
(http://www.gnu.org/software/emacs/manual/html_node/eshell/Smart-scrolling.html),
they are
empty.
At last, let me make clear my request, that is: how to scroll line by line
in eshell?
Thanks in advance!
On Wed, 19 Sep 2007 03:34:06 +0800, Richard Stallman <rms@gnu.org> wrote:
> in eshell, if the files listed by ls are too many to display in
> current
> view of the buf, the prompt will scroll to the midle of it.
>
> Could you please send me a *precise* test case for this bug? The test
> case should start with `emacs -q', so that your .emacs file does not
> affect it, and it should show exactly what text to put in the buffer,
> what commands to execute, and how and where to click. Also please say
> exactly what incorrect results you get.
^ permalink raw reply [flat|nested] 18+ messages in thread
* ls in eshell will cause the prompt jumped to mid of buf
@ 2007-09-19 15:49 Richard Stallman
0 siblings, 0 replies; 18+ messages in thread
From: Richard Stallman @ 2007-09-19 15:49 UTC (permalink / raw)
To: emacs-devel
Can someone please DTRT, then ack?
He also said
I encounted this issue in emacs-unicode-2 in windows xp and 22.0.91.1 in
ubuntu.
Date: Wed, 19 Sep 2007 09:39:02 +0800
To: rms@gnu.org
Subject: Re: ls in eshell will cause the prompt jumped to mid of buf
From: "William Xue" <william.xue@gmail.com>
Organization: SMILING
Cc: emacs-devel@gnu.org
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
MIME-Version: 1.0
In-Reply-To: <E1IXipi-0006Ol-R9@fencepost.gnu.org>
OK, please let me descript what I have done step by step.
1. emacs -q
2. M-x eshell
3. ls
4. ls
5. do 'ls' to list the files, until the prompt reachs the bottom
6. ls, then the prompt will scroll to the half of a page. I think it
should be still stayed at the bottom.
If you do 'ls' in a path where has lots of files and can not be displayed
in one page, the prompt will
appear in the half of the page directly, instead of the bottom of the page.
Is it a intended behavior? If yes, how to disable the feature?
I asked this (a intended behavior?), because if I do the following:
1. emacs -q
2. C-x C-f
3. then hit 'enter', 'enter'..... in the keyboard
it will do the same behavior as in eshell (scroll to the half of a page).
But after I set following in .emacs, it can scroll line by line.
'(scroll-conservatively 10000)
'(scroll-down-aggressively 0.01)
'(scroll-margin 3)
'(scroll-preserve-screen-position t)
'(scroll-up-aggressively 0.01)
But the above settings did not effect the 'eshell'. And I could not get
help from *info* or the web
(http://www.gnu.org/software/emacs/manual/html_node/eshell/Smart-scrolling.html),
they are
empty.
At last, let me make clear my request, that is: how to scroll line by line
in eshell?
Thanks in advance!
On Wed, 19 Sep 2007 03:34:06 +0800, Richard Stallman <rms@gnu.org> wrote:
> in eshell, if the files listed by ls are too many to display in
> current
> view of the buf, the prompt will scroll to the midle of it.
>
> Could you please send me a *precise* test case for this bug? The test
> case should start with `emacs -q', so that your .emacs file does not
> affect it, and it should show exactly what text to put in the buffer,
> what commands to execute, and how and where to click. Also please say
> exactly what incorrect results you get.
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2007-09-29 3:31 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 5:58 ls in eshell will cause the prompt jumped to mid of buf William Xue
2007-09-18 19:34 ` Richard Stallman
2007-09-19 1:39 ` William Xue
2007-09-19 3:32 ` Glenn Morris
2007-09-19 4:40 ` William Xue
2007-09-20 1:39 ` Glenn Morris
2007-09-20 7:43 ` William Xue
2007-09-20 8:13 ` Glenn Morris
2007-09-20 8:30 ` William Xue
2007-09-21 12:23 ` Richard Stallman
2007-09-28 6:54 ` William Xue
2007-09-28 18:07 ` Glenn Morris
2007-09-29 3:31 ` William Xue
2007-09-19 15:49 ` Richard Stallman
2007-09-21 3:00 ` Glenn Morris
2007-09-21 22:33 ` Richard Stallman
2007-09-22 2:44 ` Glenn Morris
-- strict thread matches above, loose matches on Subject: below --
2007-09-19 15:49 Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).