From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: could mark-paragraph scroll the window?
Date: Tue, 04 Jan 2011 00:18:44 -0700 [thread overview]
Message-ID: <ifuhk2$sg6$1@dough.gmane.org> (raw)
In-Reply-To: <87aajokziu.fsf@ericabrahamsen.net>
On 12/29/10 3:03 PM, Eric Abrahamsen wrote:
> Is there any chance that mark-paragraph (which marks consecutive
> paragraphs when used repeatedly) could scroll the window once the
> marking extends below the visible area? I find this command very useful,
> but not being able to see where it's going is very limiting.
>
> Could I make a local version that does what I want?
Perhaps something like this:
(defadvice mark-paragraph (after region-end-visible activate)
"When called interactively, temporarily display the end of the marked region
if it is not visible in the selected window."
(when (and (called-interactively-p 'any)
;; (eq this-command last-command)
(not (pos-visible-in-window-p (region-end))))
(exchange-point-and-mark)
(sit-for 1)
(exchange-point-and-mark)))
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2011-01-04 7:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-29 22:03 could mark-paragraph scroll the window? Eric Abrahamsen
2011-01-04 7:18 ` Kevin Rodgers [this message]
2011-01-04 13:35 ` Deniz Dogan
2011-01-11 0:20 ` Kevin Rodgers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ifuhk2$sg6$1@dough.gmane.org' \
--to=kevin.d.rodgers@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).