From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 61E3F421192 for ; Thu, 30 Jun 2011 21:55:54 -0700 (PDT) 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 yrYKGlI-Oo2H for ; Thu, 30 Jun 2011 21:55:54 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-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 C398C42118E for ; Thu, 30 Jun 2011 21:55:53 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id 12so2682445bwg.26 for ; Thu, 30 Jun 2011 21:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=EQGutRe8kaXRBLRGLGIR3oP7dijFaXg0lCg+dZ9ESlI=; b=ixt5WTSlKOaJ58daXGx0aYDvnPBKYl/Iksq8rHBN9W6mYM2OX8nBCP7+hG7AK4qtWb ypsW4pUNmmqkt3scGjnoyuF72buuD5U5DMEVxusubAeMFM7fkjUbZUg3Es0Dib4a20Ha c2lnTJZTUfg09QZoGTvLglKZJzwnCjvl5BR48= Received: by 10.204.13.199 with SMTP id d7mr626566bka.102.1309496153436; Thu, 30 Jun 2011 21:55:53 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id k16sm2651686bks.13.2011.06.30.21.55.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 21:55:52 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v2 7/7] emacs: remove unused `point-invisible-p' function Date: Fri, 1 Jul 2011 08:55:22 +0400 Message-Id: <1309496122-4965-8-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309496122-4965-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1309376558-26284-1-git-send-email-dmitry.kurochkin@gmail.com> <1309496122-4965-1-git-send-email-dmitry.kurochkin@gmail.com> 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: Fri, 01 Jul 2011 04:55:54 -0000 `point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index f93c957..0f856bf 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -105,21 +105,6 @@ the user hasn't set this variable with the old or new value." ;; -;; XXX: This should be a generic function in emacs somewhere, not -;; here. -(defun point-invisible-p () - "Return whether the character at point is invisible. - -Here visibility is determined by `buffer-invisibility-spec' and -the invisible property of any overlays for point. It doesn't have -anything to do with whether point is currently being displayed -within the current window." - (let ((prop (get-char-property (point) 'invisible))) - (if (eq buffer-invisibility-spec t) - prop - (or (memq prop buffer-invisibility-spec) - (assq prop buffer-invisibility-spec))))) - (defun notmuch-remove-if-not (predicate list) "Return a copy of LIST with all items not satisfying PREDICATE removed." (let (out) -- 1.7.5.4