From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Monroe Newsgroups: gmane.emacs.help Subject: Re: Advice on troubleshooting function to "unscroll" Date: Sun, 25 Jan 2015 16:03:19 -0600 Message-ID: <54C56827.6030802@gmail.com> References: <54C5577D.4030700@gmail.com> <871tmih6w0.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422223419 5736 80.91.229.3 (25 Jan 2015 22:03:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 22:03:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 23:03:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFVHM-0006c8-NM for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 23:03:36 +0100 Original-Received: from localhost ([::1]:39094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVHL-0005Df-Ub for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2015 17:03:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVHA-0005DW-4p for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:03:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFVH6-0002xJ-VZ for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:03:24 -0500 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:33021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFVH6-0002xF-RU for help-gnu-emacs@gnu.org; Sun, 25 Jan 2015 17:03:20 -0500 Original-Received: by mail-oi0-f43.google.com with SMTP id z81so4786032oif.2 for ; Sun, 25 Jan 2015 14:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=NC+xJzcjPZ6AW2J8t9fqVS01XzZaBYTHUbYxxwAEowQ=; b=nHLDOoY/YO2KgQBPwn6SJn5LcSZvHju3uGJsf8UDy6bbQkgjSq/4xUGTjTKh1/XsFf 9WQhp5RaiwOocVeQcFrbMPXjf4tkNxPuhrbcyKwozEQBRCcspDEeQJnw/ReSiw0Xg0Ov 5R9IOuE4Skshm9wUntCuIYhPTZJIaPCtN0ybHNre3GPvVPAUNGdH+1Xwv0SZ0B62Mbhg AoKsQUd54AID8ziGBwCIyy9L1TDoHnn16xiF4hYxhYYE9kWQ9uOuIeg3ID7+IiKvpjZa iY+OwqAW3pnmPAPJdJ/mbvlnMTJnX0xyktZsFEmDc2j4iDOZuNMc6qQ/MpHw8CUb2n+J 8LeQ== X-Received: by 10.182.130.231 with SMTP id oh7mr11095852obb.47.1422223400287; Sun, 25 Jan 2015 14:03:20 -0800 (PST) Original-Received: from [10.70.17.167] (wsip-66-210-63-210.br.no.cox.net. [66.210.63.210]) by mx.google.com with ESMTPSA id d6sm4350820obh.4.2015.01.25.14.03.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 14:03:19 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <871tmih6w0.fsf@wmi.amu.edu.pl> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102258 Archived-At: Marcin, As Joost also pointed out, the "problem" was that C-v was bound to another (older?) function. Changing it fixed my issue. And thanks for the advice about studying sources. I actually read your question about bookmark with Elisp with interest for that very reason. Will On 01/25/2015 03:45 PM, Marcin Borkowski wrote: > > On 2015-01-25, at 21:52, Will Monroe wrote: > >> The test was just opening a lengthy file, usually an info page or an >> existing org-mode file, pressing C-v a few times, and then using M-x >> unscroll. In all cases, I found that M-x unscroll would return to the >> position just before the last C-v but not to the original position. In >> other words, if I pressed C-v two times and then pressed M-x unscroll, >> in would only go back one C-v. My intent, and that of the example in >> the book, is to return the point the position before any C-v key >> sequences were pressed. > > One more thing: it might be the case that C-v was bound to scroll-up in > Glickstein times, but it is bound to scroll-up-command (which see) now. > Try to change (eq last-command 'scroll-up) to (eq last-command > 'scroll-up-command). (I did not test it, just an idea.) > > PS. Another nice way to learn Elisp is to study Emacs sources. I'm > about 10% into simple.el, learned quite a bit, and as an additional > bonus found two or three bugs (I haven't reported them yet, but I'll do > it soon). Beware that not everyone would recommend learning good > practices or style from some of those sources, though. > > Hth, >