From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28687: 25.2; Error using term-handle-ansi-terminal-messages Date: Mon, 16 Oct 2017 19:49:51 -0400 Message-ID: <87lgkahcv4.fsf@users.sourceforge.net> References: <87mv58b6np.fsf@aol.com> <87lgkhayct.fsf@users.sourceforge.net> <877evvpll7.fsf@aol.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508197814 5552 195.159.176.226 (16 Oct 2017 23:50:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 23:50:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 28687@debbugs.gnu.org To: Live System User Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 01:50:10 2017 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 1e4F92-000097-5U for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 01:50:04 +0200 Original-Received: from localhost ([::1]:35649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4F99-000229-JF for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 19:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4F94-000224-38 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 19:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4F90-0001yy-Vs for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 19:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4F90-0001yj-RW for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 19:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4F90-0001RD-Gv for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 19:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2017 23:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 28687-submit@debbugs.gnu.org id=B28687.15081978005515 (code B ref 28687); Mon, 16 Oct 2017 23:50:02 +0000 Original-Received: (at 28687) by debbugs.gnu.org; 16 Oct 2017 23:50:00 +0000 Original-Received: from localhost ([127.0.0.1]:44447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4F8y-0001Qs-H1 for submit@debbugs.gnu.org; Mon, 16 Oct 2017 19:50:00 -0400 Original-Received: from mail-it0-f54.google.com ([209.85.214.54]:46809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4F8x-0001Qc-5J for 28687@debbugs.gnu.org; Mon, 16 Oct 2017 19:49:59 -0400 Original-Received: by mail-it0-f54.google.com with SMTP id f187so363371itb.1 for <28687@debbugs.gnu.org>; Mon, 16 Oct 2017 16:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7cDJH82ySOdrKrCEXMjcBjzee2kiL7mwN/J2lSHXBrE=; b=hgmUtOJ5Pkb8UwSKZntikgb72vGuSLhYp2ic39JXh8JJEioP+BFx7ZX6x4q7QGh3aG Xs8PiaYs36138ZBQpt5y4bmKcSzN+yAatU9fbjIz6p1gD5d3MqCtVicOHbur8fUDq06g miH7XcFwflfOklHosEsLNOEU8FbsnDrUi3IZPqHh58IvCI5ztidGsEfO3VXnOGdkLfWP th4DQRcBXa+Np3fg0d1srOa94k8pLqSbOgmqhnQdFqDk+doi5Z/6vXVGQp9m6i6HcUnW S5uAvGyFKaHDerdOlztzlNBiXGxyuCfA0DXrF+iaxBCe33zJZIkRz7uFoI9m3XbS1+fR nd5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=7cDJH82ySOdrKrCEXMjcBjzee2kiL7mwN/J2lSHXBrE=; b=if9yLjn6kl/YJri/0OLmIlylTj0/tX9xPL5Il568ZjzfuY4XJPl76c9v2KX9hcQm7V /sCbI7ef6ZR/PewG539z+JWqJakOqLj7MAo87qTqRP4/sWkrRQ5q2oz8eQ4jO//DQOtv EDfR6NBpjyOhqfjhirRujniSKt2qpmbLcsvUvVvJoN4XTvP3Ad+VBZs1pAJYfV/zvOlk aH48L36rvL0bQtDReS5lGW7tTF57vOA1V25Tr0GGVAiDAg2Gw4lxjuJkLFrFB72nNRS7 25aUDIkAeu2MvA3d4kSu+YzfYYj4ywCXqeed+eVq2276XM8oNLECfo38Ef+eiU8HKRS7 4JAA== X-Gm-Message-State: AMCzsaX6Wxk8qwgc5EbDvMGD4Af7hIGGR4E0IBDN2qQv5U19dEgGp2b7 nvGW+dc9ZQolOQuhybtSTz+4zQ== X-Google-Smtp-Source: ABhQp+RNJQYULjoREe3YnPpRbB1g7/WE7Qvmt0I/8sgzhTpbfitoO+c9wW/Q3SR4fF72praa2l0Yuw== X-Received: by 10.36.154.66 with SMTP id l63mr3471115ite.118.1508197793295; Mon, 16 Oct 2017 16:49:53 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f12sm201336itc.1.2017.10.16.16.49.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 16:49:52 -0700 (PDT) In-Reply-To: <877evvpll7.fsf@aol.com> (Live System User's message of "Mon, 16 Oct 2017 04:01:56 -0400") 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:138560 Archived-At: Live System User writes: > Noam Postavsky writes: > >> Do you mean you have defined some new function? Please post a complete >> example, not just fragments. > > No: I justed added those lines to the existing > `term-handle-ansi-terminal-messages`function: > > (defun term-handle-ansi-terminal-messages (message) [...] > ((= command-code ?e) > (save-excursion > (find-file-other-window argument)) You have a missing paren here, is that a typo introduced when posting, or is that what you ran? And could you elaborate on the steps you take after that? You said something about an alias, but I couldn't tell if it's relevant or not. >> >>> Most of the time thi works. >>> >>> When it doesn't work as expected, >> >> How often does it fail? > > Enough to notice buy no enough to notice a pattern. So how many times do I do "it" until I should expect to see a failure? 10? 100? 1000? And what is "it" exactly? >>> Debugger entered--Lisp error: (void-variable term-pending-delete-marker) >>> term-emulate-terminal(# "\nAnSiTe test\nAnSiTu liveuser\nAnSiTc /home/liveuser\nAnSiTh localhost.localdomain\n") >>> >> >> Seems like you might be running in the wrong buffer. >> term-pending-delete-marker is only defined buffer-locally. > > Since I use `find-file-other-window`, i.e. another buffer, > why don't I get that error every time that ANSI code is > processed instead of only occasionally? > > When does `term-pending-delete-marker`kick in? > > Shouldn't it only be a factor as I am typing chacaters and/or > interacting with the ansi-term? It's referenced in term-emulate-terminal which is a process filter, so it could be significant during output too.