From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Listopadov Newsgroups: gmane.emacs.bugs Subject: bug#52896: 29.0.50; transient-mark-mode is set to a lot of 'only syms Date: Thu, 30 Dec 2021 12:53:08 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3174"; mail-complaints-to="usenet@ciao.gmane.io" To: 52896@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 30 10:54:11 2021 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 1n2s8Q-0000g7-Je for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 10:54:10 +0100 Original-Received: from localhost ([::1]:42956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2s8O-0002V3-Q8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 04:54:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2s8I-0002Uv-GH for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 04:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2s8I-0007lz-3h for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 04:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2s8I-0000XX-2n for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 04:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Listopadov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Dec 2021 09:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52896 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.16408580312051 (code B ref -1); Thu, 30 Dec 2021 09:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Dec 2021 09:53:51 +0000 Original-Received: from localhost ([127.0.0.1]:51432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2s86-0000X0-RY for submit@debbugs.gnu.org; Thu, 30 Dec 2021 04:53:51 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2s85-0000Wt-It for submit@debbugs.gnu.org; Thu, 30 Dec 2021 04:53:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2s84-0002Ui-VX for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 04:53:49 -0500 Original-Received: from [2a00:1450:4864:20::52b] (port=33478 helo=mail-ed1-x52b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2s83-0007k3-3w for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 04:53:48 -0500 Original-Received: by mail-ed1-x52b.google.com with SMTP id m21so97291127edc.0 for ; Thu, 30 Dec 2021 01:53:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=aq8XQmEet5oNSJl234eo87pTYEgh8jUHLNkjP6eF3CY=; b=ManU95F4oRKJdhY4xoxuoBxF6hzju+S5Iq+dSNpbY2jW01UPbKWjXLH2hw1roKj/Rt J8ienCROqy6bvKztCA/ypImiqNnNStbph9l9oy5G31eS1mMAQQpD4gG+cy1Sr+mxjUXy rpJ91TxN0X7xiK6bmT4gHAMMTPPYserBvfeLMwMZL0ZwWFEo5DPTjH5Dpxs5l16btTXV TZYjZUO9gyPJDeO5fY1Aw7vTuaaPrwrv7MVC0EZCdqeqWu9hIZi+ssSBNoH5O3GdFSwd iPMoMMl9qxnKTF6V22wwY22XMEiAPORRgCS4cqG6trPA0eSyDF6JmrdEJDox0BVE9Cil s5Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aq8XQmEet5oNSJl234eo87pTYEgh8jUHLNkjP6eF3CY=; b=1yiPrvpjwKq50v4RfyYhWGWuZNsa3248TQ4Pz+HVsa1vQmqHAOVM1rBwDCowx8JiP5 N5nVngZ9u9sMtxKM8NJYMYQv3uBgOvYmsVpsvxQPTHfxDdTeWt2inRDQKz6DeO4Mk6i0 FHgw60i0sCih2L51ODt2RRAKPYirk/YKu/Rf/jkDbrx+lMwRN7msBZvXuH7xVDOETiLD /C4DbbBqvUXaOC8GanP2YuG3m1nFjMxI2NXjH2QQjHaVjAQVUB7mfKKOf/jwV1K5+ffP fC5xBtg5noS3qvab+oOjgxU/SDkykx8InvbZeY27s3BM1mtHlFf+Zwrem3oRsxFJYw0r /nvw== X-Gm-Message-State: AOAM530W/1YLXyLSAHUEwrLSL6tiFkLKWwrcWVfDi2e88h4gkPP1u7Fx 4LwTH4w+utOOaRCYX4LKQF3IC2pm9ODFqBjnLNERmbOI/eA= X-Google-Smtp-Source: ABdhPJwWTu9y11ouBGa5l+PxZav9ePrZf0gtHqYgQZ+6kNLw7cLUgeaomyhaLcFJkR84PNFQXSvN0n2+oWbQ0dTHZZY= X-Received: by 2002:a17:906:7944:: with SMTP id l4mr24691167ejo.598.1640858024272; Thu, 30 Dec 2021 01:53:44 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=andreyorst@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:223421 Archived-At: I've installed the expand-region.el package and noticed that transient mark mode started misbehaving. I'm using Emacs with `transient-mark-mode' disabled, and enable it occasionally via `C-SPC C-SPC' when needed. After using `er/expand-region' function I've noticed that `C-SPC C-SPC' doesn't highlight the region. Upon further inspection I've noticed that the `transient-mark-mode' variable is set to `(only only only only only ... only) with a total of 26 `only' symbols. Symbols disappear one by one when I move the point or invoke other commands, so eventually `C-SPC C-SPC' starts working again. I've added a watcher to the `transient-mark-mode' variable and upon first activation of expand region I see this: transient-mark-mode (only) set # transient-mark-mode (only only) set # transient-mark-mode (only only only) set # transient-mark-mode (only only only only) set # Type = to expand again, - to contract, 0 to reset Upon further investigation I've found that this happens inside the `exchange-point-and-mark' function. I've added a message right before `cons' call to confirm that: transient-mark-mode (only) set # exchange-point-and-mark transient-mark-mode (only only) set # exchange-point-and-mark transient-mark-mode (only only only) set # exchange-point-and-mark transient-mark-mode (only only only only) set # Type = to expand again, - to contract, 0 to reset The function explicitly checks if ``(eq (car-safe transient-mark-mode) 'only)'' is true and then conses `only' to the `transient-mark-mode', causing it to grow. I'm not sure what is the intention here, but this makes it harder using `C-SPC C-SPC` to temporarily activate the transient mark mode. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-12-29 built on toolbox Repository revision: 3fc8032a1aac535e8f6ba03547bd9fa2b0880193 Repository branch: master System Description: Fedora Linux 35 (Workstation Edition) Configured using: 'configure --with-native-compilation --with-pgtk --prefix=/home/alist/.local' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 indent-tabs-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail comp comp-cstr cl-extra help-mode pcase org-macs cap-words superword subword ruby-mode smie rx python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 ls-lisp format-spec rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-enc xmltok html-mode-expansions sgml-mode facemenu dom cc-cmds cc-engine cc-vars cc-defs er-basic-expansions thingatpt expand-region-core advice expand-region-custom warnings cl compile comint ansi-color ring autoload radix-tree lisp-mnt tar-mode arc-mode archive-mode mm-archive message yank-media dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth cus-edit pp cus-start cus-load wid-edit finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 193794 12810) (symbols 48 17181 1) (strings 32 60612 2225) (string-bytes 1 2133315) (vectors 16 30994) (vector-slots 8 449511 20505) (floats 8 76 163) (intervals 56 595 0) (buffers 992 15))