From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Mouse-hovering over 'mouse-face' overlays/regions on a TTY Emacs Date: Mon, 30 Nov 2020 18:05:07 +0000 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20096"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: jared@finder.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 30 19:09:21 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 1kjnc1-00057r-8h for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 19:09:21 +0100 Original-Received: from localhost ([::1]:59998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnc0-0006HW-76 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 13:09:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjnY2-0002ZN-8H for emacs-devel@gnu.org; Mon, 30 Nov 2020 13:05:14 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:42042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjnY0-0007na-Hq; Mon, 30 Nov 2020 13:05:13 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id l1so17394747wrb.9; Mon, 30 Nov 2020 10:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=h4X3NDz2iXIf7ifFs7YSyDFKjYMvPfJXNMHkC0YKAMc=; b=TQqabCaL2bVWW2wHrrb0VQEW/bSOCubkhtGpv5Gr7zR5uEU5KFV+zKeBGDc9L76pqH 81zfdAeDgY8NR1oFPM9T/X2sk1Hw9TfiAN3X7R9jC2tcxL/1GQ/ml5ZbOx8+upbEssI1 f7GRiDR8y+Os04iVtdlOIiRcWNs/9Z6i/pMIxWOwydy8br1Vcp+v81C4KEi6E1ad2XlM rwBv3XtbYhwi7O9OhiSAyArXMeYXWNHtTeT9g8+ndH9ebIQ/7yev5liOYJHRPtj5mVfQ kEaqc+xWlLdlZ3Vhyc+BqBVZe37QXDyI9RRJM6IaTjlVgS3RLJo/0WooC9oKPD+NSdPA 4S1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=h4X3NDz2iXIf7ifFs7YSyDFKjYMvPfJXNMHkC0YKAMc=; b=SK+XaoL0OZusoFIab8n4HZwnxuS3wx5L4/7srS+ALSkfYaAQWqMpOkCpm2Rhx0KOPJ 3Ytm2xAKtbjts2kJGNmmFylL9HF0YUh5D6HBFAlYePU2hx/srdb0RoW+3WPd6md6McYD x67PuKTOO7JCfkc6GZrT0F5MU2mL8ZEkUwOozzqmaKN5ZNW802FgjROkD5gbOOXh92t2 05ZlVna2AYjfrq3kG4LxRo9AzD+x6sIfc1Kpc7YN27cuSa9/btLQxiVIEimVvbKvmWTl AoLsJO+apu9bfRZSzV7RtsWxqOhW9GgBjxkTLX0BTD0TOKnnJu7pn//r/XN5Q0kM2bD6 V96g== X-Gm-Message-State: AOAM531XsVn7FbG+KJO64C4lOh7gGZU8PCnt34wn8xdtDgRz0TP81Fsn Hq/QStMmgynh8ojwBF3hx2dstxZQOyw= X-Google-Smtp-Source: ABdhPJwIRakmhovNIFR19CSyXqJNclL2oI2GP2lxw0TPHyVBgc+GStD8QbWoVW9X7yUfxOVgnQrfFw== X-Received: by 2002:adf:dd52:: with SMTP id u18mr28583007wrm.44.1606759509656; Mon, 30 Nov 2020 10:05:09 -0800 (PST) Original-Received: from Joaos-MacBook-Pro.local ([89.180.154.202]) by smtp.gmail.com with ESMTPSA id j13sm85456wmi.36.2020.11.30.10.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 10:05:08 -0800 (PST) In-Reply-To: <83h7p6kd74.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Nov 2020 18:43:27 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:260085 Archived-At: Eli Zaretskii writes: >> From: Jo=C3=A3o T=C3=A1vora >> Cc: Jared Finder , emacs-devel@gnu.org >> Date: Mon, 30 Nov 2020 16:25:37 +0000 >>=20 >> To recap, help-echo works fine, but mouse-face is somehow missing (on >> TTY only). > > It works for me on the w32 TTY, so something else is at work here. > More debugging is needed, I think. Specifically, note_mouse_highlight > is supposed to redraw some of the glyphs with the mouse-face. If the > function is called, please step through it and try to figure out why > the redrawing doesn't happen -- what prevents that? 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. Jo=C3=A3o