From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Flaschen Newsgroups: gmane.emacs.help Subject: Re: Alt-v behavior near beginning of buffer Date: Tue, 30 Jan 2007 10:59:24 -0500 Message-ID: <45BF6B5C.5090709@gatech.edu> References: <45B80425.2070209@gatech.edu> <45B8D0F0.2030408@gatech.edu> <45B8D36B.8050102@gatech.edu> <45B94A73.1090603@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1015666969==" X-Trace: sea.gmane.org 1170173157 8959 80.91.229.12 (30 Jan 2007 16:05:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2007 16:05:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 30 17:05:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HBvPC-0004HW-75 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2007 17:00:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBvPB-0005Eh-Rk for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2007 11:00:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBvOO-0004zx-PV for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 10:59:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBvON-0004zQ-Oh for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 10:59:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBvON-0004zJ-I9 for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 10:59:31 -0500 Original-Received: from deliverator5.gatech.edu ([130.207.165.165]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HBvON-0005mw-4w for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 10:59:31 -0500 Original-Received: from deliverator5.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id DCA941D19CB for ; Tue, 30 Jan 2007 10:59:29 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from mailprx5.gatech.edu (mailprx5.prism.gatech.edu [130.207.171.19]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator5.gatech.edu (Postfix) with ESMTP id 39AC71D19D7 for ; Tue, 30 Jan 2007 10:59:27 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) Original-Received: from [128.61.73.81] (r73h81.res.gatech.edu [128.61.73.81]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=mflaschen3@mailprx5.gatech.edu, sender=n/a) by mailprx5.gatech.edu (Postfix) with ESMTP id 0C04E21B8 for ; Tue, 30 Jan 2007 10:59:27 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.9 (X11/20070103) In-Reply-To: X-Enigmail-Version: 0.94.1.2 X-GT-Spam-Rating: (7%) X-GT-Spam-Details: No antispam rules were triggered by this message X-GT-AVAS-Version: 5.2.1.279297, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2007.1.30.74932 X-detected-kernel: Solaris 9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40764 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1015666969== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig29C1D8BC8F2E4C04C331F2C9" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig29C1D8BC8F2E4C04C331F2C9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Kevin Rodgers wrote: > Matthew Flaschen wrote: >> I wanted it to go to the beginning of the line either way, so I change= d >> it to: >> >> (defun power-bottom () >> "Scrolls down a screen if possible, or goes to the bottom of the buffe= r" >> (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? >=20 > Of course: >=20 > (progn > (goto-char (point-max)) > (beginning-of-line)) Thanks, that's a bit simpler. I'd seen that command before, but forgot it (and probably never really understood what it did). >=20 > A good Emacs Lisp exercise would be to allow your new command to accept= > a prefix argument just like scroll-up does, and pass it to scroll-up. I may do that at some point. Matt Flaschen --------------enig29C1D8BC8F2E4C04C331F2C9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFv2tcQ5LSyju97VkRAm8TAJ9JaiWLYe/Ul25kvwG1vHlpHv/2MACfe9sj 8rtloMlBuOIpQVWjOh5UlLM= =HP1e -----END PGP SIGNATURE----- --------------enig29C1D8BC8F2E4C04C331F2C9-- --===============1015666969== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1015666969==--