From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: [RFC] syslog interface Date: Fri, 28 May 2010 14:01:31 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20100528.140131.1016992400444015069.yamato@redhat.com> References: <20100527.141847.482451220872211521.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275022849 26389 80.91.229.12 (28 May 2010 05:00:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 May 2010 05:00:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@IRO.UMontreal.CA Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 28 07:00:47 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OHrgY-0003pb-S6 for ged-emacs-devel@m.gmane.org; Fri, 28 May 2010 07:00:43 +0200 Original-Received: from localhost ([127.0.0.1]:38340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHrgY-0006de-72 for ged-emacs-devel@m.gmane.org; Fri, 28 May 2010 01:00:42 -0400 Original-Received: from [140.186.70.92] (port=35943 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHrgQ-0006b2-DV for emacs-devel@gnu.org; Fri, 28 May 2010 01:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHrgO-0005Ua-FZ for emacs-devel@gnu.org; Fri, 28 May 2010 01:00:34 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:24726) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHrgO-0005US-9M for emacs-devel@gnu.org; Fri, 28 May 2010 01:00:32 -0400 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4S50Unc029013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 May 2010 01:00:31 -0400 Original-Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4S50Ti6026101; Fri, 28 May 2010 01:00:30 -0400 In-Reply-To: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:125320 Archived-At: Thank you for comment. >> -server option added to newer emacs is very interesting. >> But to write a rael server with emacs, there may be some missing >> functions in emacs. >> syslog interface is one of such function. As a system administrator, >> I'd like to track the event on the emacs server on which the service written >> in elisp is running via /var/log/messages. > > Not sure what's the purpose here: the emacs-server is normally expected > to be run by users, not as a system process (it's not expected to be > shared by all users of the system), whereas syslog is normally used only > for messages coming from system processes rather than from > user processes. > > Can you give some additional info about what use case you're > thinking of? > My use case is `font-lock' server. Here is a prototype: http://srpmix.org/api/browse.cgi?path=sources/e/emacs/23.2-3.fc14/pre-build/emacs-23.2/ChangeLog&display=font-lock ChangeLog file is taken from emacs-23.2-3. When the file is requested from web client, web server at srpmix.org asks emacs-server to convert the file to a file in html format via emacsclient. It may be possible to do the same thing with emacs --batch but to handle multiple clients quickly I'd like to implemnt it with emacs-server. Because of disk size limitation I don't like to use pre-convert technique; converting all files into html format. What I'll deal is source code files of 2TB. How about this one if you think just font-locking a file is not so interesting? http://srpmix.org/api/browse.cgi?path=sources/e/emacs/23.2-3.fc14/pre-build/emacs-23.2&display=font-lock This is something like dired. I'd like to integrate other goodies in emacs to the output web page: etags, imenu, vc, etc. > Stefan > > > PS: the "return Qundefined" is wrong, because Qundefined is a special > value that Elisp code should never see. Return Qnil instead. > Thanks. Masatake YAMATO