From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daimrod Newsgroups: gmane.emacs.bugs Subject: bug#17361: Tramp does not save history across sessions. Date: Tue, 29 Apr 2014 16:39:11 +0900 Message-ID: <8761lsh9eo.fsf@tanger.home> References: <87bnvltvnl.fsf@gmx.de> <87k3a98h9p.fsf@gmx.de> <8738gwr3p8.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398757223 32170 80.91.229.3 (29 Apr 2014 07:40:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2014 07:40:23 +0000 (UTC) To: 17361@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 09:40:16 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 1Wf2eE-0005vW-S8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 09:40:15 +0200 Original-Received: from localhost ([::1]:47657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2eE-0004tQ-F2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 03:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2e8-0004rD-5N for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:40:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf2e3-0004KK-DB for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:40:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2e3-0004Jy-8h for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wf2e2-0003W1-Dq for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daimrod Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Apr 2014 07:40: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139875718113472 (code B ref -1); Tue, 29 Apr 2014 07:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2014 07:39:41 +0000 Original-Received: from localhost ([127.0.0.1]:44374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf2df-0003VD-Qq for submit@debbugs.gnu.org; Tue, 29 Apr 2014 03:39:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59914) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf2dc-0003Uw-GB for submit@debbugs.gnu.org; Tue, 29 Apr 2014 03:39:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf2dS-0004Ce-MX for submit@debbugs.gnu.org; Tue, 29 Apr 2014 03:39:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2dS-0004Ca-Jk for submit@debbugs.gnu.org; Tue, 29 Apr 2014 03:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2dN-0004id-SN for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:39:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf2dJ-0004Bz-9l for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:39:21 -0400 Original-Received: from mail-pb0-x236.google.com ([2607:f8b0:400e:c01::236]:44518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf2dJ-0004Bq-2b for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 03:39:17 -0400 Original-Received: by mail-pb0-f54.google.com with SMTP id rp16so3403497pbb.27 for ; Tue, 29 Apr 2014 00:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=wj0XBSknRVnBXKB9otl0mU18wj928ZByXL4Ma6DVzyM=; b=kkauX2mEItz+6a+7QUcgGY02XSQM0HjolqR84eijGHKwln+8aaBgFgdt1fPLNG/EiV ZPBifhgEsMEAT3NZseoQBUrrDSMdgm1eetDEiJgMZZMDegSL1zy23Jhd1Wqy8AkR0oG1 JSzMhQicn1a0jkvR/QMNUASy/9QYG5SIm322KaMhxVf99a50TMprzARKW6Z7Zn8z1wm3 AUvLR0pjahT6L7EKnhB0p2gusBpjyfjUD2SKTlrURVa7/0LYqhchDFOoVqq/Sc8XFDUr 8DmxGTpIAEXlSEWgzBSpR5BJgs9+cDLjpHnsbPn8vBzpFaRoS5Trx8VQulU4FuDn3Vso 7QCA== X-Received: by 10.66.231.40 with SMTP id td8mr30704999pac.103.1398757155585; Tue, 29 Apr 2014 00:39:15 -0700 (PDT) Original-Received: from localhost (i118-21-141-133.s30.a048.ap.plala.or.jp. [118.21.141.133]) by mx.google.com with ESMTPSA id yx3sm39821768pbb.6.2014.04.29.00.39.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Apr 2014 00:39:14 -0700 (PDT) In-Reply-To: <8738gwr3p8.fsf@gmx.de> (Michael Albinus's message of "Tue, 29 Apr 2014 09:32:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:88394 Archived-At: Michael Albinus writes: > Stefan Monnier writes: > >>> Ah, thanks. I wasn't aware of this use case. However, shouldn't this be >>> propagated further? The Elisp info pages do not mention this use case, >>> when speaking about `set-process-filter' or `set-process-sentinel'. >> >> I added some advertisement for add-function in those sections, thanks. > > Reading your text, I wonder how one should implement this. Usually, one > doesn't know which other library intends to set a filter or a process. I was thinking about the same thing. > In stock Emacs, there are 43 files with calls of `set-process-filter', > and 53 files with calls of `set-process-sentinel'. In the elpa branch, > there are 4/4 additional such files. All those places must be adapted, > checking whether there could be several filters or sentinels. > > Wouldn't it be more consistent to modify `set-process-filter' and > =C2=B4set-process-sentinel' to take care, when several filters or sentine= ls > are added to a given process? Both functions could be equipped with an > optional argument WHERE, which has the similar meaning as in > `add-function'. Maybe just :before, :after and :replace shall be > allowed, and one of them (:after?) could be the default. What about having a default sentinel/filter for all process that does nothing (just a placeholder)? Then instead of using `set-process-filter' one could use (add-function :whatever (process-filter process) ...) --=20 Daimrod/Greg