From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#17361: Tramp does not save history across sessions. Date: Sun, 10 Oct 2021 16:01:47 -0700 Message-ID: References: <87bnvltvnl.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: Le Wang , 17361@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 01:02:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZhpc-0007gk-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 01:02:12 +0200 Original-Received: from localhost ([::1]:46376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZhpb-0004No-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Oct 2021 19:02:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZhpS-0004My-JL for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 19:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZhpS-0003eb-Az for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 19:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZhpS-0001Lg-8O for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2021 19:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Oct 2021 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17361 X-GNU-PR-Package: emacs Original-Received: via spool by 17361-submit@debbugs.gnu.org id=B17361.16339069154872 (code B ref 17361); Sun, 10 Oct 2021 23:02:02 +0000 Original-Received: (at 17361) by debbugs.gnu.org; 10 Oct 2021 23:01:55 +0000 Original-Received: from localhost ([127.0.0.1]:56027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZhpL-0001GA-3i for submit@debbugs.gnu.org; Sun, 10 Oct 2021 19:01:55 -0400 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:34400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZhpJ-0001AH-7w for 17361@debbugs.gnu.org; Sun, 10 Oct 2021 19:01:53 -0400 Original-Received: by mail-pg1-f175.google.com with SMTP id 133so9062466pgb.1 for <17361@debbugs.gnu.org>; Sun, 10 Oct 2021 16:01:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=Bq+dfLj+HSFaLVT1AGI3V7KQFHdoc15axM5QnnraCBA=; b=DjHHYkZYmyALSbwrzlDlXkFBjy0K85G6aVxMt7a0J9niIcbHKTwZpI6AbRhQg13Nio aO/ixvM3K+XjvOs8OI+zxHkNwVU4/daLR/ev3B5UnZ2hNEEm3vVOtEDmW4aSFvmvBRqc GkJPIoiseXNP6ba1B641hyJBa9ZwfrgA4F3PmTPMG7gT1prIVzYH4XoxZSwZARpNduI+ VR+oV4DBjSncUT8NGsfSt4x1MWBEblsRab2Js44Vk/Wia6mhrkaCKAyJJPPZQIKo/elX gOTTocJYh8B2b8Bqsp2iLIY4SayLfAQqv/jaTCtmciLY6nkzsmlTo5QiKTPJ22LttJhY W18w== X-Gm-Message-State: AOAM530IKii+JxcHSpErCUCd525vDldjtavJfmh5pkcQJ0lOM2FWrwhj 1ZwgbsPT5XUnNkMGizfq8lp3/k3GzeDiM4TrYwY= X-Google-Smtp-Source: ABdhPJxJoAt6ff0+NcK3Dd4zgLFFNWZLhcwGjC2OKoo5BQ7BDOZWVLiO2SUBHRbYUFPjE8wUdiIQIILGeRou9KELxoA= X-Received: by 2002:a63:d506:: with SMTP id c6mr15423960pgg.42.1633906907681; Sun, 10 Oct 2021 16:01:47 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 10 Oct 2021 16:01:47 -0700 In-Reply-To: <87bnvltvnl.fsf@gmx.de> (Michael Albinus's message of "Mon, 28 Apr 2014 15:45:34 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216838 Archived-At: Michael Albinus writes: > 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. (That was 7.5 years ago.) What followed was a discussion about how Tramp should use 'add-function' instead of 'set-process-sentinel', IIUC. Is this still an issue, or has the situation changed since?