I know many of might say it's "not needed", but I find that, to get an
overview of the file and when you are still getting acquanted to it,
scrolling slowly (without jumps) is useful. Textmate does it the way I
like. Emacs' scrolling is too "jumpy".
Is there a way to setup emacs for a almost-flawless smooth scrolling mode?
Thanks,
Marcelo.
You can try
(setq redisplay-dont-pause t
scroll-conservatively most-positive-fixnum
scroll-step 0)
and perhaps, depending on your tastes
(setq scroll-preserve-screen-position 'always)
Juanma
> (setq redisplay-dont-pause t
> scroll-conservatively most-positive-fixnum
> scroll-step 0)
>
> and perhaps, depending on your tastes
>
> (setq scroll-preserve-screen-position 'always)
>
I evaluated them on scratch but didn't see any difference. How am I
supposed to use the code?
Cheers,
Marcelo.
Thanks,
Marcelo.
The code that Juanma gave you makes Emacs scroll "line by line" when
moving the cursor. Are you by any chance using the scroll wheel to
scroll?
--
Deniz Dogan
Marcelo.
> I evaluated them on scratch but didn't see any difference. How am I
> supposed to use the code?
Evaluating it, or adding it to .emacs, should suffice.
You didn't give much information. Emacs version, platform? What do you
mean exactly by smooth scrolling? I assumed you wanted line-by-line
scrolling with the cursor.
Juanma
Thanks!
Marcelo.
I understand exactly what you mean by pixel-based scrolling. This is
how many other editors work, e.g. Notepad or Textmate. I'd love to
have that as well, but I don't think there is anything like that in
Emacs today. Many parts of Emacs are about columns and lines, e.g. the
size of frames are "measured" in columns and lines.
--
Deniz Dogan
Also, on my tablet PC (Windows 7), every application I have works great
with single-finger panning (similar to the way iPod/iPad scrolls) except
for emacs.
--
------------------------------------------------------------------
Jesse Wilson
Bartels Lab: Ultrafast and Nonlinear Optics
Electrical and Computer Engineering Department
Colorado State University
jes...@engr.colostate.edu
Is there a place we could submit/vote for feature suggestions for next
emacs versions?
Cheers,
Marcelo.
I already did my part. Hopefully they will take it into account and
think about it.
As a side-note, I think emacs has *lots* of potential to be
"mainstream" -- but not in the bad sense. I don't really care if it is
as popular as Textmate or not, and I know it takes guts, time and
effort to actually be productive on emacs, but we all know that, once
we have the skills, it becames the one true editor.
However, I do feel we need to "modernize" many aspects of emacs. I'm
not talking only about the application itself, and I'm not also
talking about huge changes, but we do need to bring emacs to the new
century with some sublte changes like this one, while keeping its
essency, of course.
My 2c,
/Marcelo.
On Wed, Jul 7, 2010 at 2:21 PM, Deniz Dogan <deniz.a...@gmail.com> wrote:
> 2010/7/7 Marcelo de Moraes Serpa <celo...@gmail.com>:
>> Let's join efforts and ask for it then :)
>>
>> Is there a place we could submit/vote for feature suggestions for next
>> emacs versions?
>>
>
> The correct way to do this is probably M-x report-emacs-bug and add
> the tag/severity (I can never remember which) "wishlist". I wouldn't
> count on it happening any time soon though! :(
>
> --
> Deniz Dogan
>
If I type this in a buffer and eval with c-x c-e,
(set-window-vscroll (selected-window) 0.3)
It seems to scroll a fraction of a line downward.
Of course I haven't a clue how it could be incorporated into bindings
for the scroll wheel.
--
------------------------------------------------------------------
Jesse Wilson
Bartels Lab: Ultrafast and Nonlinear Optics
Electrical and Computer Engineering Department
Colorado State University
jes...@engr.colostate.edu
Yes, Emacs can do "fractional" (read: pixel-wise) scrolling with the
set-window-vscroll command you mentioned above. For example,
picture-mode can smooth-scroll an image just fine. However, there are
two caveats: it is slow, and the point must remain visible during
scrolling.
I've fiddled with this stuff a while ago to implement a smoother
scrolling for buffers with images in them. See
http://www.randomsample.de/dru5/node/25
http://www.randomsample.de/dru5/node/26
for how far I've come. Those functions use set-window-vscroll to scroll
the buffer and move point in a way so that it always remains
visible. However, you'll notice that the higher the vscroll value of the
current window, the slower scrolling becomes, so it's of limited
value. Also, it doesn't work well with the other point-moving commands,
so it's currently only useful for read-only buffers.
Regards,
David
> Jesse W. Wilson writes:
> Yes, Emacs can do "fractional" (read: pixel-wise) scrolling with the
> set-window-vscroll command you mentioned above. For example,
> picture-mode can smooth-scroll an image just fine. However, there are
> two caveats: it is slow, and the point must remain visible during
> scrolling.
>
Allowing point to go off-window is like allowing the mouse-pointer to go
off-screen, a nightmare.
-ap
This is the nearest to what I'd like, seems to work, although has some
small glitches.
Marcelo.
On Thu, Jul 8, 2010 at 3:51 AM, David Engster <de...@randomsample.de> wrote:
> Jesse W. Wilson writes:
>> Perhaps the following could be of use?
>> http://www.gnu.org/s/emacs/manual/html_node/elisp/Vertical-Scrolling.html
>>
>> If I type this in a buffer and eval with c-x c-e,
>> (set-window-vscroll (selected-window) 0.3)
>>
>> It seems to scroll a fraction of a line downward.
>>
>> Of course I haven't a clue how it could be incorporated into bindings
>> for the scroll wheel.
>
> Yes, Emacs can do "fractional" (read: pixel-wise) scrolling with the
> set-window-vscroll command you mentioned above. For example,
> picture-mode can smooth-scroll an image just fine. However, there are
> two caveats: it is slow, and the point must remain visible during
> scrolling.
>