From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#23574: 24.5; Overzealous underlining in emacs-nox Date: Sat, 4 Jun 2016 14:37:28 -0700 Message-ID: References: <83porxwg1f.fsf@gnu.org> <83d1nxudrb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465076901 3743 80.91.229.3 (4 Jun 2016 21:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2016 21:48:21 +0000 (UTC) Cc: Colin Woodbury To: 23574@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 04 23:48:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9JQS-000393-V4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 23:48:13 +0200 Original-Received: from localhost ([::1]:34273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9JQS-0003AR-3c for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 17:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9JGg-0001gi-Ji for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 17:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9JGc-0006aY-E7 for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 17:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9JGc-0006aT-Ab for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 17:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9JGc-0005nr-2J for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 17:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jun 2016 21:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23574-submit@debbugs.gnu.org id=B23574.146507627622296 (code B ref 23574); Sat, 04 Jun 2016 21:38:02 +0000 Original-Received: (at 23574) by debbugs.gnu.org; 4 Jun 2016 21:37:56 +0000 Original-Received: from localhost ([127.0.0.1]:54659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9JGW-0005nY-06 for submit@debbugs.gnu.org; Sat, 04 Jun 2016 17:37:56 -0400 Original-Received: from mail-yw0-f179.google.com ([209.85.161.179]:36783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9JGT-0005nK-Ei for 23574@debbugs.gnu.org; Sat, 04 Jun 2016 17:37:54 -0400 Original-Received: by mail-yw0-f179.google.com with SMTP id x189so110418354ywe.3 for <23574@debbugs.gnu.org>; Sat, 04 Jun 2016 14:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8E/xmF2teEcGoxDCExwzlDCtmPgb812dzV/FJcHg2g8=; b=Xiq16EsiKwxlgFczW3fEbpFUkaFwsx7oape3/BF3iGxLjd+Fev0aj/1t481T0B4iyy bY3x9fI0VktGzb5aXsL20GiR3U3Gci104cLXplr0r+IEg8O0fcvv13UqNpZCt9f9M0jr YETGKDbChZLXL+nzTA+F43yUzMbQs7E2r5MtUrgMceMoqP7nUEwIoLOrBkhSwGHi1EgI +mf2Ma7sI3jiEAFk2Wv3XaN7keZMhoiSEOE7VfdfCgqNnAGpqCzO0dYKu2QPdLRzebJf tI/0qg3Rs2YSN4pDDb6DKLUW1rSbpPTvXaQa99CTlGEmkh1hEdv2Td1tWo4Lvv5zLSaZ ENVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8E/xmF2teEcGoxDCExwzlDCtmPgb812dzV/FJcHg2g8=; b=AIiHxwf1evWiDnRnAVsNE2vNpYYlNOB1ktCoeO9uJZj16Wx9VGY6+ENCx48SwmreAi X5QUKdZzMvt22MO7vXki40ziyqwp7Er0EECNXxyWfLA2PaEHP7+VrA7T9osEpb4BPf2B Sn/hrqrhF9S2RwrkVH1At/2UJlE6r9Zssqfz3dCN70qsWt5z0e4SwvjY0rOpwdDDHs5q e1vzyL55iopo5nqiSIkNXUZoO5rr+q7IDofQY2JE9A4EZx/bNyc7X+WXu9plpjtb7fMN ScprHrvIHGtr+9bG3rAso7x0E20mco8QheL7B4qHL5Qj7iIaiAJNjs0gkS2WcOTlNKFS y5Kg== X-Gm-Message-State: ALyK8tIeZqpG/AVSJHnL5shwEjtelJ9SKrYiUFU36uI3aFuCwwvSURRO6+nCdLL31Qpf0DYr81iw8ucQWUBgpw== X-Received: by 10.129.23.77 with SMTP id 74mr6802845ywx.127.1465076268005; Sat, 04 Jun 2016 14:37:48 -0700 (PDT) Original-Received: by 10.37.94.137 with HTTP; Sat, 4 Jun 2016 14:37:28 -0700 (PDT) In-Reply-To: <83d1nxudrb.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119078 Archived-At: Eli Zaretskii wrote: >> Thanks for the response, Eli. If it's not a bug in terminal emacs, >> then why do GUI emacs and terminal emacs display different things? >> Note from the images that the empty space in GUI is _not_ given the >> same overlay/face as the text. > > If you show me some Lisp which produces these different effects in X > and non-X sessions, I could try looking for the reason. All I've seen > is a screenshot, from which I deduced (perhaps incorrectly) what was > done to produce it. Here's an example shows the effect Colin is seeing: (let (beg end ov) (defface example-underline-face '((t :underline t)) "Example face with underlining") (goto-char (point-max)) (newline) (setq beg (point)) (insert " foo\n bar\n") (setq end (point)) (setq ov (make-overlay beg end)) (overlay-put ov 'face 'example-underline-face)) The result is the same with text properties instead of an overlay: (progn (defface example-underline-face '((t :underline t)) "Example face with underlining") (goto-char (point-max)) (newline) (insert (propertize " foo\n bar\n" 'font-lock-face 'example-underline-face))) In a graphical frame, the underline only extends one character past the visible text (this one extra character presumably being the newline). However, in a text frame the underline extends all the way to the end of the window. John