[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice on troubleshooting function to "unscroll"

From: Will Monroe
Subject: Re: Advice on troubleshooting function to "unscroll"
Date: Sun, 25 Jan 2015 16:03:19 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


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.


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]