unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Le Wang <l26wang@gmail.com>
Cc: 17361@debbugs.gnu.org
Subject: bug#17361: Tramp does not save history across sessions.
Date: Mon, 28 Apr 2014 15:45:34 +0200	[thread overview]
Message-ID: <87bnvltvnl.fsf@gmx.de> (raw)
In-Reply-To: <CAM=K+iq6AZsxE4o_Jd8qNR0nen8KKzogqAxvSzKrm-V9Mf659w@mail.gmail.com> (Le Wang's message of "Mon, 28 Apr 2014 09:16:14 -0400")

Le Wang <l26wang@gmail.com> 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.





  reply	other threads:[~2014-04-28 13:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28 13:16 bug#17361: Tramp does not save history across sessions Le Wang
2014-04-28 13:45 ` Michael Albinus [this message]
2014-04-28 15:09   ` Stefan Monnier
2014-04-28 18:01     ` Michael Albinus
2014-04-29  4:19       ` Stefan Monnier
2014-04-29  7:32         ` Michael Albinus
2014-04-29  7:39           ` Daimrod
2014-04-29  7:59             ` Michael Albinus
2014-04-29  8:34               ` Daimrod
2014-04-29 13:38             ` Stefan Monnier
2014-04-29 13:42           ` Stefan Monnier
2014-04-29 13:52             ` Michael Albinus
2014-04-29 14:30               ` Stefan Monnier
2014-04-29 14:42                 ` Michael Albinus
2014-04-29 15:33                   ` Stefan Monnier
2014-04-29 18:09                     ` Michael Albinus
2014-04-29 19:40                       ` Stefan Monnier
2014-04-29 21:24                         ` Michael Albinus
2014-04-29 22:08                           ` Stefan Monnier
2014-05-29 16:21                             ` Glenn Morris
2014-04-28 15:26   ` Eli Zaretskii
2014-04-28 18:05     ` Michael Albinus
2014-04-28 18:15       ` Eli Zaretskii
2014-04-28 20:20         ` Stefan Monnier
2021-10-10 23:01   ` Stefan Kangas
2021-10-11 15:41     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnvltvnl.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=17361@debbugs.gnu.org \
    --cc=l26wang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).