From: Glenn Morris <rgm@gnu.org>
To: Jonathan Goldblatt <jonathangoldblatt@yahoo.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Bug/Patch view.el
Date: Sat, 22 Sep 2007 14:39:59 -0400 [thread overview]
Message-ID: <69tzpmsfwg.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <1t8x7bfyoe.fsf@totally-fudged-out-message-id> (Jonathan Goldblatt's message of "(unknown date)")
Jonathan Goldblatt wrote:
> Here is a little test script that demonstrates some problems in
> view-search-no-match-lines followed by a patch to replace it.
Thanks for the detailed report. Can't your version be simplified as
follows? I gave up trying to understand the original.
(defun view-search-no-match-lines (times regexp)
(let ((fwd-one (if (< times 0) -1 1)))
(setq times (abs times))
(while (and (> times 0)
(zerop (forward-line fwd-one)))
(if (eobp)
(setq times -1)
(or (re-search-forward regexp (line-end-position) t)
(setq times (1- times)))))
(and (zerop times)
(looking-at "^.*$"))))
next parent reply other threads:[~2007-09-22 18:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1t8x7bfyoe.fsf@totally-fudged-out-message-id>
2007-09-22 18:39 ` Glenn Morris [this message]
2007-09-24 11:35 ` Bug/Patch view.el Jonathan Goldblatt
2007-09-24 19:31 ` Glenn Morris
2007-09-25 2:30 ` Glenn Morris
2007-09-25 7:06 ` Glenn Morris
2007-09-12 19:52 Jonathan Goldblatt
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=69tzpmsfwg.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=jonathangoldblatt@yahoo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).