From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lorenzo Isella" Newsgroups: gmane.emacs.help Subject: Re: How do you scroll the screen without moving the cursor ? Date: Wed, 8 Oct 2008 18:19:06 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223483516 32468 80.91.229.12 (8 Oct 2008 16:31:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 16:31:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 18:32:52 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 1KnbmZ-000694-Jr for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 18:21:03 +0200 Original-Received: from localhost ([127.0.0.1]:40538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnblV-0007IR-PO for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 12:19:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Knbkl-00076B-I4 for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:19:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Knbkj-000757-SS for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:19:10 -0400 Original-Received: from [199.232.76.173] (port=56409 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knbkj-00074m-96 for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:19:09 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.145]:32376) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Knbkj-00056B-Jj for help-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:19:09 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 4so1224265eyg.24 for ; Wed, 08 Oct 2008 09:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=tkN8uZrT3R2qdQvryQx0SDPhHy0/aub4naIjdZ5vqk0=; b=alCeSWnWGs2Fl9fpPyx5NyGpepmFK+39PPdOciohTxiXknZ6LN/LWLwISehjeEp/L8 gNhaB6GOeI8X5qrqohdpmJ+NJBUc6dif7mZmOfWIqqtOg5nlvpXJ7YQHoEshfjey6paI wY+ZGohcdEEQaYKaidjDa8l269Xw2Hz/y1PvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=UVowkk3frmGPuyWrXLnftMeHAGJwYuOQhkjwbDp21ZZv2nkTpktg/uBCLejoDN432r u6+POt2v1cls65Nftl1ySNkYpZ4SHl51K8T4q+lYsjXATpQsjly/rvCQNh71KYfyouXB V91usVWGlRydnOZKT2G/IFxVsHNElBA1N8Uis= Original-Received: by 10.210.12.18 with SMTP id 18mr7224094ebl.139.1223482746888; Wed, 08 Oct 2008 09:19:06 -0700 (PDT) Original-Received: by 10.210.11.3 with HTTP; Wed, 8 Oct 2008 09:19:06 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 8f95d619c06e28ff X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58547 Archived-At: > aww cool thanks... i just tried the stuffs > > this is what i ended up with -> > > ;; ^E in Vi > (defun ctrl-e-in-vi (n) > (interactive "p") > (scroll-down n)) > > ;; ^Y in Vi > (defun ctrl-y-in-vi (n) > (interactive "p") > (scroll-up n)) > > (global-set-key "\M-n" 'ctrl-y-in-vi) > (global-set-key "\M-p" 'ctrl-e-in-vi) Hello, Sorry for jumping into this thread. I tried the functions above in my .emacs file (the only trivial difference is that I keybound them to f1 and f2). They work beautifully with e.g. python, Fortran etc.. codes, but not with .tex files (where I use latex). In that case, the cursor moves when I invoke one of the functions above. How comes? I am not redefining any key-binding involving my f1 and f2 there. If needed, I can post the part of my .emacs file dealing with the customization of auctex, but I am not sure the problem lies there. Any suggestions? Cheers Lorenzo