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: Mouse-hovering over 'mouse-face' overlays/regions on a TTY Emacs Date: Mon, 30 Nov 2020 20:24:35 +0200 Message-ID: <837dq2k8ik.fsf@gnu.org> References: <838sajle0s.fsf@gnu.org> <83v9dmker4.fsf@gnu.org> <83h7p6kd74.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18055"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jared@finder.org, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 30 19:26:16 2020 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 1kjnsO-0004a3-Hv for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 19:26:16 +0100 Original-Received: from localhost ([::1]:50328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnsN-0006m7-K9 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 13:26:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjnqt-0005j5-Ji for emacs-devel@gnu.org; Mon, 30 Nov 2020 13:24:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33957) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnqs-0001xW-Vo; Mon, 30 Nov 2020 13:24:42 -0500 Original-Received: from [176.228.60.248] (port=2652 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kjnqs-0002RT-9a; Mon, 30 Nov 2020 13:24:42 -0500 In-Reply-To: (message from =?utf-8?B?Sm/Do28g?= =?utf-8?B?VMOhdm9yYQ==?= on Mon, 30 Nov 2020 18:05:07 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:260087 Archived-At: > From: João Távora > Cc: jared@finder.org, emacs-devel@gnu.org > Date: Mon, 30 Nov 2020 18:05:07 +0000 > > I think I figured it out. draw_row_with_mouse_face() is eventually > called by show_mouse_face(), but it is a noop on my system. Easy to > see: > > static void > draw_row_with_mouse_face (struct window *w, int start_x, struct glyph_row *row, > int start_hpos, int end_hpos, > enum draw_glyphs_face draw) > { > #ifdef HAVE_WINDOW_SYSTEM > ... > #endif > #if defined (HAVE_GPM) || defined (MSDOS) || defined (WINDOWSNT) > tty_draw_row_with_mouse_face (w, row, start_hpos, end_hpos, draw); > #endif > } > > > I'm currently using Mac OS. Most of the TTY things work here, and I > would expect drawing some face on a part of the screen to work too. I > can certainly show and hide faces programatically. > > I've tried uncommenting that, but it fails during linking. You need to implement tty_draw_row_with_mouse_face for macOS terminal. Look at the other implementations, it should be easy.