From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kyle Meyer Newsgroups: gmane.emacs.bugs Subject: bug#48718: 27.2; Mode-line still displays ~Active after LaTex embedded calc has ended Date: Fri, 28 May 2021 12:42:26 -0400 Message-ID: <87tummkdxp.fsf@kyleam.com> References: <87im32rhks.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48718@debbugs.gnu.org To: Colin Baxter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 18:43:24 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 1lmfa0-0001Au-Af for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 18:43:24 +0200 Original-Received: from localhost ([::1]:42310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmfZz-0008Kc-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 12:43:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmfZe-0008K5-Qc for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 12:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmfZd-0000az-Ml for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 12:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmfZd-0007V1-J0 for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 12:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2021 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48718 X-GNU-PR-Package: emacs Original-Received: via spool by 48718-submit@debbugs.gnu.org id=B48718.162222015528783 (code B ref 48718); Fri, 28 May 2021 16:43:01 +0000 Original-Received: (at 48718) by debbugs.gnu.org; 28 May 2021 16:42:35 +0000 Original-Received: from localhost ([127.0.0.1]:55247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmfZC-0007UB-Qg for submit@debbugs.gnu.org; Fri, 28 May 2021 12:42:35 -0400 Original-Received: from out1.migadu.com ([91.121.223.63]:57317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmfZ9-0007Ty-OG for 48718@debbugs.gnu.org; Fri, 28 May 2021 12:42:34 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1622220149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V8Pdyvm3xnZEc4MpLvrUZA/RwZHzXPXEXqGzy/l5y3Q=; b=rFQ13M5h/yQeG00XHSYxMja7UG39zSKz94lem0AAYodsr3Owdl/jU3O1A6AqyubuzEdjj7 ryG3h4eU0aM2YaOWXOYK7gQJNmlDz41++cECMDKLpGVygcL6YoI1BwVz8r0SrNHlh/izca 1Iy4ePWFBr4r/uMUY9pDOkALOtb1IwQ6x5RE217DTDe0KMibO3AT4z11yCsk+24FHkdlCo rqSXe5RS2yOwVj3DCfv8D4TMhHEsGjmjNRY8+RTn6okPj3Tqp470J5LoQ6n9LBQNomA+Qf jTpiYrZhWPJjqa141nNcgF1/UZw5uFqc/vdETWegDvTt9g6kfWXuksAHW0otoQ== In-Reply-To: <87im32rhks.fsf@yandex.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com 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:207468 Archived-At: Colin Baxter writes: > 1. emacs -Q > 2. C-x C-f test.tex > 3. Mode line says "LaTeX" > 3. In buffer enter $2*2$ > 4. With point in expression do C-x * e. > 8. $2*2$ changes to $4$. > 9. Echo area gives message "Embedded Calc mode enabled; Give this > command again to return to normal". Mode-line says "LaTeX ~Active". > 10. Give command C-x * e again. > 11. Buffer returns to normal with message "Back to LaTeX mode". > 12. But mode-line still displays "LaTeX ~Active", and does so until the > buffer is killed. As far as I understand, that's by design. It indicates that formulas are still active in the buffer. >From (info "(calc)Assignments in Embedded Mode"): [...] Calc puts =E2=80=98~Active=E2=80=99 in the mode line if some, but p= robably not all, formulas in the buffer are active. This happens if you activate a few formulas one at a time but never use =E2=80=98C-x * a=E2=80=99, or = if you used =E2=80=98C-x * a=E2=80=99 but then Calc had to deactivate a formula becau= se it lost track of it. If neither of these symbols appears in the mode line, no embedded formulas are active in the buffer (e.g., before Embedded mode has been used, or after a =E2=80=98M-- C-x * a=E2=80=99). You should see an entry for the buffer in the variable calc-embedded-active. Invoking the keybinding mentioned in the last sentence quoted above (triggering calc-embedded-forget) should remove the buffer's entry from calc-embedded-active and "~Active" from the mode line.