[Date Prev] [Date Index] [Date Next]
[Thread Prev] [Thread Index] [Thread Next]

[xyzzy:04164] scrollbar と EOF



やまもとです。

・[EOF]を最下行にあって欲しい
・スクロールバーは必要無ければ消えていて欲しい
ということで、以下のように*post-command-hook*を設定しています。

----------------------------------------
(add-hook
 '*post-command-hook*
 '(lambda ()
   (if (pos-visible-in-window-p (point-max))
       (save-excursion
	 (goto-char (point-max))
	 (recenter (window-height))))
   (set-local-window-flags
    (selected-buffer)
    *window-flag-vscroll-bar*
    (not (and (pos-visible-in-window-p (point-min))
	      (pos-visible-in-window-p (point-max)))))))
----------------------------------------

あとはスクロールバーの位置とサイズなのですが、
Window::update_vscroll_bar()の中の
  int nlines = ( ... ) + w_ech.cy - 1;
を、
  int nlines = ( ... ) - 1;
とかできないでしょうか?>亀井さん
#ちょっと見当違いかも、、、


ちなみに、cobol-modeのキーワードを610個に増やしておきました。

----
    YAMAMOTO Taizo / 山本 泰三
              mail : ymtz@xxxxxxxxxxxxxxx
                     yamamoto@xxxxxxxxx
              www  : http://www1.odn.ne.jp/ymtz/

Index Home