[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: view part of file
From: |
Sam Steingold |
Subject: |
Re: feature request: view part of file |
Date: |
Thu, 14 Jun 2012 17:29:58 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> * Sam Steingold <address@hidden> [2012-06-13 16:52:35 -0400]:
>
> Sometimes I want to __VIEW__ a huge file and I get
>
> File ZZZ is large (1645MB), really open? (y or n) n
> abort-if-file-too-large: Aborted
>
> What I want is another option, in addition to y/n:
> open a part of the file.
I put vlf.el by Mathias into elpa.
I rewrote it almost completely (bzr still has the original version at
revno 233).
it works for me.
I wish I knew how to hook it into files.el, but I don't...
vlf.el has 2 issues:
1. insert-file-contents hangs emacs (see `vlf-next-batch'):
;; replacing `erase-buffer' with replace arg to `insert-file-contents'
;; hangs emacs
(unless append (erase-buffer))
(insert-file-contents buffer-file-name nil vlf-end-pos end)
2. I have this:
(define-key map [C-+] 'vlf-change-batch-size)
When I do C-+ (by pressing Ctrl, Shift, and the "+=" key to the left of
backspace), I get "C-+ is undefined".
when I do M-x vlf-change-batch-size RET, I get
"You can run the command `vlf-change-batch-size' with <C-+>"
The "+" in both messages is the same character (43, #o53, #x2b).
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://camera.org
http://openvotingconsortium.org http://honestreporting.com http://memri.org
If you will not bring your husband coffee in bed, his day may start with a beer.
Re: feature request: view part of file,
Sam Steingold <=