当在 GNU Emacs (24) 中打开的文件( 缓冲) 的行数少于当前窗口( 框架) 所显示的行数时, 我可以( 默认情况下) 使用滚动条滚下滚动, 让顶端行消失 ( “ overscroll ” ) 。
我怎么能关掉它,所以当整个缓冲在框中显示时,我不能滚动?
我可以在Emacs来源 中修补gtkutil.c,但最好有一个更优雅的解决办法。
当在 GNU Emacs (24) 中打开的文件( 缓冲) 的行数少于当前窗口( 框架) 所显示的行数时, 我可以( 默认情况下) 使用滚动条滚下滚动, 让顶端行消失 ( “ overscroll ” ) 。
我怎么能关掉它,所以当整个缓冲在框中显示时,我不能滚动?
我可以在Emacs来源 中修补gtkutil.c,但最好有一个更优雅的解决办法。
滚动条的行为现在可以通过设置变量 scroll-bar-adjust-thumb-portion
(为了我的目的) 来修改,这里是文档:
scroll-bar-adjust-thumb-portion is a variable defined in `C source code .
Its value is nil
Original value was t
Documentation:
Adjust thumb for overscrolling for Gtk+ and MOTIF.
Non-nil means adjust the thumb in the scroll bar so it can be dragged downwards
even if the end of the buffer is shown (i.e. overscrolling).
Set to nil if you want the thumb to be at the bottom when the end of the buffer
is shown. Also, the thumb fills the whole scroll bar when the entire buffer
is visible. In this case you can not overscroll.
[...] version 24.4 of Emacs.
采用这一承诺的有:r111506 。
您需要添加
(setq 下一行加新线为零)
输入到您的内存文件 。
AFAIK, 您目前无法做到这一点( 当然, 您也许可以把它弄坏 ) 。 在 CPU 的时间里, 正确做可能是昂贵的, 但更重要的是, 实施这个“ 功能” 要比人们习惯它并发现它其实不是问题要多得多。 所以还没有人为它写一个补丁。
I have a Winforms app containing a RichTextBox. How can I determine how many lines of text are displayed, currently visible? Reason: I want to scroll the caret to the middle of the RichTextBox. ...
I m trying to do something after scrolling stopped.So, I tried using OnScrollListener#onScrollStateChanged(SCROLL_STATE_IDLE) to detect when the scrolling stopped(either TOUCH_SCROLL or FLING)(at 1.5 ...
Is is possible to disable DataGrid scrolling ? If yes, how ? Thanks.
I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...
I am really stuck on this. My application is in landscape view and on one screen i wanted my instructions image to be scrollable. I have added this image as a sprite. First i tried to get scroll ...
As part of an ajax chat room (using prototype framework) I am working on I scroll the user to the bottom each time a message is added using the below js. However if the user has scrolled up and the ...
I keep coming up against this issue. Displaying news on a website. And I d like to come up with a solution to use like a template, something I can just drop on a site easily. The solution I keep ...
I am pretty new to this iPhone dev thing but so far I have built a pretty good app but I have stumbled into this problem that for the life of me I cannot seem to solve. Basically the app is a chat ...