From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Francis Wright Newsgroups: gmane.emacs.bugs Subject: bug#30529: 26.0.91; minibuffer errors change standard-output Date: Mon, 19 Feb 2018 16:04:26 +0000 Message-ID: <85po510xv9.fsf@gmail.com> Reply-To: f.j.wright@live.co.uk NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519056223 19743 195.159.176.226 (19 Feb 2018 16:03:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 16:03:43 +0000 (UTC) To: 30529@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 19 17:03:38 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennuH-00032c-B0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 17:03:09 +0100 Original-Received: from localhost ([::1]:50978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennwJ-0005yh-Lp for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 11:05:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennwA-0005xO-GW for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:05:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ennw6-00071p-5d for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:05:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ennw6-000719-1d for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ennw5-00030n-QA for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francis Wright Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2018 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151905628111544 (code B ref -1); Mon, 19 Feb 2018 16:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2018 16:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:51472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennvl-000308-1P for submit@debbugs.gnu.org; Mon, 19 Feb 2018 11:04:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennvj-0002zu-DO for submit@debbugs.gnu.org; Mon, 19 Feb 2018 11:04:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ennvd-0006P9-1K for submit@debbugs.gnu.org; Mon, 19 Feb 2018 11:04:34 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ennvc-0006Ot-U9 for submit@debbugs.gnu.org; Mon, 19 Feb 2018 11:04:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ennvb-0005cm-Dp for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:04:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ennvX-0006KI-B9 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:04:31 -0500 Original-Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:34397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ennvW-0006JH-Sb for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 11:04:27 -0500 Original-Received: by mail-wr0-x233.google.com with SMTP id m5so10179123wrg.1 for ; Mon, 19 Feb 2018 08:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:reply-to:date:message-id:mime-version; bh=RLsqWyPpqQQTz7R+MT8JbNR5C2gL12As1aDQO2IO6Tc=; b=SXg2oMlFfVEbKjuCz2mLaHS1cwZVb+0F5MPQr8nbjLPn9Jb1pJSMR6oZ83UFETP0L4 dzO4Qldz56VYkoM7bxcpnS6kL1rJE/u6Oz+bElF8Y62xH6EIE4HaohnkSApEMzuG1Uqj 8eWnR35/8kImaTySHQBfp19gjju5MQquUEBZiXu9URKedG9tW+/5tYmFItYyge2qmLeM iqEqRk3zx+U2m6J/BCdpxnK9rfagh82Esf3UP41EMnbZgTZoiw18vuP3ojYH3qvYGCF0 BHzCYoGAdNtfKK9qqpEAKwv+IMMmywwboSNjRZnDKJPEH5qDYfVfp7a+HLoCel62rAw9 raPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:reply-to:date:message-id :mime-version; bh=RLsqWyPpqQQTz7R+MT8JbNR5C2gL12As1aDQO2IO6Tc=; b=m3/sGn9jcSPL2xYa46hRUjE+TyKoVK3gqb8FerNAAw44hKJcpzh6qmBn9rKIB8SQ1n nSOcQASwfc622wePHsnzEeka74cKMBZP9LzzLHWd/zqWu0S90fldTz2AbsRPX0CI99No GARKpyW/j2ieNE1PWQ5ZDLp4vAWBuxMP3E1ivVghP5mcNyaNQxUU78bfpr58LWDexwre gl1NYbHVelOKQpx8n/qBhrZd2h+TfYhGNYwjL+vSmR724mkVKCcyz/ign/IvsiRpGrOI h9KOfrhEGfxRZiWN8FSjJkFAuGxRcliJfpFy8wjM0ybD7DAjTnpYMc3kx7JO9OFrsi4V OqDQ== X-Gm-Message-State: APf1xPCWdQKY4WC8CJrh6A07U6kR63nYI4LtEiBxVJnfIpu0npPTRkA1 RWBPDfQJR6kpmB3U3j81zWq7vA== X-Google-Smtp-Source: AH8x227c2cqdg39fc2xpLLHg9tvrmpWZ5XF6Gyd3e1pK/lqkirN59BFtAieRpqh8Tsa/KyPuscdXoA== X-Received: by 10.223.174.194 with SMTP id y60mr7005208wrc.202.1519056265170; Mon, 19 Feb 2018 08:04:25 -0800 (PST) Original-Received: from Monolith (host-92-19-181-9.as13285.net. [92.19.181.9]) by smtp.gmail.com with ESMTPSA id y23sm11738611wra.9.2018.02.19.08.04.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2018 08:04:24 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:143456 Archived-At: A user-error in the minibuffer can change the value of standard-output (to t) within the environment that invoked the minibuffer, whereas I think the minibuffer should rebind standard-output locally and not change its global value. Here is a simple way to illustrate this problem. Evaluate the following: (defun STANDARD-LISP () "Run Standard LISP with input via the minibuffer and output via a buffer." (interactive) (switch-to-buffer (get-buffer-create "*Standard LISP*")) (let (value (standard-output (current-buffer))) (while t (terpri) (princ "Eval: ") (setq value (read)) ;; (read) errors change standard-output to *Messages* buffer, ;; so... ;; (setq standard-output (current-buffer)) (prin1 value) (terpri) (setq value (eval value)) (terpri) (princ "====> ") (princ value) (terpri)))) Run the command STANDARD-LISP and type 'foo RETURN in the minibuffer. The input and output related to 'foo appear correctly in the buffer *Standard LISP*. Now, in the minibuffer, press the down arrow key, thereby generating an end of history user-error, then type 'bar RETURN. The input and output related to 'bar appear incorrectly in the *Messages* buffer. A workaround is to include the assignment (setq standard-output (current-buffer)) that is commented out in the function above. The distributed binary (i.e. not built by me) MS-Windows version of Emacs 25.2 shows the same behaviour. In GNU Emacs 26.0.91 (build 1, x86_64-w64-mingw32) of 2018-01-23 built on MONOLITH Windowing system distributor 'Microsoft Corp.', version 10.0.16299 Recent messages: Loading delsel...done Loading paren...done Starting new Ispell process c:/cygwin64/bin/aspell.exe with british dictionary... For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=/d/emacs/emacs-26.0.91 --without-imagemagick --without-dbus' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t show-paren-mode: t delete-selection-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t horizontal-scroll-bar-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils flyspell ispell imenu tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice paren delsel cus-start cus-load finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair server time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 247714 13662) (symbols 56 24342 1) (miscs 48 90 172) (strings 32 43228 1567) (string-bytes 1 1184180) (vectors 16 40381) (vector-slots 8 774164 15144) (floats 8 70 337) (intervals 56 304 39) (buffers 992 13))