From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: process buffer passed to log function for network processes? Date: Thu, 10 Sep 2009 16:08:55 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1252592616 11611 80.91.229.12 (10 Sep 2009 14:23:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 14:23:36 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 16:23:29 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlkXx-00017m-On for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2009 16:22:50 +0200 Original-Received: from localhost ([127.0.0.1]:54750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlkXw-0006fK-M3 for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2009 10:22:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlkKy-00073j-2q for emacs-devel@gnu.org; Thu, 10 Sep 2009 10:09:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlkKs-00070Y-P1 for emacs-devel@gnu.org; Thu, 10 Sep 2009 10:09:23 -0400 Original-Received: from [199.232.76.173] (port=49844 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlkKq-00070J-Te for emacs-devel@gnu.org; Thu, 10 Sep 2009 10:09:17 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:33435) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlkKq-0007Jc-AA for emacs-devel@gnu.org; Thu, 10 Sep 2009 10:09:16 -0400 Original-Received: by ewy7 with SMTP id 7so140130ewy.31 for ; Thu, 10 Sep 2009 07:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=lVPsNWs1jAfVNlouXIVCqCIbYiTYuJR53EfqnkWo3Vg=; b=X/OUW3i8noeGcERnjsGwE5Nh5RPsNZX1w7CSAvCTiTgha4kiajDmXsA1c6AV3fZqXS nyHJS1MFWLNynFjK0Asf8ut5kMlLEPTuemgSaPlH6qCjN+JnhMiDDMmO0UisrFiMSbmn DjJiLUxhOcQg2zBc65AEiXksPP1n08ZfQEAuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=PJPPnZc1FPf9D2MIkl8aBtnRhgUTguQcqQFJqE2RkzOi4sIIeNDYHM9KGbZc0+57cj BUK4dC7PdbEm3sIvdM7s72RnEQCuzLlLF0RvxKC4akiN799zvJH+QXh0UAqJo6HWVEeG n5n7YSD1wsdS8Nb27egCElTrlAQgjZsFB1bUM= Original-Received: by 10.211.145.8 with SMTP id x8mr959522ebn.67.1252591755142; Thu, 10 Sep 2009 07:09:15 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115175 Archived-At: Emacs Lisp Reference, "37.15 Network Servers" says: * If the server's filter is non-`nil', the connection process does not get a separate process buffer; otherwise, Emacs creates a new buffer for the purpose. The buffer name is the server's buffer name or process name, concatenated with the client identification string. The server's process buffer value is never used directly by Emacs, but it is passed to the log function, which can log connections by inserting text there. Which log function? Docstring for `make-network-process' says: :log LOG Initialize the log function of a server process to LOG. The log function is called each time the server accepts a network connection from a client. The arguments passed to the log function are SERVER, CONNECTION, and MESSAGE, where SERVER is the server process, CONNECTION is the new process for the connection, and MESSAGE is a string describing what has happened. A server *process* is passed. Related question: Is there any way to associate a log function to a process after it is created? Apparently, no. Juanma