From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: collect-string Date: Mon, 08 Nov 2010 13:36:08 -0500 Message-ID: References: <20101103.110157.309054292.Takaaki.Ota@am.sony.com> <87pqulj0tn.fsf@uwakimon.sk.tsukuba.ac.jp> <20101104.113654.332196908.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289241385 8215 80.91.229.12 (8 Nov 2010 18:36:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2010 18:36:25 +0000 (UTC) Cc: stephen@xemacs.org, emacs-devel@gnu.org To: Tak Ota Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 08 19:36:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PFWZn-0007o9-Ok for ged-emacs-devel@m.gmane.org; Mon, 08 Nov 2010 19:36:19 +0100 Original-Received: from localhost ([127.0.0.1]:58710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFWZn-00079j-5E for ged-emacs-devel@m.gmane.org; Mon, 08 Nov 2010 13:36:19 -0500 Original-Received: from [140.186.70.92] (port=41869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFWZf-00075q-Nx for emacs-devel@gnu.org; Mon, 08 Nov 2010 13:36:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFWZe-0004Sb-Iq for emacs-devel@gnu.org; Mon, 08 Nov 2010 13:36:11 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37623 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFWZe-0004ST-GW for emacs-devel@gnu.org; Mon, 08 Nov 2010 13:36:10 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEKAGbR10xMCpqE/2dsb2JhbAChCIEDcr1ehUgEhFiNWg X-IronPort-AV: E=Sophos;i="4.59,169,1288584000"; d="scan'208";a="81945907" Original-Received: from 76-10-154-132.dsl.teksavvy.com (HELO pastel.home) ([76.10.154.132]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Nov 2010 13:36:09 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id EDA56A86D8; Mon, 8 Nov 2010 13:36:08 -0500 (EST) In-Reply-To: <20101104.113654.332196908.Takaaki.Ota@am.sony.com> (Tak Ota's message of "Thu, 4 Nov 2010 11:36:54 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132455 Archived-At: > 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