From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: how to move the contents of the buffer one line up/down? Date: Mon, 14 Jul 2008 13:49:43 +0200 Message-ID: <57535C73-143A-477F-BF46-09D5EA8A8590@Web.DE> References: <6e0qu9F4kpduU2@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216036228 26377 80.91.229.12 (14 Jul 2008 11:50:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 11:50:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tamas K Papp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 13:51:16 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIMaC-0001CL-9y for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 13:51:08 +0200 Original-Received: from localhost ([127.0.0.1]:44252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIMZI-0004SV-EJ for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 07:50:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIMZ0-0004SH-J5 for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 07:49:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIMYw-0004QE-4n for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 07:49:54 -0400 Original-Received: from [199.232.76.173] (port=54617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIMYv-0004Q9-WC for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 07:49:50 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:33734) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIMYv-0007ia-8Y for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 07:49:49 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 06F5AE3B4633; Mon, 14 Jul 2008 13:49:47 +0200 (CEST) Original-Received: from [91.35.194.230] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KIMYs-0006m0-00; Mon, 14 Jul 2008 13:49:46 +0200 In-Reply-To: <6e0qu9F4kpduU2@mid.individual.net> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/ASZRIQVicXUtzaIkzjbAP+HHbPfsBg7Ut/3Bd +tVbC2Jle4A4nOh8d8OoJSHQmFGLFOtVTYljdj2jwlTMV1Orfe MIx6pU1WTP06d+crv3ZA== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55541 Archived-At: 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 ==<__/% >> _____________(_)____@_____________________________