From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73872: 30.0.91; emacs-lisp-mode-syntax-table active when calling `describe-variable' on variable with textually large value. Date: Sat, 02 Nov 2024 13:55:15 +0200 Message-ID: <86wmhlyhng.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73872@debbugs.gnu.org To: Sigurd Dam Sonniks , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 02 12:56:28 2024 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 1t7Cjz-000ACk-Tv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Nov 2024 12:56:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7Cji-00050s-N1; Sat, 02 Nov 2024 07:56:10 -0400 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 1t7Cjb-00050V-9a for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2024 07:56:07 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7Cja-0002ZD-WD for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2024 07:56:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=BtxAdGW4q+OEyBcTxLz9VTCC8KMu4NjV6/Sbpwkb10w=; b=kIxk07HkT0Vt3QYQNFIcjUceTdLs16TYV3aXwsdHcW3+7BUs+hQjZYA1nM2DMg1VHMkIa4BfISfv7XLhOX0Csp8rXleLHMTgGhKf3pCvSSgEtSzDEKPzHUgHXdAF5/2GbHZmNP234kcCnp8eAzSAEwe1mTofHA8BPDTURhD2ICDbHQFmnVZVOLpQU4L+q1RfCEJTuByoyDm/EbAo0W8NFmH5JFFF6tc3EoB8batVkcCQODOeeFW/Gjl2eOXKKlTfhP537k7+GbEt+3gPFaOMzgp1A5bueX7r2fYRJTumtPxiqDl7vRX7bhNvqs3flkitlw8AjtfC4XDuHI2pnf18YA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7Cja-0000FK-Kq for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2024 07:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Nov 2024 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73872 X-GNU-PR-Package: emacs Original-Received: via spool by 73872-submit@debbugs.gnu.org id=B73872.1730548530919 (code B ref 73872); Sat, 02 Nov 2024 11:56:02 +0000 Original-Received: (at 73872) by debbugs.gnu.org; 2 Nov 2024 11:55:30 +0000 Original-Received: from localhost ([127.0.0.1]:53373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7Cj3-0000El-Hn for submit@debbugs.gnu.org; Sat, 02 Nov 2024 07:55:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7Cj1-0000Eb-Kn for 73872@debbugs.gnu.org; Sat, 02 Nov 2024 07:55:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7Civ-0002Wn-6w; Sat, 02 Nov 2024 07:55:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BtxAdGW4q+OEyBcTxLz9VTCC8KMu4NjV6/Sbpwkb10w=; b=BCi4e3lBNvy6 deOiWrPOM9eET5kYReTCOitNYM5eaxp9cWZH+sJJnH8lL7andG7TU3/k2oCKfYR7o2oJ364lPV2Kv hmD/e4n0ip7SGImHUn1FOG99bUufMbZBScUNrEFlRm7ZBplhwKVIpvsooxYfJZT8Lq77raAJqW5Tn YNUJoBUUygK3p3zuqSg8ypPHSkuMEnFNK9cpL3bivdzHHivC7KEKHsJ9eKxRQOF69MLePkKGuW2fy T/p9hVeSpawfoIVCIE+ZILtV80gPEsZUqQ2ayq/Wm1AWlOhbGapTxcTlCRXoMUC5Axb4q9WD+UUGc Gs0TEpQBYl4WpBsKGgnT4Q==; In-Reply-To: (message from Sigurd Dam Sonniks on Fri, 18 Oct 2024 22:14:21 +0000) 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:294739 Archived-At: > From: Sigurd Dam Sonniks > Date: Fri, 18 Oct 2024 22:14:21 +0000 > > When you call `describle-variable' on a variable with a value that's > large enough that it's moved to the end of the help buffer, the syntax > table is changed to `emacs-lisp-mode-syntax-table' but never changed > back. There is a very easy fix where you just set it back to > `help-mode-syntax-table' at the end of the enclosing > `with-current-buffer', but I guess you could also switch to a > temporary buffer instead. Below is the relevant code snippet with the > first suggested fix applied. Shouldn't the syntax table be left at that value until the buffer is reused for another variable/function? Otherwise, why do we set the syntax table to this value? Stefan, do you know the reason?