From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Torsten Bronger Newsgroups: gmane.emacs.help Subject: Persisting centered cursor with Scroll Lock key Date: Sat, 08 May 2004 18:14:26 +0200 Organization: RWTH Aachen University Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084033041 13768 80.91.224.253 (8 May 2004 16:17:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 May 2004 16:17:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 08 18:17:16 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BMUVo-0000Th-01 for ; Sat, 08 May 2004 18:17:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMUUq-00078g-6W for geh-help-gnu-emacs@m.gmane.org; Sat, 08 May 2004 12:16:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Complaints-To: http://news.cis.dfn.de/abuse.html Original-X-Trace: news.uni-berlin.de R5PAtOfZeBbhUHJcKB0DRgtZvj2wWHhx0sbJDRSQMqTmF4TP+0pjt7Bls5 X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:JYepS22/UBplVvjn2OQ/8wM78XY= Original-Xref: shelby.stanford.edu gnu.emacs.help:123072 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18359 Halloechen! I want to achieve the following: When Scroll Lock is active, i.e. when the respective keyboard diode is on, the cursor is always in the centre of the frame. I think I can do this myself, with something like (global-set-key [Scroll_Lock] (whatever)) but what is the most elegant/safest way to keep the cursor in the center of the window, no matter how the position is changed (arrow keys, control key sequences, mouse wheel etc)? Thank you! Tschoe, Torsten. -- Torsten Bronger, aquisgrana, europa vetus