From xemacs-m  Wed Apr  9 04:26:55 1997
Received: from frege.math.ethz.ch (frege-d-math-north-g-west.math.ethz.ch [129.132.145.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id EAA10080
	for <xemacs-beta@xemacs.org>; Wed, 9 Apr 1997 04:26:54 -0500 (CDT)
Received: from riesz.math.ethz.ch (vroonhof@riesz [129.132.145.81]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id LAA15889 for <xemacs-beta@xemacs.org>; Wed, 9 Apr 1997 11:25:48 +0200
Received: (vroonhof@localhost) by riesz.math.ethz.ch (8.6.12/D-MATH-client) id LAA15295 for xemacs-beta@xemacs.org; Wed, 9 Apr 1997 11:24:55 +0200
Received: from lens.sri.com (lens.sri.com [128.18.40.10]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id RAA09636 for <vroonhof@math.ethz.ch>; Tue, 8 Apr 1997 17:53:18 +0200
Received: by lens.sri.com (SMI-8.6/SMI-SVR4--GSJ-1.0)
	id IAA00423; Tue, 8 Apr 1997 08:53:07 -0700
Date: Tue, 8 Apr 1997 08:53:07 -0700
From: jumper@lens.sri.com (Greg Jumper)
Message-Id: <199704081553.IAA00423@lens.sri.com>
To: vroonhof@math.ethz.ch
Subject: gnuserv
Sender: vroonhof@math.ethz.ch

Jan,

I take it you are now the keeper of gnuserv?  How receptive are you and others
to the idea of providing for a command-line switch to use gnuclient to visit a
file read-only?

When I used to use server.el/emacsclient, I had hacked a way to do this by
checking for a specially-named buffer to indicate that the rest of the
command-line arguments should be visited read-only.  Not pretty, but it
worked.  Unfortunately (or fortunately :), this hack won't work with the "-q"
option to gnuclient.

One clean way would be to provide a "-f" flag for gnuclient, much like Emacs
itself, so one could do something like

     gnuclient -f toggle-read-only file

Or, a merged gnuclient/gnudoit which could evaluate forms *and* visit files.

Rather than go that far, I have made a minor change to my gnuclient.c to
support a "-w" flag (since "-r" is already taken...).  If this flag is set,
gnuclient invokes either "server-view-files" or "server-view-files-quickly",
rather than the usual "server-edit-files" or "server-edit-files-quickly".
These new functions do the obvious things.

I don't like the idea of having to maintain separate modifications to XEmacs,
so let me know if there is any interest in the changes I've made or in
supporting the read-only functionality through an alternate means...
--
                                       Thanks,

                                       Greg Jumper
                                       jumper@lens.sri.com

