From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.bugs Subject: bug#38740: 28.0.50; cursor-sensor-mode error in post-command-hook Date: Wed, 25 Dec 2019 16:23:11 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000021c37c059a872acb" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="42166"; mail-complaints-to="usenet@blaine.gmane.org" To: 38740@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 25 14:24:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.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 1ik6e5-000Aka-UV for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2019 14:24:14 +0100 Original-Received: from localhost ([::1]:46620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ik6e4-0003sn-Qk for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2019 08:24:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40257) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ik6dw-0003sV-Kf for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ik6du-00038v-ID for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:24:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ik6du-00038g-FW for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ik6du-0007hs-Bw for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Evgeny Zajcev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2019 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38740 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.157728021129581 (code B ref -1); Wed, 25 Dec 2019 13:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Dec 2019 13:23:31 +0000 Original-Received: from localhost ([127.0.0.1]:53391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ik6dP-0007h3-25 for submit@debbugs.gnu.org; Wed, 25 Dec 2019 08:23:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ik6dM-0007gu-L3 for submit@debbugs.gnu.org; Wed, 25 Dec 2019 08:23:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ik6dK-0003mm-I6 for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:23:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ik6dI-000285-Gx for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:23:26 -0500 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:45004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ik6dI-00022j-5O for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 08:23:24 -0500 Original-Received: by mail-lf1-x130.google.com with SMTP id v201so16832349lfa.11 for ; Wed, 25 Dec 2019 05:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Jf50cnKUNdxd0WRuQviCaucoTVY/OpJC57JKQqUt9ZQ=; b=pOlE/nZRcgBs1q44xwrbi7mvNn6yRTK+W+jaB4+YDuRXUapLAX3VkoGhzyjDz8aLP8 dSyn+eQy8yNW35O/BxwWqmuNpY9svUSyoKAQOaTp5/oy4PGu1zxPT+ZLlTH5b2FziwKQ chVoSo+vBiOteeT0hIqR1LvTsQdGQaYddCLRbVBhzgO2uvw+gowVq8ec4CGcDQc8yuFC +0Cs+pjicgixq1h66zfDm2ECc3f6xTZheOsDi2D2M7aaGWxJ9JSsYoB/dEVVSoTS7IvO RKAOx4v+54Wic7cw2QMRoIdo/IyM22hGcPUOVbnWNnS0biwme2djMI+DcEM43cdfxXZ8 PevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Jf50cnKUNdxd0WRuQviCaucoTVY/OpJC57JKQqUt9ZQ=; b=l5Tx1OrJmxv4QA2m4TRY4f0/EPOEI3tVJM5iZ2Wau6PFO5ajWOyWurqJsB+DjpDCrB dk78rJpjcYma2TSngsAKRWQWODQyAFDUoFnw1ShbTKQ5Y1U5lG0Hpj7bIGRx7ApRRnfV abnU2pu82OiR7kPFJR+zuaeLgbdhfbvAbMNIQ4t8/hfs6hxM496e6DPjUh4Yfzl39x61 YkQlVq7L1OEaSeAOvJhoLKJtGB9ZN760lTRAVBiL+BKQU+pmH2cPS5gROHMrX9EFhyC/ zOwTOLWqTf8vYhLT0B7qro98D53uTNNz7m2yX5IQcow7se05FLLAlGz7mzeBnBlxFFtc Ae3A== X-Gm-Message-State: APjAAAVgfjXGeEeEk7XS8wAMubXxKEYUw3QQ8+cISFtDVHim+YgaFooS ITkoZAoC5dOR9yEUwwhIYkmBJzvwe0MqTeZXRrdLXHOr X-Google-Smtp-Source: APXvYqye3ukj94cV8M7kJOLY3CmqVq25os8MoH3bIPunH5WcpqExLrEKF1LLCBvw8Q0iG4YEMQInYqTvm+25n/WJurc= X-Received: by 2002:a19:5013:: with SMTP id e19mr23384021lfb.8.1577280201670; Wed, 25 Dec 2019 05:23:21 -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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173745 Archived-At: --00000000000021c37c059a872acb Content-Type: text/plain; charset="UTF-8" Evaluating next form in scratch buffer: (with-help-window "TEST" (set-buffer standard-output) (cursor-sensor-mode 1) (insert "here")) Results in error: Error in post-command-hook (cursor-sensor--detect): (args-out-of-range 354582) Looks like cursor-sensor uses scratch's window instead of "TEST" buffer window. I do not remember getting such error in Emacs 26, 27 Thanks ------ In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-12-25 built on wrt Repository revision: 7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS Recent messages: Mark set Mark saved where search started Mark set uncompressing help.el.gz...done Note: file is write protected uncompressing window.el.gz...done Note: file is write protected Mark activated next-line: End of buffer [2 times] Mark set [4 times] Configured using: 'configure --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: ru_RU.UTF-8 value of $LC_NUMERIC: ru_RU.UTF-8 value of $LC_TIME: ru_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: icomplete-mode: t save-place-mode: t pyvenv-mode: t shell-dirtrack-mode: t display-time-mode: t global-undo-tree-mode: t undo-tree-mode: t override-global-mode: t cl-old-struct-compat-mode: t global-eldoc-mode: t eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /home/lg/.emacs.d/elpa/circe-20180105.1158/tracking hides /home/lg/.emacs.d/elpa/tracking-20171210.2102/tracking /home/lg/.emacs.d/elpa/circe-20180105.1158/shorten hides /home/lg/.emacs.d/elpa/tracking-20171210.2102/shorten Features: (shadow sort mail-extr emacsbug sendmail misearch multi-isearch jka-compr find-func cursor-sensor exwm-wconf winner exwm-misc exwm exwm-match exwm-input xcb-keysyms exwm-manage exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types work desktop frameset gnus-demon nntp gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc gnus-spec gnus-win nnoo gnus-int gnus-range message rfc822 mml mml-sec epa epg epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus nnheader gnus-util rmail rmail-loaddefs text-property-search mail-utils autoinsert cal-menu calendar cal-loaddefs icomplete saveplace cython-mode company-capf company pcase help-fns radix-tree elpy find-file-in-project ivy delsel ivy-overlay ffap windmove diff-mode elpy-shell pyvenv elpy-profile elpy-django elpy-refactor python tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat parse-time iso8601 time-date ls-lisp format-spec grep files-x etags fileloop generator xref project cus-edit cus-start cus-load wid-edit python-mode info-look which-func imenu shell pcomplete hippie-exp flymake-proc flymake warnings thingatpt compile cc-cmds cc-engine cc-vars cc-defs dot-mode gist dired dired-loaddefs gh-gist gh-oauth gh-api logito gh-cache pcache gh-auth gh-url url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny timezone eieio-base server time google-translate google-translate-default-ui google-translate-core-ui google-translate-core google-translate-tk url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap whitespace undo-tree diff ido comint ansi-color ring avoid ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs edmacro kmacro browse-kill-ring derived cl cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core tex-site gh-common gh-profile rx s marshal eieio-compat dash advice info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 404633 73335) (symbols 48 34773 1) (strings 32 103486 2565) (string-bytes 1 3713081) (vectors 16 48517) (vector-slots 8 743695 36310) (floats 8 263 191) (intervals 56 1236 239) (buffers 1000 19) (heap 1024 38267 2970)) -- lg --00000000000021c37c059a872acb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Evaluating next form in scratch buffer:
=C2=A0 =C2=A0 (with-help-window "TEST"
=C2=A0 =C2= =A0 =C2=A0 (set-buffer standard-output)
=C2=A0 =C2=A0 =C2=A0 (cursor-sen= sor-mode 1)
=C2=A0 =C2=A0 =C2=A0 (insert "here"))

Results in error:

=C2=A0 =C2=A0 E= rror in post-command-hook (cursor-sensor--detect): (args-out-of-range 35458= 2)

Looks like cursor-sensor uses scratch's= window instead of "TEST" buffer window.

I do not remember getting such error in Emacs 26, 27

<= div>Thanks

------
In GNU Emacs 28.0.50 (= build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
=C2=A0of 2019-12-25 b= uilt on wrt
Repository revision: 7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b= 9
Repository branch: master
Windowing system distributor 'The X.O= rg Foundation', version 11.0.11804000
System Description: Ubuntu 16.= 04.1 LTS

Recent messages:
Mark set
Mark saved where search sta= rted
Mark set
uncompressing help.el.gz...done
Note: file is write = protected
uncompressing window.el.gz...done
Note: file is write prote= cted
Mark activated
next-line: End of buffer [2 times]
Mark set [4= times]

Configured using:
=C2=A0'configure --with-modules'= ;

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSET= TINGS GLIB NOTIFY INOTIFY
GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF XFT ZL= IB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LC= MS2 GMP

Important settings:
=C2=A0 value of $LC_MONETARY: ru_RU.U= TF-8
=C2=A0 value of $LC_NUMERIC: ru_RU.UTF-8
=C2=A0 value of $LC_TIM= E: ru_RU.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-codin= g-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes= in effect:
=C2=A0 icomplete-mode: t
=C2=A0 save-place-mode: t
=C2= =A0 pyvenv-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 display-time-= mode: t
=C2=A0 global-undo-tree-mode: t
=C2=A0 undo-tree-mode: t
= =C2=A0 override-global-mode: t
=C2=A0 cl-old-struct-compat-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 mouse-wheel-m= ode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: = t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 column-number-mode: t
=C2=A0 l= ine-number-mode: t
=C2=A0 auto-fill-function: do-auto-fill
=C2=A0 tra= nsient-mark-mode: t

Load-path shadows:
/home/lg/.emacs.d/elpa/cir= ce-20180105.1158/tracking hides /home/lg/.emacs.d/elpa/tracking-20171210.21= 02/tracking
/home/lg/.emacs.d/elpa/circe-20180105.1158/shorten hides /ho= me/lg/.emacs.d/elpa/tracking-20171210.2102/shorten

Features:
(sha= dow sort mail-extr emacsbug sendmail misearch multi-isearch
jka-compr fi= nd-func cursor-sensor exwm-wconf winner exwm-misc exwm
exwm-match exwm-i= nput xcb-keysyms exwm-manage exwm-floating xcb-cursor
xcb-render exwm-la= yout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb
xcb-xproto xcb-type= s work desktop frameset gnus-demon nntp gnus-group
gnus-undo gnus-start = gnus-cloud nnimap nnmail mail-source utf7 netrc
gnus-spec gnus-win nnoo = gnus-int gnus-range message rfc822 mml mml-sec
epa epg epg-config mm-dec= ode mm-bodies mm-encode mailabbrev gmm-utils
mailheader gnus nnheader gn= us-util rmail rmail-loaddefs
text-property-search mail-utils autoinsert = cal-menu calendar
cal-loaddefs icomplete saveplace cython-mode company-c= apf company pcase
help-fns radix-tree elpy find-file-in-project ivy dels= el ivy-overlay
ffap windmove diff-mode elpy-shell pyvenv elpy-profile el= py-django
elpy-refactor python tramp-sh tramp tramp-loaddefs trampvertramp-integration tramp-compat parse-time iso8601 time-date ls-lisp
for= mat-spec grep files-x etags fileloop generator xref project cus-edit
cus= -start cus-load wid-edit python-mode info-look which-func imenu shell
pc= omplete hippie-exp flymake-proc flymake warnings thingatpt compile
cc-cm= ds cc-engine cc-vars cc-defs dot-mode gist dired dired-loaddefs
gh-gist = gh-oauth gh-api logito gh-cache pcache gh-auth gh-url url-http
url-auth = mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-gw = nsm rmc puny timezone eieio-base server time
google-translate google-tra= nslate-default-ui google-translate-core-ui
google-translate-core google-= translate-tk url url-proxy url-privacy
url-expand url-methods url-histor= y url-cookie url-domsuf url-util
mailcap whitespace undo-tree diff ido c= omint ansi-color ring avoid
ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs= edmacro kmacro
browse-kill-ring derived cl cl-extra help-mode use-packa= ge
use-package-ensure use-package-delight use-package-diminish
use-pa= ckage-bind-key bind-key easy-mmode use-package-core tex-site
gh-common g= h-profile rx s marshal eieio-compat dash advice info package
easymenu br= owse-url url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-m= acs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt = gv bytecomp byte-compile cconv cl-loaddefs cl-lib
tooltip eldoc electric= uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win te= rm/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulat= ed-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode regi= ster page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar m= ouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame = minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibe= tan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek roma= nian slovak czech european
ethiopic indian cyrillic chinese composite ch= arscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev o= barray
cl-preloaded nadvice loaddefs button faces cus-face macroexp file= s
text-properties overlay sha1 md5 base64 format env code-pages mule
= custom widget hashtable-print-readable backquote threads dbusbind
inotif= y lcms2 dynamic-setting system-font-setting font-render-setting
move-too= lbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory in= formation:
((conses 16 404633 73335)
=C2=A0(symbols 48 34773 1)
= =C2=A0(strings 32 103486 2565)
=C2=A0(string-bytes 1 3713081)
=C2=A0(= vectors 16 48517)
=C2=A0(vector-slots 8 743695 36310)
=C2=A0(floats 8= 263 191)
=C2=A0(intervals 56 1236 239)
=C2=A0(buffers 1000 19)
= =C2=A0(heap 1024 38267 2970))

--
lg
--00000000000021c37c059a872acb--