From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61098: 29.0.60; Confusing behavior of show-paren-mode Date: Fri, 27 Jan 2023 17:03:14 +0100 Message-ID: <877cx8ose0.fsf@zohomail.eu> Reply-To: Rah Guzar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40931"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 29.0.60 To: 61098@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 17:28:20 2023 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 1pLRaN-000AQb-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 17:28:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLRa8-0006si-IT; Fri, 27 Jan 2023 11:28:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLRa7-0006sL-5m for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 11:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLRa6-000876-L3 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 11:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLRa6-0008AV-Ao for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 11:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rah Guzar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jan 2023 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61098 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.167483682531327 (code B ref -1); Fri, 27 Jan 2023 16:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jan 2023 16:27:05 +0000 Original-Received: from localhost ([127.0.0.1]:38324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLRZA-00089C-M3 for submit@debbugs.gnu.org; Fri, 27 Jan 2023 11:27:05 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLRZ7-00088l-4C for submit@debbugs.gnu.org; Fri, 27 Jan 2023 11:27:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLRZ5-0006pD-2m for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 11:26:59 -0500 Original-Received: from sender11-pp-o93.zoho.eu ([31.186.226.251]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLRZ2-000813-HK for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 11:26:58 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1674836812; cv=none; d=zohomail.eu; s=zohoarc; b=CDjjfeZpxO0MsbgJB8jygeTANUUDp0JUqF2nByykY59QTglvwS+1PrBJ+M9pt6GYbUlnEOovqV9d9QmzP6UeckFASfEVibAu6cfApbZKCYoxChNn8GiDqgzAQE1p6ZV79J7IAW4UbR5cTn9EHiimJgQyC5M/wXGCWtCMalVJEHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1674836812; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=0NPg/C/NnYx/H1RFHZLSre38htcU6/jP5UJ8uTea+YE=; b=CyFguq/5ksJRsyKtpxt4SDq/KAtbUHUiTGQGqifwsHjJEW14eQSxyxF/Ca7AISFon3hnYigW7IutoCoMXiTDK9jE6DR5hj9vbdMRaB9iCOMcCWKPoW2eV3CC9Jf78YmLkZLj0CaRghCS5woDZ2xH1N1jNCpD/Ubg/5oim1qTEp0= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1674836812; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=0NPg/C/NnYx/H1RFHZLSre38htcU6/jP5UJ8uTea+YE=; b=ZV1qQ6FyGDrV8Alr93uti3v1xjpDCQfc85IHITkH0E+J5kK8vN3Xnl43jqDhIRCP JSp0gH91F986OA7cVjCccO35Afv105ZY8J++8bpW+Bxg6rGr2L/icLrr5map59TugbP cozHv044jzXOVGOvOSjVruOxhbi9m6gXlGl/C77w= Original-Received: from localhost (emp-88-219.eduroam.uu.se [130.238.88.219]) by mx.zoho.eu with SMTPS id 167483680929928.05806516879727; Fri, 27 Jan 2023 17:26:49 +0100 (CET) X-ZohoMailClient: External Received-SPF: pass client-ip=31.186.226.251; envelope-from=rahguzar@zohomail.eu; helo=sender11-pp-o93.zoho.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254264 Archived-At: Dear Emacs maintainers, After updating to Emacs 29, I saw in NEWS that show-paren-mode is no longer enabled in special-mode buffers. I think that is a welcome change. However in some cases (like reading the elisp manual) it is helpful to have it enabled. My impression after reading the NEWS entry, the manual entry for show-paren-mode and documentation for show-paren-local-mode was that I should be able to able to turn on show-paren-mode buffer locally by M-x show-paren-local-mode RET However this doesn't work and after much confusion I realized that calling show-paren-local-mode has effect only if I customize show-paren-predicate. My (incorrect) impression after reading the documentation was that show-paren-predicate determines only whether show-paren-mode is enabled in a buffer by default but doesn't prohibit the possibility of turning it off. I think a better default would be the equivalent of customizing show-buffer-predicate to t and then using (add-hook 'special-mode-hook (defun my-turn-off-show-paren () (show-paren-local-mode -1))) which is what I have added to my config. This was the result I was expecting from the NEWS and manual entry and I think those should be clarified. In GNU Emacs 29.0.60 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2023-01-22 built on sheep83 System Description: openSUSE Tumbleweed Configured using: 'configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pgtk --with-native-compilation=aot --with-cairo --with-libotf --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-xft --with-xml2 --with-dbus --with-sound --with-json --with-mailutils --with-gnutls --with-tree-sitter --enable-locallisppath=/usr/share/emacs/29.0.60/site-lisp:/usr/share/emacs/site-lisp 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto' LDFLAGS=-Wl,-O2' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: delete-selection-mode: t global-evil-surround-mode: t evil-surround-mode: t eros-mode: t save-place-mode: t global-so-long-mode: t projectile-mode: t which-key-mode: t savehist-mode: t better-jumper-mode: t better-jumper-local-mode: t global-company-mode: t vertico-mode: t all-the-icons-completion-mode: t marginalia-mode: t evil-goggles-mode: t evil-escape-mode: t evil-snipe-override-mode: t evil-snipe-mode: t gcmh-mode: t winner-mode: t smartparens-global-mode: t ws-butler-global-mode: t global-undo-fu-session-mode: t undo-fu-mode: t recentf-mode: t mu4e-search-minor-mode: t global-hl-line-mode: t hl-line-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t dirvish-override-dired-mode: t server-mode: t solaire-global-mode: t solaire-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t windmove-mode: t workroom-mode: t +popup-mode: t +modeline-global-mode: t +modeline-mode: t override-global-mode: t general-override-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t window-divider-mode: t buffer-read-only: t size-indication-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: /home/azeem/.emacs.d/.local/straight/build-29.0.60/citar-embark/citar-embark hides /home/azeem/.emacs.d/.local/straight/build-29.0.60/citar/citar-embark Features: (shadow emacsbug vertico-directory consult-flymake tabify evil-collection-vc-git vc-git evil-collection-diff-mode diff-mode vc-dispatcher char-fold company-ispell company-dabbrev adaptive-wrap spell-fu evil-collection-embark embark-org embark-consult embark ffap network-stream url-http url-gw nsm url-cache url-auth gts-engine-deepl gts-implements gts-faces gts-core guess-language ispell evil-collection-indent jka-compr evil-collection-helpful helpful evil-collection-imenu imenu trace evil-collection-edebug edebug evil-collection-debug debug backtrace info-look evil-collection-info info evil-collection-elisp-refs elisp-refs evil-collection-xref xref help-fns radix-tree evil-collection-help descr-text use-package-lint hide-mode-line company-yasnippet delsel auto-minor-mode disp-table whitespace bicycle hideshow evil-embrace evil-surround embrace expand-region text-mode-expansions the-org-mode-expansions er-basic-expansions expand-region-core expand-region-custom eros highlight-quoted rainbow-delimiters highlight-numbers parent-mode display-line-numbers hl-todo evil-collection-elisp-mode elisp-mode saveplace evil-collection-so-long so-long cursor-sensor vertico-repeat vc-svn projectile lisp-mnt evil-collection-grep grep ibuffer-vc ibuf-ext evil-collection-ibuffer ibuffer ibuffer-loaddefs shr-color sort gnus-cite smiley qp mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check evil-collection-which-key which-key savehist better-jumper company-capf company consult-vertico evil-collection-vertico vertico orderless all-the-icons-completion marginalia evil-goggles pulse color evil-easymotion evil-escape evil-snipe autorevert filenotify gcmh winner smartparens-config smartparens-rst smartparens-markdown smartparens-text smartparens ws-butler undo-fu-session undo-fu desktop frameset evil-collection-consult consult compat-28 recentf tree-widget evil-collection-mu4e mu4e mu4e-org org-element org-persist xdg org-id org-refile avl-tree generator oc-natbib oc-csl citeproc citeproc-itemgetters citeproc-biblatex citeproc-bibtex parsebib ol-bibtex evil-collection-org smartparens-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp org-table ol org-keys citeproc-cite citeproc-subbibs citeproc-sort citeproc-name citeproc-formatters citeproc-number rst citeproc-proc citeproc-disamb citeproc-itemdata citeproc-generic-elements citeproc-macro citeproc-choose citeproc-date citeproc-context citeproc-prange citeproc-style citeproc-locale citeproc-term f f-shortdoc citeproc-rt citeproc-lib citeproc-s s queue dash bibtex oc-biblatex oc org-loaddefs find-func mu4e-main mu4e-view gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win evil-collection-gnus gnus nnheader range evil-collection-calendar cal-menu calendar cal-loaddefs mu4e-headers mu4e-compose mu4e-draft mu4e-actions smtpmail mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr pixel-fill kinsoku url-file svg xml dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source json map url-vars flow-fill mule-util hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-server mu4e-context mu4e-vars mu4e-helpers mu4e-config ido message sendmail mailcap yank-media puny dirvish transient eieio eieio-core evil-collection-dired dired dired-loaddefs rfc822 mml mml-sec password-cache evil-collection-epa epa epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader server dtrt-indent doom-themes-ext-org solaire-mode face-remap doom-earl-grey-theme doom-themes doom-themes-base evil-collection-flymake flymake-proc flymake evil-collection-compile compile html2text ob-core org-cycle org-fold org-fold-core org-compat ob-eval org-version org-macs format-spec ibuf-macs evil-collection-bookmark evil-collection-custom cus-edit cus-load wid-edit evil-collection-comint evil-collection annalist evil evil-integration evil-maps evil-commands reveal flyspell evil-jumps evil-command-window evil-search shell pcomplete comint ansi-osc ansi-color evil-types evil-macros evil-repeat evil-states evil-core comp comp-cstr warnings icons advice evil-common windmove calc calc-loaddefs calc-macs thingatpt rect evil-digraphs evil-vars ring workroom compat compat-macs project byte-opt bookmark text-property-search all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons let-alist derived edmacro kmacro use-package-bind-key bind-key rx doom-editor doom-projects doom-ui easy-mmode doom-keybinds pp cl-extra help-mode use-package-core bytecomp byte-compile general tex-site doom-start doom-modules cl-seq doom doom-lib cl-macs cl-loaddefs cl-lib pcase gv jansson dynamic-modules subr-x rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-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 gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1014671 320177) (symbols 48 61381 35) (strings 32 396235 10485) (string-bytes 1 9425734) (vectors 16 116749) (vector-slots 8 3990496 136139) (floats 8 1721 1576) (intervals 56 9262 358) (buffers 984 40))