all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: upro <upro@gmx.net>
Subject: Re: Persisting centered cursor with Scroll Lock key
Date: Sat, 08 May 2004 20:14:36 +0200	[thread overview]
Message-ID: <87brkylrar.fsf@lux99.localhost> (raw)
In-Reply-To: m3ekpuesil.fsf@wilson.rwth-aachen.de

Torsten Bronger <bronger@physik.rwth-aachen.de> writes:

> Halloechen!
>
> Kai Grossjohann <kai@emptydomain.de> writes:
>
>> Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
>>
>>> 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.
>>
>> There is scroll-in-place.el by Eric Eide (I think, could be
>> another member of the Eric conspiracy) which allows you to keep
>> the cursor where it is.  Maybe that's close enough?
>
> I've installed scroll-in-place.el and added (require
> 'scroll-in-place) to my .emacs.  This .emacs doesn't contain any
> other scroll setting commands except for (setq scroll-step 1) (as
> far as I can see), *and* the (require 'scroll-in-place) is almost
> the last command in the file.  But there is no effect nevertheless.
>
> scroll-in-place is 1, which means that the fuctions are supposed to
> be active.
>
> Any ideas?
>
> Tschoe,
> Torsten.

Yeah , I had the same whish and finalle achieved a similar but more
sophisitaced behavior by the following, without using scroll-in-place:

(defun scroll-down-one-line (arg)
  "Scroll down one line, or number of lines specified by prefix arg."
  (interactive "P")
  (let ((scroll-default-lines 1))
    (scroll-down-in-place arg)))
(defun scroll-up-one-line (arg)
  "Scroll down one line, or number of lines specified by prefix arg."
  (interactive "P")
  (let ((scroll-default-lines 1))
    (scroll-up-in-place arg)))

(global-set-key  [(shift up)] 'scroll-down-one-line)
(global-set-key [(shift down)] 'scroll-up-one-line)


Now emacs scrolls as normal when using the arrow keys, but scrolls
with fixed cursir, around the cursor when I use the arrow
keys+shift. You can bind it to arrow keys only, of course...


Nothing to do with your scroll-lock lamp or function or whatsoever,
whatsoever...


Does this help?

-- 
Michael

r-znvy: zvpunry.wryqra  jro.qr (chg gur "@" jurer vg svgf...)
ab fcnz cyrnfr

  reply	other threads:[~2004-05-08 18:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08 16:14 Persisting centered cursor with Scroll Lock key Torsten Bronger
2004-05-08 16:36 ` Kai Grossjohann
2004-05-08 17:30   ` Torsten Bronger
2004-05-08 18:14     ` upro [this message]
2004-05-08 18:33       ` Torsten Bronger
2004-05-08 18:43         ` upro
2004-05-08 19:32     ` Kai Grossjohann
2004-05-08 19:50       ` Torsten Bronger
2004-05-08 19:55         ` Kai Grossjohann
2004-05-08 20:07           ` Torsten Bronger
2004-05-09  0:03           ` Eric Eide
2004-05-10  0:55             ` Thien-Thi Nguyen
2004-05-08 23:59     ` Eric Eide
2004-05-09  6:56       ` Torsten Bronger
2004-05-10 14:40         ` Eric Eide
2004-05-10 16:17           ` Stefan Monnier
2004-05-10 21:06             ` Kai Grossjohann
2004-05-11  4:53               ` Stefan Monnier
2004-05-11  6:09                 ` Torsten Bronger
2004-05-11  7:06                 ` Kai Grossjohann
2004-05-11  7:47                   ` Torsten Bronger
2004-05-12  7:35                     ` Kai Grossjohann
2004-05-09  0:16   ` Eric Eide
2004-05-08 19:32 ` Johan Bockgård

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=87brkylrar.fsf@lux99.localhost \
    --to=upro@gmx.net \
    /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.