[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
perhaps if a file is read-only, turn on view-mode for easy paging: tisk
From: |
Dan Jacobson |
Subject: |
perhaps if a file is read-only, turn on view-mode for easy paging: tisk tisk |
Date: |
Tue, 19 Dec 2000 01:34:22 +0800 |
"Kai Großjohann" <Kai.Grossjohann@CS.Uni-Dortmund.DE> ?????
news:vafae9v9gfd.fsf@lucy.cs.uni-dortmund.de...
> On Sun, 17 Dec 2000, Dan Jacobson wrote:
>
> > Suggestion for next emacs:
> > perhaps if a file is read-only, turn on view-mode for easy paging
> > down. Or how should I add this to find-file-hooks?
>
> /----[ C-h v view-read-only RET ]
> | view-read-only's value is
> | t
> |
> | Documentation:
> | *Non-nil means buffers visiting files read-only, do it in view mode.
> |
> | You can customize this variable.
> |
> | Defined in `view'.
> \----
'Dan important comment': OK, I set the above variable, I'm in dired
[not especially important], I hit 'f' on a read-only file. Indeed
there I am in view mode, everything's hunky-dory. Then when I hit q,
one would expect, as in normal view mode, the file would kindly go
away from emacs. However, indeed, I am now still there, view mode is
gone and we're back in fundamental mode. What good could that be.
OK, found a bug, GNU Emacs20.7...
Gosh, view-mode already has "e" that does the same in the first place.
--
www.geocities.com/jidanni E-mail: restore ".com." ???
Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- perhaps if a file is read-only, turn on view-mode for easy paging: tisk tisk,
Dan Jacobson <=