From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#34318: 26.1.90; Strange behavior of two line message with running shell Date: Tue, 19 Feb 2019 10:00:47 +0100 Message-ID: <5C6BC5BF.1010203@gmx.at> References: <5C5889D7.5020102@gmx.at> <874l9j9oyq.fsf@igel.home> <5C594AF8.2040107@gmx.at> <5C5963BE.6080800@gmx.at> <5C5D52AC.4060501@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269325"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34318@debbugs.gnu.org, Andreas Schwab To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 10:02:18 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw1IA-0017sO-D7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 10:02:18 +0100 Original-Received: from localhost ([127.0.0.1]:44532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw1I9-0001HL-9R for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 04:02:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw1Hx-0001GU-AM for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 04:02:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw1Hw-0005i7-3q for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 04:02:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gw1Hv-0005hS-PR for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 04:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gw1Hu-0003Kn-0a for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 04:02:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2019 09:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34318 X-GNU-PR-Package: emacs Original-Received: via spool by 34318-submit@debbugs.gnu.org id=B34318.155056690712785 (code B ref 34318); Tue, 19 Feb 2019 09:02:01 +0000 Original-Received: (at 34318) by debbugs.gnu.org; 19 Feb 2019 09:01:47 +0000 Original-Received: from localhost ([127.0.0.1]:53855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw1Hf-0003K7-Cg for submit@debbugs.gnu.org; Tue, 19 Feb 2019 04:01:47 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:44163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw1He-0003Jp-Da; Tue, 19 Feb 2019 04:01:46 -0500 Original-Received: from [192.168.1.101] ([213.162.73.134]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LcSAg-1hMrVg37As-00jqr2; Tue, 19 Feb 2019 10:00:54 +0100 In-Reply-To: X-Provags-ID: V03:K1:CGIDyC9xCk30K422G5eqGTry2y8w+bwTYrFeYOlhKo/2lgecuZ3 hvE8ca47LGCEzJ7rt807meT9sSRk7x3II5fISUaNcxJiB8tO1uDLj0Kcrh1WGshNMRZh9QI 3lJVX7FE3YfYX7iYXlPl4bn6ncjfAt20moK0K2EoRhf/R2p5NcrxM4cM0j9Lw/CDHutUaqH kJ6ceceov6y4UQbCnd+Og== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZuSy7eW6lY4=:QAp1gtsdzbjoDnVTS4ZKH2 BByJ8D/MVE0ZmSXeN88bh70K/HFXGbu+8ikzSAY9QLkZRphQRlgiY7DnHfsbov4VePfC8rVhC hAlspeEQNesZExW4dvwYmSdwH537os6TBj2ZtvGMDFIJpVn8gjzDiF+KPF5Cv5td7fV5fHBO7 nIotEDJtV3cnhMXtn1RZNN/yZgrAyUpotegTGd9MIzbDRIcn8HTwAE7U8s05xMxS8wUVCR9mX AGFSk+hHFW9jEvmI7z2A0S3uNeZYj+lCH8GuzC4w2uEeGlqRfBR/R+rb+rE/3PAEpsv53djao bCoi1cHYClNoUV8bwaYwK7Wj//KxOLibJuwea3WDNZ7jMt89P4aEly4HlAUBtAge/1cO0YZT2 +TqGAX2oRTBe4xR42z0Py+SslaZufd6dGzSFZb2FOj5d3WLhpfSpHew7DmfBkYSeLCmqu5hF9 c9W7XzWOnEf97kBhxG2L1D7Q15Gs1LlD9JqCkM8rzpA6X3Wemdnm0v2DmpqNhzHaBwEbXnTXz T6UT1+lG7X8qVwbTePVXk9K5p89YizO0ZBxfOQFvxZUqL/ypc9UO2B2Vjld5WHWNK+8uYM/ud mX8NEB140GNGvTddVR3iPCNl6BcxnBoEytzyMnXQd1aISNkPJa0Bz4tKKztgniR8WFJJELuGR 86xDkDw9ccGhRjbs/bu/TJTOerJioOVr8YxUhflNy48eOXW2LilY3BM6ymyE7+IY6rRXLOoDc 1EIC2ZTeu8Apst4s9xel0vkDiaRqn+CW4Wi7x48n0t11peniade23PYAOX0EcokQMrhhEyAz 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:155546 Archived-At: fixed 34318 26.2 quit >> Don't call swap_in_symval_forwarding since the currently swapped >> binding is never one we've modified. > > Indeed, good spotting. I installed the patch below which mostly rever= ts > this part of the commit. Thanks for the fix. > +(ert-deftest data-tests-make-local-forwarded-var () ;bug#34318 > + ;; Boy, this bug is tricky to trigger. You need to: > + ;; - call make-local-variable on a forwarded var (i.e. one that > + ;; has a corresponding C var linked via DEFVAR_(LISP|INT|BOOL)) > + ;; - cause the C code to modify this variable from the C side of th= e > + ;; forwarding, but this needs to happen before the var is accesse= d > + ;; from the Lisp side and before we switch to another buffer. > + ;; The trigger in bug#34318 doesn't exist any more because the C co= de has > + ;; changes. I suppose you refer to Paul's "Don=E2=80=99t set print-escape-newlines in= the minibuffer" here. Right? > Instead I found the trigger below. > + (with-temp-buffer > + (setq last-coding-system-used 'bug34318) > + (make-local-variable 'last-coding-system-used) > + ;; This should set last-coding-system-used to `no-conversion'. > + (decode-coding-string "hello" nil) > + (should (equal (list last-coding-system-used > + (default-value 'last-coding-system-used)) > + '(no-conversion bug34318))))) > + > ;;; data-tests.el ends here martin, closing this bug