From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: a.c.kalker@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#20549: 24.5; tcl.el: sending region to tcl process produces error Date: Mon, 11 May 2015 19:52:22 +0200 Message-ID: <87egmnvw6h.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431366809 5610 80.91.229.3 (11 May 2015 17:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 17:53:29 +0000 (UTC) To: 20549@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 11 19:53:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrrtF-0002hh-MC for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 May 2015 19:53:17 +0200 Original-Received: from localhost ([::1]:38972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrrtF-0003hH-4m for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 May 2015 13:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrrt5-0003Zf-9e for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yrrt1-0001D3-F0 for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:53:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrrt1-0001Cz-BN for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yrrt0-0005k8-No for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:53:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: a.c.kalker@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 May 2015 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20549 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.143136676422047 (code B ref -1); Mon, 11 May 2015 17:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 May 2015 17:52:44 +0000 Original-Received: from localhost ([127.0.0.1]:41210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yrrsh-0005jW-VY for submit@debbugs.gnu.org; Mon, 11 May 2015 13:52:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41438) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yrrsf-0005jG-9r for submit@debbugs.gnu.org; Mon, 11 May 2015 13:52:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrrsV-0000rZ-Gs for submit@debbugs.gnu.org; Mon, 11 May 2015 13:52:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrrsV-0000rJ-E7 for submit@debbugs.gnu.org; Mon, 11 May 2015 13:52:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrrsT-0003B7-QM for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:52:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrrsP-0000oT-Vz for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:52:29 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:33233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrrsP-0000o6-MK for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 13:52:25 -0400 Original-Received: by wief7 with SMTP id f7so92127356wie.0 for ; Mon, 11 May 2015 10:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=+5k+3+r+tC931+tQ0ZSVzNt5s/yk7KNKY+ZapwNYHnE=; b=ycfoIOqsdMf4N3G/iUUMBwwFnoORu60uHRj2ppdwU+U0x6xfVTlXi16sccsO/yxHEQ KjJCdoVXGhJkWjbEtCdFxAcoMfJ2O+JzA/mMdKPmpFOXkUOjHK9109saqwRp9IypQSxn LMbQLPfyxPyvbRZeRDwanRpkWtuPhAmKdUbQYcuZ+iwpDM1Ysk46E4Y1JsLl5N3YPJiu fIb2AvPmeQHsVE5nLnMgT+mmZrnJ0nK2D1m2ZQAvICGlWyo6LqsiN0qMvO6yzYs7ZcBe Qie6VeabnJF0rZtaeAVJDuXVx/7TXQIr0UPXdBN/LiNx6xQvZFF+nUJ4ShbexlBHWukg E/aw== X-Received: by 10.194.87.38 with SMTP id u6mr23136135wjz.24.1431366744108; Mon, 11 May 2015 10:52:24 -0700 (PDT) Original-Received: from miki-desktop (524B772B.cm-4-4b.dynamic.ziggo.nl. [82.75.119.43]) by mx.google.com with ESMTPSA id ei8sm23882141wjd.32.2015.05.11.10.52.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 10:52:23 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102675 Archived-At: Steps to reproduce: - Visit a Tcl boffer - Start a new Tcl process using C-c C-t - Select a region containing one or more Tcl commands - Try and send it to the Tcl process using C-c C-x Actual results: - Emacs reports an error: "error in process filter: Text is read-only" - No Tcl commands are sent to the Tcl process - Further interaction with the Tcl process buffer becomes erratic Expected results: - The region should be sent to the Tcl process, and any commands should be executed. - The Tcl process buffer should interact normally, accepting new manually entered commands and displaying their results. >From some experimenting and some helpful discussion on IRC, I found that a very likely cause of the problem is the way in which Tcl mode tries to erase the prompt in a process buffer. Apparently it doesn't handle read-only prompts correctly. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11701000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Tcl Minor modes in effect: delete-selection-mode: t yas-global-mode: t yas-minor-mode: t show-paren-mode: t icomplete-mode: t google-this-mode: t global-whitespace-mode: t global-flycheck-mode: t flycheck-mode: t global-company-mode: t company-mode: t cua-mode: t server-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent messages: [yas] Loading for `emacs-lisp-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/miki/.emacs.d/elpa/yasnippet-20150415.244/snippets/emacs-lisp-mode) (quote emacs-lisp-mode)))! [yas] Loading compiled snippets from /home/miki/.emacs.d/elpa/yasnippet-20150415.244/snippets/emacs-lisp-mode [yas] Loading for `prog-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/miki/.emacs.d/elpa/yasnippet-20150415.244/snippets/prog-mode) (quote prog-mode)))! [yas] Loading compiled snippets from /home/miki/.emacs.d/elpa/yasnippet-20150415.244/snippets/prog-mode Loading /home/miki/.emacs.d/elpa/yasnippet-20150415.244/snippets/prog-mode/.yas-setup...done For information about GNU Emacs and the GNU system, type C-h C-a. test.tcl has auto save data; consider M-x recover-this-file C-c C-c is undefined [2 times] Mark set error in process filter: Text is read-only [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna cl-macs rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail tcl comint ansi-color mule-util hideshow eldoc elisp-slime-nav hl-sexp .emacs saveplace imenu company-files company-oddmuse company-keywords company-etags etags ring company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company-irony irony-completion irony-snippet company-tern s ucs-normalize dash-functional tern url-http tls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw json tsdh-dark-theme delsel yasnippet cl gv paren icomplete google-this url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap gnus gnus-ems nnheader mail-utils wid-edit whitespace flycheck-irony irony-diagnostics irony flycheck find-func rx subr-x company cua-base cus-start cus-load edmacro kmacro ix grapnel help-mode easy-mmode dired+ image-dired format-spec image-file dired-x dired-aux dired pkg-info-autoloads queue-autoloads info easymenu slime-autoloads sly-autoloads package epg-config server ffap thingatpt url-parse auth-source eieio eieio-core gnus-util mm-util mail-prsvr password-cache url-vars jka-compr auto-compile byte-opt advice help-fns packed dash bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv 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 307146 13122) (symbols 48 30569 0) (miscs 40 107 134) (strings 32 49936 10483) (string-bytes 1 1483638) (vectors 16 44446) (vector-slots 8 797314 12468) (floats 8 417 615) (intervals 56 277 67) (buffers 960 15) (heap 1024 39504 4017))