From: "Mathias Dahl" <mathias.dahl@gmail.com>
To: "Alan Mackenzie" <acm@muc.de>,
"David De La Harpe Golden" <david@harpegolden.net>
Cc: Glenn Morris <rgm@gnu.org>, emacs-devel@gnu.org
Subject: Re: Preserving sanity in Emacs [Re: rampant region highlighting]
Date: Tue, 8 Apr 2008 01:54:04 +0200 [thread overview]
Message-ID: <7dbe73ed0804071654p2637b14fy3173d8f8e811509c@mail.gmail.com> (raw)
In-Reply-To: <20080407212617.GC2078@muc.de>
> > I acknowledge that having the point always on-screen has benefits too
> > (though e.g. a fringe indicator could "point towards the offscreen
> > point" to address some concerns there...), but what if I'm just
> > scrolling up to look at something? Martin's hack ensured that I can
> > scroll away to have a look, and the point will reliably be where I left
> > it when I scrolled back.
May I suggest you have a look at unscroll.el, which lets you
"unscroll" back to where you were, should you by mistake or on purpose
scroll far far away in the buffer:
;;; Commentary:
;; To use: (require 'unscroll) in your .emacs.
;; This file uses "advice" to modify the scrolling commands such that
;; the screen appearance is preserved at the start of each series of
;; scrolls. Ever press C-v C-v C-v when you meant C-b C-b C-b?
;; That's what this is meant to remedy.
;; After scrolling (intentionally or otherwise), you can restore the
;; display with M-x unscroll RET, which I like to bind to C-M-v using
;; (define-key global-map "\C-\M-v" 'unscroll).
http://se.aminet.net/pub/gnu/emacs-lisp/incoming/unscroll.el
When I was new to Emacs it happened from time to time that I used some
movement command by mistake. I would have needed this hack then.
Nowadays I don't have that problem anymore and if it happens C-u C-SPC
often takes me close to where I was. Still, I like the idea and it
would be neat if it were built-in.
next prev parent reply other threads:[~2008-04-07 23:54 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-06 19:43 rampant region highlighting Glenn Morris
2008-04-06 21:50 ` David De La Harpe Golden
2008-04-06 22:00 ` Glenn Morris
2008-04-06 22:17 ` David De La Harpe Golden
2008-04-06 22:52 ` Chong Yidong
2008-04-06 23:00 ` Preserving sanity in Emacs [Re: rampant region highlighting] Alan Mackenzie
2008-04-06 23:01 ` Chong Yidong
2008-04-07 22:28 ` Alan Mackenzie
2008-04-07 22:18 ` Glenn Morris
2008-04-06 23:50 ` David De La Harpe Golden
2008-04-06 23:58 ` Lennart Borgman (gmail)
2008-04-07 1:19 ` David De La Harpe Golden
2008-04-07 4:33 ` visual marks [was: " Drew Adams
2008-04-07 15:43 ` David De La Harpe Golden
2008-04-07 16:03 ` Lennart Borgman (gmail)
2008-04-07 17:40 ` David De La Harpe Golden
2008-04-07 17:02 ` Drew Adams
2008-04-07 0:49 ` Robert J. Chassell
2008-04-07 21:26 ` Alan Mackenzie
2008-04-07 21:37 ` Lennart Borgman (gmail)
2008-04-08 10:05 ` Alan Mackenzie
2008-04-08 10:20 ` Lennart Borgman (gmail)
2008-04-08 15:35 ` Richard Stallman
2008-04-07 23:07 ` David De La Harpe Golden
2008-04-08 10:31 ` Alan Mackenzie
2008-04-08 17:52 ` David De La Harpe Golden
2008-04-08 18:09 ` Chong Yidong
2008-04-07 23:54 ` Mathias Dahl [this message]
2008-04-06 22:09 ` rampant region highlighting Chong Yidong
2008-04-06 22:18 ` Glenn Morris
2008-04-06 22:37 ` Chong Yidong
2008-04-07 15:22 ` Stefan Monnier
2008-04-07 18:30 ` Glenn Morris
2008-04-07 19:21 ` Chong Yidong
2008-04-07 20:25 ` Glenn Morris
2008-04-07 21:01 ` Chong Yidong
2008-04-07 21:13 ` Chong Yidong
2008-04-07 21:54 ` Glenn Morris
2008-04-07 4:30 ` Chong Yidong
2008-04-07 18:29 ` Glenn Morris
2008-04-06 23:40 ` Thomas Lord
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=7dbe73ed0804071654p2637b14fy3173d8f8e811509c@mail.gmail.com \
--to=mathias.dahl@gmail.com \
--cc=acm@muc.de \
--cc=david@harpegolden.net \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.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.