From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#28700: 25.2; Cannot kill Eshell buffer Date: Sun, 15 Oct 2017 18:02:54 -0400 Message-ID: <87d15ooyr5.fsf@aol.com> References: <87fuazb5hb.fsf@aol.com> <87y3orceiq.fsf@users.sourceforge.net> <874lrfatm6.fsf@aol.com> <87zi979bxb.fsf@aol.com> <87tvzeahuz.fsf@aol.com> <87o9pmae0q.fsf@aol.com> <87efqia7fv.fsf@aol.com> <87vajucw4a.fsf@users.sourceforge.net> <87o9p8p6sn.fsf@aol.com> <87bml88a55.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508105068 16580 195.159.176.226 (15 Oct 2017 22:04:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2017 22:04:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 28700@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 00:04:20 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 1e3r0v-0001eA-UY for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 00:04:06 +0200 Original-Received: from localhost ([::1]:58552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3r13-0006Tv-78 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Oct 2017 18:04:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3r0w-0006Te-E1 for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 18:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3r0s-0007j5-CV for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 18:04:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3r0s-0007iu-7y for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 18:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3r0r-0004sN-VI for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 18:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Oct 2017 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28700 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 28700-submit@debbugs.gnu.org id=B28700.150810498718654 (code B ref 28700); Sun, 15 Oct 2017 22:04:01 +0000 Original-Received: (at 28700) by debbugs.gnu.org; 15 Oct 2017 22:03:07 +0000 Original-Received: from localhost ([127.0.0.1]:42042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3qzy-0004qo-VE for submit@debbugs.gnu.org; Sun, 15 Oct 2017 18:03:07 -0400 Original-Received: from omr-a002e.mx.aol.com ([204.29.186.56]:40094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3qzx-0004qK-E2 for 28700@debbugs.gnu.org; Sun, 15 Oct 2017 18:03:05 -0400 Original-Received: from mtaout-mac01.mx.aol.com (mtaout-mac01.mx.aol.com [172.26.222.205]) by omr-a002e.mx.aol.com (Outbound Mail Relay) with ESMTP id BEF9B38000A4; Sun, 15 Oct 2017 18:02:59 -0400 (EDT) Original-Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mac01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 2010F38000087; Sun, 15 Oct 2017 18:02:59 -0400 (EDT) In-Reply-To: <87bml88a55.fsf@users.sourceforge.net> (Noam Postavsky's message of "Sun, 15 Oct 2017 15:48:54 -0400") x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1508104979; bh=/cKw2N70F7pVxntyCjNLW+9Zqw1wt6jMSkw7LWNLz2o=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=rBfqUrx8Nn2+RIJuqdt9fI4Qj50ArkZscj8er98LQdoBG4HDka3LBwIQHpW+MxOcw s6kODkhNt8t45JaDQokM+oGKxHDFtc7BZn7bq46Qs4fL2z7VPn0bRWt0QL+SxAtAif cfz9+7AMWMIRIzJXPhHsdJqiRdgxsmU9U/86BBp0= x-aol-sid: 3039ac1adecd59e3db13708e X-AOL-IP: 73.16.70.190 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:138481 Archived-At: Noam Postavsky writes: > Live System User writes: > >> Here is some GDB info. > >> (gdb) bt >> #0 text_read_only (propval=propval@entry=XIL(0xb010)) >> at ../../src/textprop.c:71 > >> Lisp Backtrace: >> "eshell-write-history" (0x5642bf38) >> "run-hooks" (0x5642c020) >> "eshell-kill-buffer-function" (0x5642c200) >> "kill-buffer" (0x5642c400) >> "funcall-interactively" (0x5642c3f8) >> "call-interactively" (0x5642c660) >> "command-execute" (0x5642c808) > > Thanks, my guess is you have some string with a read-only property in > eshell history (probably introduced by copying from another buffer), and > this is tripping up eshell-write-history. > > Can you post the result of > > M-x pp-eval-expression RET eshell-history-ring RET > > If my guess is correct there should be some strings of the form > > #("some command" 0 11 (read-only t)) Yes. So how do I deal wi'th? Thanks. (6 128 . [#("ssh localhost ps -efw | grep ssh" 0 1 (rear-nonsticky (arg-begin arg-end) arg-begin t) 3 4 (rear-nonsticky (arg-end arg-begin) arg-end t) 4 5 (rear-nonsticky (arg-begin arg-end) arg-begin t) 13 14 (rear-nonsticky (arg-end arg-begin) arg-end t) 14 15 (rear-nonsticky (arg-begin arg-end) arg-begin t) 16 17 (rear-nonsticky (arg-end arg-begin) arg-end t) 17 18 (rear-nonsticky (arg-begin arg-end) arg-begin t) 21 22 (rear-nonsticky (arg-end arg-begin) arg-end t) 22 23 (rear-nonsticky (arg-begin arg-end) arg-begin t) 23 24 (rear-nonsticky (arg-end arg-begin) arg-end t) 24 25 (rear-nonsticky (arg-begin arg-end) arg-begin t) 28 29 (rear-nonsticky (arg-end arg-begin) arg-end t) 29 30 (rear-nonsticky (arg-begin arg-end) arg-begin t) 31 32 (rear-nonsticky (arg-end arg-begin) arg-end t)) #("ssh localhost ps -efw | grep ssh" 0 1 (rear-nonsticky (arg-begin arg-end) arg-begin t) 3 4 (rear-nonsticky (arg-end arg-begin) arg-end t) 4 5 (rear-nonsticky (arg-begin arg-end) arg-begin t) 13 14 (rear-nonsticky (arg-end arg-begin) arg-end t) 14 15 (rear-nonsticky (arg-begin arg-end) arg-begin t) 16 17 (rear-nonsticky (arg-end arg-begin) arg-end t) 17 18 (rear-nonsticky (arg-begin arg-end) arg-begin t) 21 22 (rear-nonsticky (arg-end arg-begin) arg-end t) 22 23 (rear-nonsticky (arg-begin arg-end) arg-begin t) 23 24 (rear-nonsticky (arg-end arg-begin) arg-end t) 24 25 (rear-nonsticky (arg-begin arg-end) arg-begin t) 28 29 (rear-nonsticky (arg-end arg-begin) arg-end t) 29 30 (rear-nonsticky (arg-begin arg-end) arg-begin t) 31 32 (rear-nonsticky (arg-end arg-begin) arg-end t)) #("ssh localhost ps" 0 1 (rear-nonsticky (arg-begin arg-end) arg-begin t) 3 4 (rear-nonsticky (arg-end arg-begin) arg-end t) 4 5 (rear-nonsticky (arg-begin arg-end) arg-begin t) 13 14 (rear-nonsticky (arg-end arg-begin) arg-end t) 14 15 (rear-nonsticky (arg-begin arg-end) arg-begin t) 15 16 (rear-nonsticky (arg-end arg-begin) arg-end t)) #("ssh localhost " 0 1 (rear-nonsticky (arg-begin arg-end) arg-begin t) 3 4 (rear-nonsticky (arg-end arg-begin) arg-end t) 4 5 (rear-nonsticky (arg-begin arg-end) arg-begin t) 13 14 (rear-nonsticky (arg-end arg-begin) arg-end t)) #("~/" 0 1 (rear-nonsticky (arg-begin arg-end) read-only t arg-begin t) 1 2 (rear-nonsticky (arg-end arg-begin) read-only t arg-end t)) #(" env | grep TERM" 2 3 (rear-nonsticky (arg-begin arg-end) arg-begin t) 5 6 (rear-nonsticky (arg-end arg-begin) arg-end t) 6 7 (rear-nonsticky (arg-begin arg-end) arg-begin t) 7 8 (rear-nonsticky (arg-end arg-begin) arg-end t) 8 9 (rear-nonsticky (arg-begin arg-end) arg-begin t) 12 13 (rear-nonsticky (arg-end arg-begin) arg-end t) 13 14 (rear-nonsticky (arg-begin arg-end) arg-begin t) 16 17 (rear-nonsticky (arg-end arg-begin) arg-end t)) "ssh locallhost" "Error: Failed to execute child process \"$SHELL\" (No such file or directory)" "ssh locallhost" "ssh locallhost" [...]