From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Anton S." Newsgroups: gmane.emacs.bugs Subject: bug#24492: 24.5; Emacs unresponsive when sending buffer or region to Octave Date: Wed, 21 Sep 2016 10:11:15 +0200 Message-ID: <687b2dd9-6626-f1a3-0c46-50410a1c9e64@alshu.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1474445725 8411 195.159.176.226 (21 Sep 2016 08:15:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2016 08:15:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: 24492@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 21 10:15:19 2016 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 1bmcgT-0000mp-6b for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2016 10:15:13 +0200 Original-Received: from localhost ([::1]:40621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcgR-0003d6-Cn for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2016 04:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcgK-0003cd-3O for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:15:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmcgI-0007lF-1w for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:15:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcgH-0007l8-UG for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bmcgH-0005GY-Sf for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Anton S." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2016 08:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24492 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.147444569020202 (code B ref -1); Wed, 21 Sep 2016 08:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2016 08:14:50 +0000 Original-Received: from localhost ([127.0.0.1]:58748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmcg5-0005Fm-SR for submit@debbugs.gnu.org; Wed, 21 Sep 2016 04:14:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmcg4-0005FZ-74 for submit@debbugs.gnu.org; Wed, 21 Sep 2016 04:14:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmcfx-0007dB-EQ for submit@debbugs.gnu.org; Wed, 21 Sep 2016 04:14:42 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcfx-0007cH-BJ for submit@debbugs.gnu.org; Wed, 21 Sep 2016 04:14:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcfu-0003bG-F1 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:14:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmcfs-0007aE-LM for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:14:38 -0400 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::5]:50853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmcfs-0007Z8-71 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 04:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1474445674; l=5568; s=domk; d=alshu.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Subject: From:To; bh=1+0UN43kusdfYRP/VnDmcIa3Vj7MH20pFjoRUHF9+xo=; b=nxRs45afVr72dE6rUFJ5EI+aOqrn8A++K5YF31IEkMZJDtFNYjG1vHzb0S27P/hdVhc 2IlZZ69+/r7Y2h6XNNfL0ceeyNdkVBjWPhG9rEOf3yZjq8uexMKJycpQ6fEM8qme/vmnU CD0ZE2lBgZwGI88PJ0RG3lIDELG5UnJZL+o= X-RZG-AUTH: :KGUBe1O8ft+ulmeXaKjJc0U/3ecy8rkwcqgnXuovxiCEzWvJs+EYsVjle/GKd1owdosZnHtoamSp9t/IymgMigGvxgI= X-RZG-CLASS-ID: mo00 Original-Received: from [IPv6:2001:4ca0:0:f250:8286:f2ff:fe06:e1b8] ([2001:4ca0:0:f250:8286:f2ff:fe06:e1b8]) by smtp.strato.de (RZmta 39.2 AUTH) with ESMTPSA id n04d94s8L8BFXvR (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 21 Sep 2016 10:11:15 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:123495 Archived-At: Description Sending a buffer or a region to octave makes emacs unresponsive until the evaluation is complete. When the commands are executed manually in the inferior process buffer, everything works fine. I tried this on two workstations. I have opened an issue for spacemacs and was told to report upstream: https://github.com/syl20bnr/spacemacs/issues/7150 Reproduction guide :beetle: Start Emacs write folling in octave mode: for i=1:10 i, pause(1); end send the buffer to octave with octave-send-buffer or mark everything and do octave-send-region Observed behavior: Emacs is unresponsive for 10 seconds. Then a second buffer window opens with the input lines visible but without output: GNU Octave, version 4.0.3 Copyright (C) 2016 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'. Octave was configured for "x86_64-redhat-linux-gnu". Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful. For more information, visit http://www.octave.org/get-involved.html Read http://www.octave.org/bugs.html to learn how to submit bug reports. For information about changes from previous versions, type 'news'. >> for i=1:10 >> i, > pause(1) > end > >> Doing ether octave-send-buffer or octave-send-region again will also trigger emacs being unresponsive for 10 seconds but this time after 10 seconds the full output is displayed at once: >> for i=1:10 > i, > pause(1) > end i = 1 i = 2 i = 3 i = 4 i = 5 i = 6 i = 7 i = 8 i = 9 i = 10 Expected behavior: Second buffer opens and i is counting up. >> for i=1:10 > i, > pause(1) > end i = 1 i = 2 i = 3 i = 4 i = 5 ... This can already be achieved by copying and yanking the commands manually to the inferior octave process. Best Regards Anton In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11803000 Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-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-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Octave Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Mark set Making completion list... You can run the command `octave-send-buffer' with C-c TAB C-a Mark set [2 times] Making completion list... call-interactively: End of buffer End of buffer [2 times] s-x is undefined Mark set [6 times] Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils compile octave smie comint ansi-color ring vc-git cc-langs cl-loaddefs cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 113885 7021) (symbols 48 21069 0) (miscs 40 68 281) (strings 32 19997 3842) (string-bytes 1 666291) (vectors 16 12696) (vector-slots 8 423400 5738) (floats 8 70 487) (intervals 56 451 13) (buffers 960 14) (heap 1024 51524 973))