From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse)
To: emacs-devel-mXXj517/zsQ@public.gmane.org
Subject: Re: Proposal: emacsclient --readonly
Date: Thu, 14 Mar 2013 02:45:38 +0000 [thread overview]
Message-ID: <87a9q6g0ml.fsf@riseup.net> (raw)
In-Reply-To: 87y5dqafcy.fsf@michael-laptop.hsd1.ma.comcast.net
michael-ntT3PcgARwzQT0dZR+AlfA@public.gmane.org writes:
> 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.
>
>
>
> --
> Michael R. Mauger - FSF Member #4247 - Emacs sql.el Maintainer
Without changing emacsclient, my approach would be the slightly
unintuitive/user-hostile
emacsclient --eval '(view-file "path/to/file")'
--
Regards,
WGG
next prev parent reply other threads:[~2013-03-14 2:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 2:23 Proposal: emacsclient --readonly michael
2013-03-14 2:45 ` W. Greenhouse [this message]
2013-03-14 3:31 ` Stefan Monnier
2013-03-24 3:45 ` Michael Mauger
[not found] <87zjxtq304.fsf@michael-laptop.hsd1.ma.comcast.net>
[not found] ` <jwv38vlpnpl.fsf-monnier+emacs@gnu.org>
2013-03-24 16:22 ` Michael Mauger
2013-03-25 13:15 ` Stefan Monnier
2013-03-26 2:56 ` Michael Mauger
2013-03-26 13:10 ` Stefan Monnier
2013-03-27 2:02 ` Michael Mauger
2013-03-27 2:33 ` Stefan Monnier
2013-03-27 13:47 ` Michael Mauger
2013-03-30 23:03 ` Michael Mauger
-- strict thread matches above, loose matches on Subject: below --
2013-09-27 18:22 Rüdiger Sonderfeld
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9q6g0ml.fsf@riseup.net \
--to=wgreenhouse-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
--cc=emacs-devel-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.