* Occur: "no matches for <regexp>": KILL *occur*, please
@ 2005-02-23 18:29 David Combs
2005-02-24 4:54 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: David Combs @ 2005-02-23 18:29 UTC (permalink / raw)
You do an M-x occur, which succeeds and gives you a *Occur*.
Now you do a different M-x occur, and there's NO matches
this second time.
So what does emacs do? Leaves *Occur* untouched, but
does report "no matches for ..." down in the minibuf.
Well, that minibuf is by definition the furthest-away thing
on the emacs-screen -- down at the very bottom. And there's
only *one* of them, regardless of the number of windows
on-screen at a given time.
Like, if both the file you're occurring on and the *Occur*
file are "far" away from the minibuf, YOU WON'T LIKELY SEE
the "nothing found" minibuf-msg.
Thus, you *might* have a look at the existing *Occur*, and
(incorrectly) *think* that it's showing the results of your *successful*
second try -- totally wrong, of course.
----- WHAT TO DO?
(1) you could just kill-off that prior *Occur*. Unambiguous action.
(2) you could instead *keep* that prior *Occur* -- but MODIFY
the buffer-content to somehow say "am from some PRIOR M-x occur".
Maybe via some standout-color, maybe via big x "ascii-drawn"
over it, or the like.
Of course, take into consideration whether the prior occur
was on the *same* or a *different* file from what the
*unsuccessful* M-x occurs were run on.
(Don't ask me "in what way do you suggest we take
that matter into consideration" -- am far too
tired to think logically about that one.)
THANKS,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Occur: "no matches for <regexp>": KILL *occur*, please
2005-02-23 18:29 Occur: "no matches for <regexp>": KILL *occur*, please David Combs
@ 2005-02-24 4:54 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2005-02-24 4:54 UTC (permalink / raw)
> So what does emacs do? Leaves *Occur* untouched, but
> does report "no matches for ..." down in the minibuf.
I think it's good that it preserves the old content of the occur buffer.
But maybe it could (ding) at the same time as it says "no match" to make it
more obvious.
Anyway, it's a job for gnu.emacs.bug.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-24 4:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 18:29 Occur: "no matches for <regexp>": KILL *occur*, please David Combs
2005-02-24 4:54 ` Stefan Monnier
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).