[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proposal: emacsclient --readonly

From: michael
Subject: Proposal: emacsclient --readonly
Date: Wed, 13 Mar 2013 22:23:57 -0400

As distraction to our toddler temper-tantrum, I'd like to propose a
new feature for emacsclient.

I use emacsclient to open files frequently and I generally immediately
do M-x view-mode once the frame pops up.  I'd like to be able to open
the file directly in view-mode when I invoke emacsclient.

I'd be interested in any suggestions people have on how to accomplish
this using emacsclient currently.  In the absence of any ideas, I'd like
to propose the folowing patch which adds a `--readonly,-r' option to
emacsclient (and server.el) (I had originally called it --view-mode,-v but
getopt_long_only complained that it was ambiguous if abbreviated.)

I'm eager to hear any suggestions people might have to do this without
changing emacsclient.  Or maybe this is a reason to add a more generic
feature to emacsclient to enable/disable modes after a file is opened.

Attachment: client-view.diff
Description: emacsclient --readonly feature

Michael R. Mauger  -  FSF Member #4247  -  Emacs sql.el Maintainer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]