Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CE864429E36 for ; Wed, 25 Jan 2012 09:36:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocI8VM-rXCIo for ; Wed, 25 Jan 2012 09:36:16 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 1796D431FBC for ; Wed, 25 Jan 2012 09:36:15 -0800 (PST) Received: by bkbzt19 with SMTP id zt19so3689599bkb.26 for ; Wed, 25 Jan 2012 09:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=XFwv70bRXYJtL1J/zrFgVY6Qkd8iRCRCE1l2n3rHZ70=; b=QTy5LOMnp3YeCI3i1AmsiuC+qNOwYj5oF8FuLXabOMJt6ZIlR8AuxHiGqJoEJvQinO 210f1YluqBqjVkcqLwZcgBroDCn3fVLC2xKZQMhZWxApWj9//4QigrYwRMaugifeZ5Zn nyfFWBITvzjmGR6S8kuEh5dnBk/NktV3AIeuU= Received: by 10.205.124.11 with SMTP id gm11mr7347922bkc.68.1327512974740; Wed, 25 Jan 2012 09:36:14 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id bw9sm2496198bkb.8.2012.01.25.09.36.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 09:36:14 -0800 (PST) From: Dmitry Kurochkin To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH 1/4 v2] test: `visible-buffer-substring' should not return text properties. In-Reply-To: <1327506328-22126-2-git-send-email-dme@dme.org> References: <1327503908-17226-1-git-send-email-dme@dme.org> <1327506328-22126-1-git-send-email-dme@dme.org> <1327506328-22126-2-git-send-email-dme@dme.org> User-Agent: Notmuch/0.11+116~ge6e10b8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 25 Jan 2012 21:35:07 +0400 Message-ID: <87sjj3heic.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 17:36:16 -0000 On Wed, 25 Jan 2012 15:45:25 +0000, David Edmondson wrote: > When using `visible-buffer-substring' to examine a buffer, the text > properties are not useful, so don't include them. > --- > test/test-lib.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/test/test-lib.el b/test/test-lib.el > index bc75f06..36e793a 100644 > --- a/test/test-lib.el > +++ b/test/test-lib.el > @@ -60,7 +60,7 @@ FILENAME is OUTPUT." > (while (< start end) > (let ((next-pos (next-char-property-change start end))) > (when (not (invisible-p start)) > - (setq str (concat str (buffer-substring start next-pos)))) > + (setq str (concat str (buffer-substring-no-properties start next-pos)))) I would wrap this line. But would not insist :) Please update `visible-buffer-substring' and `visible-buffer-string' docstring accordingly. Smth like: "Same as `buffer-substring-no-properties', but excludes invisible text." "Same as `buffer-string', but excludes invisible text and text properties." Regards, Dmitry > (setq start next-pos))) > str)) > > -- > 1.7.8.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch