From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: xterm-mouse-mode gives incorrect posn-object-x-y with display space Date: Sat, 26 Nov 2022 21:14:26 +0200 Message-ID: <83y1rxr0j1.fsf@gnu.org> References: <835yf4w6a7.fsf@gnu.org> <5BBC7E49-41C3-4693-95F6-26E8EAC7F7A4@gmail.com> <837czhudev.fsf@gnu.org> <87fse5pmt5.fsf@disroot.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jdtsmith@gmail.com, emacs-devel@gnu.org To: Akib Azmain Turja Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 20:14:31 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oz0dC-0008LF-Hk for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 20:14:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz0cr-0000bQ-9x; Sat, 26 Nov 2022 14:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz0cm-0000b2-Mp for emacs-devel@gnu.org; Sat, 26 Nov 2022 14:14:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz0ck-0003Nw-7j; Sat, 26 Nov 2022 14:14:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UnyAEldTBc6IWOAJZ7l2CUTXDo0zr60NVRVxWQiFdh0=; b=fWhHGzub1ct7 5Nsr9b5ZcQV/vOG1q38s5wbkyrqNM1vg3zNICNf32j4IclLNuQD33elcrHCtgFOkUWKltrF+4II5Z r2X7MlpDXoWNlN7vzeIQ+Zt1jkG+G6GgE0GWQjyuQyNSjWgekYxtTAS8asMGpbfQlKMgJyz3k/vBg EleVFniCz/lza+hl1PW0jBYri73absAdO78hMzX0SWcZIIL/f+cJHkdRVBs082Y+WQMC09KDidK9A BE3++Yhg0+wK/2jIKW8rqbt72T7ui0JhkHPw/wTISZVSWWrmGEDZmRUniEaiaWARlO7mQf6tuRAVP NV+OMMTOaF3wem0+1D2abw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz0cj-00056G-Al; Sat, 26 Nov 2022 14:14:01 -0500 In-Reply-To: <87fse5pmt5.fsf@disroot.org> (message from Akib Azmain Turja on Sun, 27 Nov 2022 00:56:06 +0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300583 Archived-At: > From: Akib Azmain Turja > Cc: JD Smith , emacs-devel@gnu.org > Date: Sun, 27 Nov 2022 00:56:06 +0600 > > > Why challenging? On TTY frames, align-to always aligns to some character > > position, and the mouse clicks are reported in terms of character positions > > as well. Why do you even need the fine details of the POSITION part of the > > mouse-click events on TTY frames? > > They (probably a grammatical mistake) are the maintainer of the mlscroll > package, that implement scroll bar in mode line, but using specified > space. That's why they need the click position *precisely*. You are missing my point: on TTY frames "precisely" means at character position granularity. There's no resolution below that, so accounting for the number of glyphs in the stretch of whitespace should not present a problem. Unless I'm missing something.