GNU bug report logs - #39098
26.3; bug of mouse-face including linebreak

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: ynyaaa@HIDDEN; Keywords: notabug; dated Sun, 12 Jan 2020 13:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 39098 <at> debbugs.gnu.org:


Received: (at 39098) by debbugs.gnu.org; 12 Jan 2020 15:16:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 12 10:16:34 2020
Received: from localhost ([127.0.0.1]:57795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iqeyg-00059s-2m
	for submit <at> debbugs.gnu.org; Sun, 12 Jan 2020 10:16:34 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57023)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1iqeye-00055Q-NH; Sun, 12 Jan 2020 10:16:32 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35050)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iqeyZ-0001yw-Ga; Sun, 12 Jan 2020 10:16:27 -0500
Received: from [176.228.60.248] (port=3683 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iqeyX-00029g-Iw; Sun, 12 Jan 2020 10:16:26 -0500
Date: Sun, 12 Jan 2020 17:16:30 +0200
Message-Id: <83ftgk7lip.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <86wo9wyf4g.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#39098: 26.3; bug of mouse-face including linebreak
References: <86wo9wyf4g.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 39098
Cc: 39098 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 39098 notabug
thanks

> From: ynyaaa@HIDDEN
> Date: Sun, 12 Jan 2020 22:32:31 +0900
> 
> If 'mouse-face is put on a reaion including linebreaks and active,
> the appearance of the blank areas right to linebreaks is changed.
> But pointing the blank areas does not activate 'mouse-face.
> 
> If 'mouse-face is put on a region ending with a linebreak,
> the activated appearance covers the first character of the next line.

This is not a bug, this is how mouse-face is supposed to work.  It
differs from other faces in this regard, because it is intended to be
used to show mouse-sensitive text, including text that spans multiple
lines.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39098; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jan 2020 13:32:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 12 08:32:55 2020
Received: from localhost ([127.0.0.1]:57134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iqdMM-0007ZI-SG
	for submit <at> debbugs.gnu.org; Sun, 12 Jan 2020 08:32:55 -0500
Received: from lists.gnu.org ([209.51.188.17]:56512)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1iqdML-0007ZA-8H
 for submit <at> debbugs.gnu.org; Sun, 12 Jan 2020 08:32:53 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60118)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ynyaaa@HIDDEN>) id 1iqdMJ-0008Q6-QL
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 08:32:53 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1iqdMI-0004XZ-DT
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 08:32:51 -0500
Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:38919)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ynyaaa@HIDDEN>) id 1iqdMI-0004TC-4o
 for bug-gnu-emacs@HIDDEN; Sun, 12 Jan 2020 08:32:50 -0500
Received: by mail-pf1-x430.google.com with SMTP id q10so3552194pfs.6
 for <bug-gnu-emacs@HIDDEN>; Sun, 12 Jan 2020 05:32:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=fiA+LD0m3bNlbjYZYh40o+yJMANxeoR9Ac4Ws1R5aHg=;
 b=PdUGa/AL5VmqIiavNGpk+czN3kKiIVmgLFgPCjjrysjtShkyO+7JiEKLhIVU1qsmOG
 Xct0WLxPCKscCWDPQLjBw73sLxoDaauc6SHKBFEWyt3YIJHKHmPvL/8qToo6NtS+i1Aj
 CNHwohdYtMjbVPPBOsSRx6Wt6GUXAeiuzFyvV3qsbSiBjNuPGP5A3k5Mgbdaz3RyeW45
 zLfD2cNgjDfD8whkyThZ/NLvu76Yd2OFByfohgjSqekOCHUBwcoiLx625UKOAxcxts39
 UkXVHYykkdddfXjy7vx1/wg4Xviy8XHqVlLHgzeA8vyIJYpZGsOJXURv7Je+QJHo554L
 74jg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=fiA+LD0m3bNlbjYZYh40o+yJMANxeoR9Ac4Ws1R5aHg=;
 b=E8uVnQt1n6N7dbA8uVhj2MuamGFLDgMMA+zz5kDKssP9ktpn+bWNG7WlwURFBOi3+K
 r8caOwxIkpVQd0/YaKzf0RXXsSgCtZqHyAbMkNe/yxp2e8uUwNQng0VDIrRTjMHipi/e
 +m75tAqeWoXUQ+cOXuLvL0WgMg+GlZw1ZXxiNvV/9QZ5pbpHYWrsntGc4W8S3P2F+SP2
 dUFkiG7eu90s34urhbo/GzdDFC5TPTgbxh14tzGJOD66qATnKVWYeE2F6v8fKUPVk8OE
 EsW7E2OE7SJvpK52hCeLJ/tO+NJa3RGq7lexFNem9SF5jPD+eu+ut2T14LaMyxK/iTFJ
 4OJw==
X-Gm-Message-State: APjAAAW7709UF6JPMui4njnsHsnypjvjQhtTs0TwFoh9QPnttcgF2yMm
 vjp9qtLlCNAMfPNLkIj/u4QDGyn0
X-Google-Smtp-Source: APXvYqzWJvKZOpjsOxVib5AI4EbeKq1tH4IiaCxhG3pwM46tMotZsVc6pLo1gBnDURaTpHml8nHblQ==
X-Received: by 2002:aa7:870d:: with SMTP id b13mr6250795pfo.212.1578835968739; 
 Sun, 12 Jan 2020 05:32:48 -0800 (PST)
Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112])
 by smtp.gmail.com with ESMTPSA id w6sm10954853pfq.99.2020.01.12.05.32.47
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 12 Jan 2020 05:32:48 -0800 (PST)
From: ynyaaa@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 26.3; bug of mouse-face including linebreak
Date: Sun, 12 Jan 2020 22:32:31 +0900
Message-ID: <86wo9wyf4g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::430
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


If 'mouse-face is put on a reaion including linebreaks and active,
the appearance of the blank areas right to linebreaks is changed.
But pointing the blank areas does not activate 'mouse-face.

If 'mouse-face is put on a region ending with a linebreak,
the activated appearance covers the first character of the next line.

Example:
Evaluating the form below, a green area is displayed, where 'face,
'mouse-face, 'keymap and 'help-echo properties are put.
The green area includes a text "TARGET" and a blank area.

When pointing "TARGET", 'mouse-face is active.
The red area covers "*" in the next line, which has no properties.
When pointting the green blank area, 'mouse-face is not active.

Clicking the green area(both "TARGET" and the blank area) shows a
message "mouse-face: (:background red)".
The keymap is also active at "*" in the next line, which has no
properties.

The 'help-echo property is active only when pointing on "TARGET", not on
the green blank area.

(let ((map (make-sparse-keymap)))
  (switch-to-buffer (generate-new-buffer "tmp"))
  (define-key map [down-mouse-1] #'ignore)
  (define-key map [mouse-1]
    (lambda (ev)
      (interactive "e")
      (let* ((p (posn-point (event-end ev)))
             (prop (get-text-property p 'mouse-face)))
        (message "mouse-face: %s" prop))))
  (define-key map "e" 'end-of-line)
  (insert "before\n"
          (propertize "TARGET\n"
                      'face '(:background "green")
                      'mouse-face '(:background "red")
                      'help-echo "click here"
                      'keymap map)
        "*after\n"))



In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29 built on CIRROCUMULUS
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor 'Microsoft Corp.', version 6.3.9600
Recent messages:

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq dired
dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived
epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-edit
cus-start cus-load wid-edit pulse eieio-opt speedbar sb-image ezimage
dframe find-func thingatpt xref cl-seq project ring eieio eieio-core
cl-macs eieio-loaddefs misearch multi-isearch cl-extra help-fns
radix-tree cl-print byte-opt gv bytecomp byte-compile cconv debug
help-mode easymenu cl-loaddefs cl-lib elec-pair time-date mule-util
japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads w32notify w32 lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 139841 14457)
 (symbols 48 25226 1)
 (miscs 40 189 298)
 (strings 32 39872 1327)
 (string-bytes 1 1014280)
 (vectors 16 18882)
 (vector-slots 8 687654 27462)
 (floats 8 69 402)
 (intervals 56 1657 975)
 (buffers 992 20))




Acknowledgement sent to ynyaaa@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39098; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2020 15:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.