Revision: 6517
Author: sasugaanija
Date: Sat Jul 17 02:39:53 2010
Log: * emacs/uim-util.el
- (uim-goto-char): Fix bug
When two or more windows display a common buffer in the
single frame (ex. type C-x 2) and uim.el shows candidates
in one of the window, other windows scroll automatically
and display the region same to the current focused buffer.
This bug only appears under Emacs-23.x (probably, it's caused
by strange behavior of get-buffer-window function).
http://code.google.com/p/uim/source/detail?r=6517
Modified:
/trunk/emacs/uim-util.el
=======================================
--- /trunk/emacs/uim-util.el Sun Apr 4 20:35:54 2010
+++ /trunk/emacs/uim-util.el Sat Jul 17 02:39:53 2010
@@ -297,7 +297,8 @@
(defun uim-goto-char (pt)
- (set-window-point (get-buffer-window (current-buffer)) pt))
+ (set-window-point (selected-window) pt)
+ )
(defun uim-get-vector-from-head (vec n)