[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alt-v behavior near beginning of buffer
From: |
Matthew Flaschen |
Subject: |
Re: Alt-v behavior near beginning of buffer |
Date: |
Thu, 25 Jan 2007 19:25:23 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
Matthew Flaschen wrote:
> Matthew Flaschen wrote:
>> (defun power-bottom ()
>> "Scrolls up a screen if possible, or goes to the top of the buffer"
> Doc here should be:
>
> "Scrolls down a screen if possible, or goes to the bottom of the buffer.
I wanted it to go to the beginning of the line either way, so I changed
it to:
(defun power-bottom ()
"Scrolls down a screen if possible, or goes to the bottom of the buffer"
(interactive)
(if (pos-visible-in-window-p (point-max))
((lambda()
(goto-char (point-max))
(beginning-of-line)))
(scroll-up)))
That lambda syntax took me a while to grasp. Is there any easier way to
do this, short of creating a function just for the lambda?
Matthew Flaschen
signature.asc
Description: OpenPGP digital signature
- Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/24
- Re: Alt-v behavior near beginning of buffer, Kevin Rodgers, 2007/01/25
- Re: Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/25
- Re: Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/25
- Re: Alt-v behavior near beginning of buffer,
Matthew Flaschen <=
- Re: Alt-v behavior near beginning of buffer, Kevin Rodgers, 2007/01/30
- Re: Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/30
- Re: Alt-v behavior near beginning of buffer, Kevin Rodgers, 2007/01/31
- Re: Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/31
- Re: Alt-v behavior near beginning of buffer, Kevin Rodgers, 2007/01/30
- Re: Alt-v behavior near beginning of buffer, Matthew Flaschen, 2007/01/30