emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: collect-string


From: Stefan Monnier
Subject: Re: collect-string
Date: Mon, 08 Nov 2010 13:36:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Now I am convinced.  How about the change below?

Could you send it as a context patch?

> In conventional occur zero or negative value for nlines is meaningless
> correct?

Hmmm....no, C-h f occur RET says:

   Each line is displayed with NLINES lines before and after, or -NLINES
   before if NLINES is negative.

So negative values are not meaningless and neither is zero.  Zero is
unnecessary in the default config, but if the user has set
list-matching-lines-default-context-lines to a non-zero value, then even
zero is useful (I'd even say, it's *very* useful in that case).

Which is why I suggested to use a non-numeric value (just a C-u) to
trigger the "collect-string" behavior.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]