unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <yamato@redhat.com>
To: monnier@IRO.UMontreal.CA
Cc: emacs-devel@gnu.org
Subject: Re: [RFC] syslog interface
Date: Fri, 28 May 2010 14:01:31 +0900 (JST)	[thread overview]
Message-ID: <20100528.140131.1016992400444015069.yamato@redhat.com> (raw)
In-Reply-To: <jwvzkzlxqwv.fsf-monnier+emacs@gnu.org>

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



  reply	other threads:[~2010-05-28  5:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27  5:18 [RFC] syslog interface Masatake YAMATO
2010-05-27 16:19 ` Stefan Monnier
2010-05-28  5:01   ` Masatake YAMATO [this message]
2010-05-27 17:49 ` Eli Zaretskii
2010-05-28  5:02   ` Masatake YAMATO

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=20100528.140131.1016992400444015069.yamato@redhat.com \
    --to=yamato@redhat.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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).