🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189459

Recenter-definition (request)

#189459
From: Michael Ernst
Date: Wed, 16 Jan 1991 08:41
22 lines
1760 bytes
Has anyone implemented recenter-definition?  This function, which was bound
to M-C-r in ZMACS, scrolled the window so that the current definition (and
possibly preceding comments) was fully visible.  This was a great boon when
trying to see all of a function's definition at once -- one keystroke, not
a bunch of fiddling with scrolling and C-l, did the trick.

If my memory serves me correctly, M-C-r had the following effects:
 * If the defun line is at the top of the screen, scroll so that comments
preceding the definition are also visible.  If there are no preceding
comments, do nothing.
 * If the entire defun is onscreen, or if the defun is partly off the top
of the screen, scroll so that the defun line is at the top of the window.
 * If the definition is partly off the bottom of the screen, scroll so that
the last line of the defun is at the bottom of the screen; but don't scroll
the defun line off the screen.
 * Point does not move and stays onscreen, which constraint on the amount
of scrolling that can be done.

If someone has implemented this (or feels inspired to do so), I'd sure
appreciate it.
					-Michael Ernst
					 mernst@theory.lcs.mit.edu 
Technical Details
Message-ID: <MERNST.91Jan16004117@emu.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!mintaka!mintaka!mernst

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,4bd0029937a7c494,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-01-17 10:48:03 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!mintaka!mintaka!mernst
From: mernst@theory.lcs.mit.edu (Michael Ernst)
Newsgroups: gnu.emacs.help
Subject: Recenter-definition (request)
Message-ID: <MERNST.91Jan16004117@emu.lcs.mit.edu>
Date: 16 Jan 91 08:41:17 GMT
Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius)
Distribution: gnu
Organization: MIT Lab for Computer Science
Lines: 22