From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: emacs XIM question Date: 08 Jan 2003 18:25:00 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=euc-jp Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042019207 6361 80.91.224.249 (8 Jan 2003 09:46:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 09:46:47 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WCnO-0001eQ-00 for ; Wed, 08 Jan 2003 10:46:46 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18WCsN-0002Ub-00 for ; Wed, 08 Jan 2003 10:51:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WCn5-0002Ez-05 for emacs-devel@quimby.gnus.org; Wed, 08 Jan 2003 04:46:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18WCjb-00012x-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 04:42:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18WCgs-00083y-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 04:40:05 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.202]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WCSU-0002ya-00; Wed, 08 Jan 2003 04:25:10 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197])h089P5U25320; Wed, 8 Jan 2003 18:25:05 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate52.nec.co.jp [10.7.69.191]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h089P4801052; Wed, 8 Jan 2003 18:25:04 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id h089P1q29852; Wed, 8 Jan 2003 18:25:03 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) id h089P0B00760; Wed, 8 Jan 2003 18:25:00 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 5F2DB3745; Wed, 8 Jan 2003 18:25:00 +0900 (JST) Original-To: emacs-devel@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 37 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10577 I'm trying out the `kinput2' input server with emacs. It generally seems to work pretty well, but there's one glitch I'm wondering about: kinput2 displays its not-yet-sent-to-the-application text with an underline, and the text it displays is shifted upwards compared to subsequent client display by one pixel, which is the same as the thickness of the underline. What I'm wondering is, is this a bug with kinput2 -- should it locating its display window one pixel down to account for the underline thickness -- or is this an off-by-one error in the coordinates emacs sends to kinput2. The coordinates emacs sends as the `spot location' to kinput2 are the x,y coordinates of the top of the cursor + the default font's ascent added to the y coordinate (this looks pretty bad if your inputing in a location with non-default fonts, incidentally; perhaps there's a better way to calculate the font baseline to send to the input manager). Here's a simple picture: -- displayed by emacs -- -- kinput2 text -- # # # # # # # # # # ### # # ### # # ### # # ### ##### # # # # # # ##### # # # # # # # # #### # # # # # # #### # # # # # # # # # # # # # # # # # # # # #### # # ### # # #### # # ### ####################### after kinput2 sends the text to emacs, it's of course displayed properly. Thanks, -Miles -- =BC=AB=A4=E9=A4=F2=B6=F5=A4=CB=A4=B7=A4=C6=A1=A2=BF=B4=A4=F2=B3=AB=A4=AF=BB= =FE=A1=A2=C6=BB=A4=CF=B3=AB=A4=AB=A4=EC=A4=EB