bug-gnu-emacs
[Top][All Lists]
Advanced

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

find-alternate-file should keep cursor position


From: Dan Jacobson
Subject: find-alternate-file should keep cursor position
Date: 01 Sep 2001 02:17:11 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I forgot that I originally had started reading a file in view-mode, so
after I positioned the cursor and started entering characters, only
then did i discover I was in view-mode.  Fortunately there is C-x C-v,
which even prompts with the name of the current file, how
convenient.  What's not convenient is that C-x C-v puts me at the top
of the reread file instead of putting me where I was.  Indeed, I think
any record of where I was is now gone from anywhere in emacs.

Anyway, if C-x C-v notices that it is to visit the same file as
current, please also move the cursor to where it was too.

By the way, why should view mode mode allow one to use say C-f if
they're not supposed to be able to enter characters when they get to
where they're going... [ok, maybe they are in hscroll-mode, etc.,
never mind.]

Similarly, to keep me from thinking compilation-mode output is the
Makefile etc. and editing it, I do
(add-hook 'compilation-mode-hook
           (function
            (lambda ()
              (toggle-read-only 1)
              (define-key compilation-mode-map "q" 'quit-window))))
-- 
http://www.geocities.com/jidanni Tel+886-4-25854780



reply via email to

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