From: Richard Stallman <rms@gnu.org>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, pogonyshev@gmx.net
Subject: Re: [pogonyshev@gmx.net: `c-indent-command' in a rare case]
Date: Sun, 10 Oct 2004 11:16:22 -0400 [thread overview]
Message-ID: <E1CGfQs-0002xb-2W@fencepost.gnu.org> (raw)
In-Reply-To: <m1vfdlp1dt.fsf-monnier+emacs@gnu.org> (message from Stefan on Fri, 08 Oct 2004 13:29:00 -0400)
Huh? Contrary to skip-chars-forward, forward-line returns the number of
lines remaining, not the "decrease in the number of lines remaining".
I.e. (zerop (forward-line 1)) is often used to check that forward-line has
indeed moved.
I agree with Martin that it would be better to not return 0 when it has moved
but hasn't managed to move to a different line.
Ok, I agree.
Would someone like to change this?
It is important to check that the various callers that look
at the return value will still work. But I tend to think they
mostly will, because this change would increase the consistency
of the return value.
next prev parent reply other threads:[~2004-10-10 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CDv10-0004rX-Fw@fencepost.gnu.org>
2004-10-07 11:21 ` [pogonyshev@gmx.net: `c-indent-command' in a rare case] Martin Stjernholm
2004-10-08 16:05 ` Richard Stallman
2004-10-08 17:29 ` Stefan
2004-10-10 15:16 ` Richard Stallman [this message]
2004-10-10 22:38 ` Kim F. Storm
2004-10-08 17:53 ` Martin Stjernholm
2004-10-08 18:31 ` David Kastrup
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=E1CGfQs-0002xb-2W@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=pogonyshev@gmx.net \
/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.