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: Thu, 25 Jan 2007 19:25:23 -0500 Message-ID: <45B94A73.1090603@gatech.edu> References: <45B80425.2070209@gatech.edu> <45B8D0F0.2030408@gatech.edu> <45B8D36B.8050102@gatech.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0634354411==" X-Trace: sea.gmane.org 1169771160 26996 80.91.229.12 (26 Jan 2007 00:26:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2007 00:26:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 26 01:25:53 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 1HAEue-0006F7-Id for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2007 01:25:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAEud-0004MW-GS for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 19:25:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAEuM-0004MO-PQ for help-gnu-emacs@gnu.org; Thu, 25 Jan 2007 19:25:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAEuK-0004MB-FQ for help-gnu-emacs@gnu.org; Thu, 25 Jan 2007 19:25:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAEuK-0004M8-5a for help-gnu-emacs@gnu.org; Thu, 25 Jan 2007 19:25:32 -0500 Original-Received: from deliverator6.gatech.edu ([130.207.165.168]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HAEuJ-0000hb-R2 for help-gnu-emacs@gnu.org; Thu, 25 Jan 2007 19:25:31 -0500 Original-Received: from deliverator6.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id CE31B1933 for ; Thu, 25 Jan 2007 19:25:30 -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 deliverator6.gatech.edu (Postfix) with ESMTP id 9D8AF192F for ; Thu, 25 Jan 2007 19:25:30 -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 7278225E7 for ; Thu, 25 Jan 2007 19:25:30 -0500 (EST) (envelope-from matthew.flaschen@gatech.edu) User-Agent: Thunderbird 1.5.0.9 (X11/20070103) In-Reply-To: <45B8D36B.8050102@gatech.edu> 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.25.161433 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:40661 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0634354411== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9E9D5D02B6406E45E22D427C" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9E9D5D02B6406E45E22D427C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: >=20 > "Scrolls down a screen if possible, or goes to the bottom of the buffer= =2E 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 --------------enig9E9D5D02B6406E45E22D427C 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 iD8DBQFFuUp6Q5LSyju97VkRAsTvAJ0SzlBb6IqDtYIHbHdd9ZPascudkgCgorln C5NgAPOdVgYdYGwYaSsOQ/8= =Q+gQ -----END PGP SIGNATURE----- --------------enig9E9D5D02B6406E45E22D427C-- --===============0634354411== 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 --===============0634354411==--