From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: collect-string Date: Mon, 8 Nov 2010 16:18:15 -0800 Message-ID: <20101108.161815.497749275.Takaaki.Ota@am.sony.com> References: <20101104.113654.332196908.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289261917 12880 80.91.229.12 (9 Nov 2010 00:18:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2010 00:18:37 +0000 (UTC) Cc: stephen@xemacs.org, emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 09 01:18:31 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 1PFbuw-0000Tc-Nv for ged-emacs-devel@m.gmane.org; Tue, 09 Nov 2010 01:18:30 +0100 Original-Received: from localhost ([127.0.0.1]:48439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFbuw-00007i-1M for ged-emacs-devel@m.gmane.org; Mon, 08 Nov 2010 19:18:30 -0500 Original-Received: from [140.186.70.92] (port=45258 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFbur-00007Y-SF for emacs-devel@gnu.org; Mon, 08 Nov 2010 19:18:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFbuq-0007UB-Q5 for emacs-devel@gnu.org; Mon, 08 Nov 2010 19:18:25 -0500 Original-Received: from am1ehsobe004.messaging.microsoft.com ([213.199.154.207]:19679 helo=AM1EHSOBE004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFbuq-0007Tp-FE for emacs-devel@gnu.org; Mon, 08 Nov 2010 19:18:24 -0500 Original-Received: from mail64-am1-R.bigfish.com (10.3.201.241) by AM1EHSOBE004.bigfish.com (10.3.204.24) with Microsoft SMTP Server id 14.1.225.8; Tue, 9 Nov 2010 00:18:23 +0000 Original-Received: from mail64-am1 (localhost.localdomain [127.0.0.1]) by mail64-am1-R.bigfish.com (Postfix) with ESMTP id 30BA6C9051E; Tue, 9 Nov 2010 00:18:23 +0000 (UTC) X-SpamScore: -18 X-BigFish: VPS-18(zz1432N98dN179dNzz1202hzzz2fh2a8h61h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail7.fw-bc.sony.com; RD:mail7.fw-bc.sony.com; EFVD:NLI Original-Received: from mail64-am1 (localhost.localdomain [127.0.0.1]) by mail64-am1 (MessageSwitch) id 1289261902850567_19899; Tue, 9 Nov 2010 00:18:22 +0000 (UTC) Original-Received: from AM1EHSMHS008.bigfish.com (unknown [10.3.201.240]) by mail64-am1.bigfish.com (Postfix) with ESMTP id C171FAC0052; Tue, 9 Nov 2010 00:18:22 +0000 (UTC) Original-Received: from mail7.fw-bc.sony.com (160.33.98.74) by AM1EHSMHS008.bigfish.com (10.3.207.108) with Microsoft SMTP Server (TLS) id 14.1.225.8; Tue, 9 Nov 2010 00:18:20 +0000 Original-Received: from mail1x.bc.in.sel.sony.com ([43.144.65.112]) by mail7.fw-bc.sony.com (Switch-3.4.2/Switch-3.3.2mp) with ESMTP id oA90IIsc011425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 9 Nov 2010 00:18:18 GMT Original-Received: from localhost ([43.191.18.3]) by mail1x.bc.in.sel.sony.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oA90IH1l023737; Tue, 9 Nov 2010 00:18:17 GMT In-Reply-To: X-Mailer: Mew-6.3.50 on Emacs-23.2.1 (i386-mingw-nt6.1.7600 built on 2010-06-30) X-OriginatorOrg: am.sony.com X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) 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:132464 Archived-At: Mon, 8 Nov 2010 10:36:08 -0800: Stefan Monnier wrote: > > Now I am convinced. How about the change below? > > Could you send it as a context patch? I will once we figure out the right way. > > 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). You are right. I don't know how missed that. > Which is why I suggested to use a non-numeric value (just a C-u) to > trigger the "collect-string" behavior. But isn't C-u equivalent to numeric value 4? -Tak