From: Will Monroe <wtmonroe.ls@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Advice on troubleshooting function to "unscroll"
Date: Sun, 25 Jan 2015 16:03:19 -0600 [thread overview]
Message-ID: <54C56827.6030802@gmail.com> (raw)
In-Reply-To: <871tmih6w0.fsf@wmi.amu.edu.pl>
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 <wtmonroe.ls@gmail.com> 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,
>
next prev parent reply other threads:[~2015-01-25 22:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-25 20:52 Advice on troubleshooting function to "unscroll" Will Monroe
2015-01-25 21:35 ` Marcin Borkowski
2015-01-25 21:43 ` Will Monroe
2015-01-25 21:55 ` Marcin Borkowski
2015-01-25 22:01 ` Will Monroe
2015-01-25 21:45 ` Marcin Borkowski
2015-01-25 22:03 ` Will Monroe [this message]
2015-01-25 22:09 ` Marcin Borkowski
2015-01-25 22:45 ` Drew Adams
2015-01-25 22:56 ` Will Monroe
2015-01-25 23:15 ` Marcin Borkowski
2015-01-26 0:03 ` Drew Adams
2015-01-26 0:16 ` Marcin Borkowski
2015-01-26 1:06 ` Drew Adams
2015-01-26 1:17 ` Will Monroe
2015-01-26 1:21 ` Marcin Borkowski
2015-01-26 1:33 ` Drew Adams
[not found] <mailman.18583.1422219396.1147.help-gnu-emacs@gnu.org>
2015-01-25 21:35 ` Joost Kremers
2015-01-25 21:57 ` Will Monroe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C56827.6030802@gmail.com \
--to=wtmonroe.ls@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.