From: waterloo <waterloo2005@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: about "forward-paragraph" in Intro to emacs lisp.
Date: Mon, 27 Jul 2009 03:01:28 +0800 [thread overview]
Message-ID: <907065090907261201w367c2ee1p817403cd7f5299f5@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
I can not understand code of forward-paragraph in Intro to emacs lisp.
On " The forward motion `while' loop " of 12.4 in Intro to emacs lisp.
-------------------------------
;; going forwards and not at the end of the buffer
(while (and (> arg 0) (not (eobp)))
;; between paragraphs
;; Move forward over separator lines...
(while (and (not (eobp))
(progn (move-to-left-margin) (not (eobp)))
(looking-at parsep))
(forward-line 1))
;; This decrements the loop
(unless (eobp) (setq arg (1- arg)))
;; ... and one more line.
(forward-line 1)
-----------------------------------------------------
Why need "(progn (move-to-left-margin) (not (eobp))) " ?
Why need the last line " (forward-line 1) " ?
Thanks
[-- Attachment #2: Type: text/html, Size: 932 bytes --]
next reply other threads:[~2009-07-26 19:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-26 19:01 waterloo [this message]
[not found] <mailman.3183.1248634897.2239.help-gnu-emacs@gnu.org>
2009-07-27 13:01 ` about "forward-paragraph" in Intro to emacs lisp Barry Margolin
-- strict thread matches above, loose matches on Subject: below --
2009-07-28 4:22 waterloo
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=907065090907261201w367c2ee1p817403cd7f5299f5@mail.gmail.com \
--to=waterloo2005@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.