unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Tamas K Papp <tkpapp@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to move the contents of the buffer one line up/down?
Date: Mon, 14 Jul 2008 13:49:43 +0200	[thread overview]
Message-ID: <57535C73-143A-477F-BF46-09D5EA8A8590@Web.DE> (raw)
In-Reply-To: <6e0qu9F4kpduU2@mid.individual.net>


Am 14.07.2008 um 13:17 schrieb Tamas K Papp:

> But sometimes it would be
> really useful to do the following: have the contents of the buffer  
> move
> up or down a couple of lines, with the cursor staying in the same  
> place.
>
> What function would do that?  Then I could bind it to a key.

(defun scroll-down-in-place (n)
   (interactive "p")
   (previous-line n)
   (scroll-down n))
(defun scroll-up-in-place (n)
   (interactive "p")
   (next-line n)
   (scroll-up n))

Far more on this list.

--
Greetings

   Pete     === -Q
              ==<__/% >>
_____________(_)____@_____________________________






  reply	other threads:[~2008-07-14 11:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 11:17 how to move the contents of the buffer one line up/down? Tamas K Papp
2008-07-14 11:49 ` Peter Dyballa [this message]
2008-07-14 11:51 ` Pascal J. Bourguignon
2008-07-14 11:55   ` Tamas K Papp
2008-07-14 12:49     ` Pascal J. Bourguignon
2008-07-14 20:14       ` Xah
2008-07-14 12:11 ` B. T. Raven
2008-07-14 13:16 ` Alan Mackenzie
     [not found] ` <mailman.14699.1216039847.18990.help-gnu-emacs@gnu.org>
2008-07-14 20:27   ` Xah

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57535C73-143A-477F-BF46-09D5EA8A8590@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tkpapp@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).