From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#39247: 26.3; inappropriate mouse pointer shapes Date: Thu, 23 Jan 2020 11:25:09 +0900 Message-ID: <86r1zqdi4a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76841"; mail-complaints-to="usenet@ciao.gmane.io" To: 39247@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 23 03:26:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iuSCF-000JwA-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jan 2020 03:26:15 +0100 Original-Received: from localhost ([::1]:50024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuSCE-0005Rt-Bo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jan 2020 21:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45234) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuSC4-0005Rj-GT for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuSC2-0004CU-LI for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:26:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuSC2-0004CP-I3 for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iuSC2-0002yX-Db for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:26: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: Thu, 23 Jan 2020 02:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39247 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.157974632211385 (code B ref -1); Thu, 23 Jan 2020 02:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jan 2020 02:25:22 +0000 Original-Received: from localhost ([127.0.0.1]:51555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuSBO-0002xZ-3y for submit@debbugs.gnu.org; Wed, 22 Jan 2020 21:25:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuSBN-0002xS-4b for submit@debbugs.gnu.org; Wed, 22 Jan 2020 21:25:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45050) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuSBL-0005J1-1p for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:25:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuSBJ-0003lD-6A for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:25:18 -0500 Original-Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:44990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuSBI-0003ke-Tg for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2020 21:25:17 -0500 Original-Received: by mail-pf1-x42f.google.com with SMTP id 62so760384pfu.11 for ; Wed, 22 Jan 2020 18:25:16 -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=NOjgAnlUagyhSc+/E98iOcBof/oc2YWjSCW21NQeVFg=; b=NcAp3VPhWQvcbkGHUm/gChnv8D1cCBJBggrvMyq8Uw+x8n5MXkOcY8MB/cEt9k8h8k 5rxYq4WvIkAwV/YU/kC/0r0buwIzN2+4HzPP455ap6aHvNE2fKD8HMDXMIpb6ldX4Kid HrKnZxzeX/7up89GitNEEvdy3JEkvaN8IIvMVYHHpm/rIyjY9L+agy4zOQPa7nX7o3e8 IfU8dl8WMVveORbbdDZDDvDG8F0mxPGBtTPpyKxZa/IwCUH6mpnHnEjxXFRWIa1b9Sjw 0FXkcqlqVqeMmww6YJBPXKa1MixkaLD3Fr0l74nT1ns8SY6zoriuN+k26Bhdej2F9G8e vH7g== 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=NOjgAnlUagyhSc+/E98iOcBof/oc2YWjSCW21NQeVFg=; b=O4GxGWCa1BA3RjpY7QLDT5t2OlZ/QX7iI2SwHzdmMIOBKynDgf/MiyZwdHjDDQADFl l6q1P9TknN9yyhLm/ID0nc4Q8R+U4R32Ww3K6Ic+2qFWIiYpWaZOu6RG6r5rnNEbhFLf QErHbOhnFkQP3L6M4FrjuzAUtVP/Ae7r6suuPkG9/g9vUNtiNHI9HsO6NCJFO36nhG6K zwC8ApF72kcK8PSu/U59tM/yLLVhuE7C5wDgBYZgYT6krVCK1wtCXpPcYBu85pMpYL2S vkJzBz5fU7VEBSkNWLfKofTec4AMp3iSFqlbfGr3EEWObnZGzf5ICUAyfftGZ/t+hKNM IW+w== X-Gm-Message-State: APjAAAXyUm+vnpYR4bUOYhYEK7vtcEM0bisOUHZtQ3Bs4miY+GAnR3Qc GEmPTBjLePmxfFjQUN09VFo31vFu X-Google-Smtp-Source: APXvYqzRirRvPVwyEK7fzBgL401JacjYFcPHiJxaN6rY3OvE+1okyMcmqxVfek+y2A14SQOk384W3A== X-Received: by 2002:a65:5281:: with SMTP id y1mr1403989pgp.327.1579746315250; Wed, 22 Jan 2020 18:25:15 -0800 (PST) Original-Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112]) by smtp.gmail.com with ESMTPSA id d22sm356937pgg.52.2020.01.22.18.25.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jan 2020 18:25:14 -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.io gmane.emacs.bugs:175123 Archived-At: In some cases, mouse pointer shapes are not appropriate. (1)'text shape on mode-line. Move the mouse pointer onto the line number in the mode-line at the bottom of the emacs frame. Move the pointer to the right SPC. Then the pointer shape is 'text. (With (setq resize-mini-windows nil), this does not occur.) (2)'text shape on header-line. Evaluate the form below. Move the mouse pointer onto the text 'YYY'. Move the pointer up to the blank area of the header-line. Then the pointer shape is 'text. (let ((buf (generate-new-buffer "tmp"))) (switch-to-buffer buf) (setq header-line-format "xxx") (insert "xxxYYY")) (3)'hourglass shape when emacs is not busy Move the mouse pointer onto a text area of emacs frame. Do not touch the mouse afterwards. Evaluate the form below. Type 'j' to insert 'j'. Type 'a' to make emacs busy. Type Alt-Tab to switch to another application. Type Alt-Tab again to switch back to the emacs frame. Type 'C-g' to stop the busy loop. Then the pointer shape keep 'hourglass. (let ((buf (generate-new-buffer "tmp")) (map (make-sparse-keymap))) (menu-bar-mode 0) (switch-to-buffer buf) (define-key map "a" (lambda () (interactive) (dotimes (i 1000000000)))) (use-local-map map)) (4)shape of 'pointer property value put on another area Evaluate the form below. Move the mouse pointer onto 'yyy'. Move the pointer left to 'XXX' or right to 'ZZZ'. Then the pointer shape keep 'hdrag. (let ((buf (generate-new-buffer "tmp"))) (switch-to-buffer buf) (insert (propertize "XXX" 'mouse-face 'region) (propertize "yyy" 'mouse-face 'region 'pointer 'hdrag) (propertize "ZZZ" 'mouse-face 'region))) (5)'text shape on the blank area in the echo area. Show any message in the echo area. For example, type 'C-g'. Move the mouse pointer onto the blank area of the echo area. Then the pointer shape is 'text. Even after the message is cleared with some input such as 'C-f', the pointer shape on the echo area may remain 'text. (6)'text shape on an image map area with empty PLIST The form below inserts a image with four circles. Spec for a red circle has empty PLIST. The mouse poiter shape on the red circle is 'text. (let ((svg (progn (require 'svg) (svg-create 200 200)))) (svg-circle svg 50 50 50 :fill-color "red") (svg-circle svg 150 50 50 :fill-color "green") (svg-circle svg 50 150 50 :fill-color "blue") (svg-circle svg 150 150 50 :fill-color "yellow") (insert-image (svg-image svg :map '(((circle . ((50 . 50) . 50)) red-area nil) ((circle . ((150 . 50) . 50)) green-area (dummy "green")) ((circle . ((50 . 150) . 50)) blue-area (help-echo "blue")) ((circle . ((150 . 150) . 50)) yellow-area (help-echo "yellow" pointer hdrag))))) (put-text-property (1- (point)) (point) 'keymap (let ((map (make-sparse-keymap))) (dolist (color '("red" "green" "blue" "yellow")) (let ((area (intern (format "%s-area" color)))) (define-key map (vector area 'mouse-1) `(lambda (ev) (interactive "e") (let ((tmp (event-end ev))) (message "%S" (posn-area tmp))))))) map))) 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 10.0.18363 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: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 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: (cl-print thingatpt cus-edit cus-start cus-load misearch multi-isearch term/bobcat shadow emacsbug mailalias smtpmail sendmail sort mail-extr message dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader help-fns radix-tree pp descr-text cl-extra help-mode network-stream starttls url-http tls gnutls mail-parse rfc2231 url-gw nsm rmc url-cache url-auth eww easymenu puny mm-url gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils wid-edit mm-util mail-prsvr url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars mailcap shr svg xml seq byte-opt gv bytecomp byte-compile cconv dom browse-url format-spec 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 188164 148046) (symbols 48 50872 6) (miscs 40 88 497) (strings 32 115046 1483) (string-bytes 1 2563859) (vectors 16 25649) (vector-slots 8 1692784 183626) (floats 8 85 504) (intervals 56 15069 3803) (buffers 992 21))