From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#39098: 26.3; bug of mouse-face including linebreak Date: Sun, 12 Jan 2020 22:32:31 +0900 Message-ID: <86wo9wyf4g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="124749"; mail-complaints-to="usenet@blaine.gmane.org" To: 39098@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 12 14:33:56 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqdMl-000I1b-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 14:33:19 +0100 Original-Received: from localhost ([::1]:38368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqdMk-0008QM-5g for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 08:33:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60782) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqdMW-0008QE-3N for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:33:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqdMU-0005OF-MJ for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:33:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqdMU-0005NN-HU for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqdMU-0007Zf-EN for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2020 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39098 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157883597529100 (code B ref -1); Sun, 12 Jan 2020 13:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2020 13:32:55 +0000 Original-Received: from localhost ([127.0.0.1]:57134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqdMM-0007ZI-SG for submit@debbugs.gnu.org; Sun, 12 Jan 2020 08:32:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:56512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqdML-0007ZA-8H for submit@debbugs.gnu.org; Sun, 12 Jan 2020 08:32:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60118) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqdMJ-0008Q6-QL for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:32:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqdMI-0004XZ-DT for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:32:51 -0500 Original-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 ) id 1iqdMI-0004TC-4o for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 08:32:50 -0500 Original-Received: by mail-pf1-x430.google.com with SMTP id q10so3552194pfs.6 for ; 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) Original-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 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2020 05:32:48 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174501 Archived-At: 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))