From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#17361: Tramp does not save history across sessions. Date: Mon, 28 Apr 2014 15:45:34 +0200 Message-ID: <87bnvltvnl.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398692792 28189 80.91.229.3 (28 Apr 2014 13:46:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 13:46:32 +0000 (UTC) Cc: 17361@debbugs.gnu.org To: Le Wang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 15:46:25 2014 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 1Welt1-0005Bs-5G for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 15:46:23 +0200 Original-Received: from localhost ([::1]:44004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Welt0-0008IO-Pu for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 09:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Welsp-0007UP-2I for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 09:46:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Welsh-00057d-7I for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 09:46:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Welsh-000577-4r for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 09:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Welsg-00034n-6j for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 09:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17361-submit@debbugs.gnu.org id=B17361.139869274511789 (code B ref 17361); Mon, 28 Apr 2014 13:46:02 +0000 Original-Received: (at 17361) by debbugs.gnu.org; 28 Apr 2014 13:45:45 +0000 Original-Received: from localhost ([127.0.0.1]:43718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WelsO-000342-RH for submit@debbugs.gnu.org; Mon, 28 Apr 2014 09:45:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:60574) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WelsM-00033n-Um for 17361@debbugs.gnu.org; Mon, 28 Apr 2014 09:45:43 -0400 Original-Received: from detlef.gmx.de ([87.146.61.136]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MMT1y-1WWUww25XS-008I58; Mon, 28 Apr 2014 15:45:36 +0200 In-Reply-To: (Le Wang's message of "Mon, 28 Apr 2014 09:16:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:RKQWQha3jAlGfdSO36e4vm3H8tZB+Ai/DKrRjqKaDzICeM9Idtd J5cl0ufL5YLcMfSRPAXyw4DSzUcf+pvVcgBCGJn9xzJwpr3R98qP6hcPdyjl91c9WAqxqCK RD8IZnCGxAT0QYbTwGMjMnIAXtoxg9rAaLwjx/CwxkQsgaRWGOjyUa0NML2fNhGgAw/4nah eLjyfBBDUgoCYNOk9IhIA== 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:88351 Archived-At: Le Wang writes: > Tramp installs its own sentinel -- tramp-process-sentinel -- over > shell-mode's shell-write-history-on-exit. What's the way to write to > history file when the process ends without using defadvice? > > Could the default behave better? The problem seems to be more general. Emacs does not support to have several process sentinels for a given process. If several sentinels are declared for a process by ?`set-process-sentinel', they compete for being attached to the process. And the last one wins. So we need to support several sentinels per process. Maybe this exist already, but I'm not aware of such a mechanism. Stefan? Best regards, Michael.