From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24073: 24.5; outline-on-heading-p sees any invisible text property as outline invisible Date: Tue, 2 Aug 2016 10:31:24 -0400 Message-ID: References: <1469520753.418402.676896009.00AAC0DE@webmail.messagingengine.com> <1469679952.1866840.678960241.470C9887@webmail.messagingengine.com> <1470044267.1052174.682381049.26455152@webmail.messagingengine.com> <87fuqoa82i.fsf@users.sourceforge.net> <1470108437.2199166.683287713.52EC58A4@webmail.messagingengine.com> <1470122411.2246578.683407105.655B380C@webmail.messagingengine.com> NNTP-Posting-Host: blaine Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1470148356 9836 195.159.176.226 (2 Aug 2016 14:32:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2016 14:32:36 +0000 (UTC) Cc: 24073@debbugs.gnu.org To: Paul Rankin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 16:32:30 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUakA-000279-3j for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 16:32:30 +0200 Original-Received: from localhost ([::1]:57047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUak6-0000Gg-FG for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 10:32:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUajn-0000CV-7r for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 10:32:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUaji-0002uw-0T for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 10:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUajh-0002us-St for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 10:32:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bUajh-00030Z-NL for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 10:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2016 14:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24073-submit@debbugs.gnu.org id=B24073.147014830111536 (code B ref 24073); Tue, 02 Aug 2016 14:32:01 +0000 Original-Received: (at 24073) by debbugs.gnu.org; 2 Aug 2016 14:31:41 +0000 Original-Received: from localhost ([127.0.0.1]:53730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUajI-0002zv-Bs for submit@debbugs.gnu.org; Tue, 02 Aug 2016 10:31:40 -0400 Original-Received: from mail-oi0-f41.google.com ([209.85.218.41]:35199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUajC-0002ze-JH for 24073@debbugs.gnu.org; Tue, 02 Aug 2016 10:31:35 -0400 Original-Received: by mail-oi0-f41.google.com with SMTP id 4so28845585oih.2 for <24073@debbugs.gnu.org>; Tue, 02 Aug 2016 07:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xxpSsgFyfuCZsFMkuMB+p3L9Gggx9SdMNFoFxDnGGr8=; b=dArLiK0u4H66K6uAs1HPDThysJHSgg/djLeGHWcVCxNXN2/n9qMe+J18v+CasjpO7b /H86q3hmEl268BMoa2SgYVvUPtaOqTHSDFcFdNTqZoiQO1VesZwLb1fcsYNJeeme7cKb 3PjI0NAzMIa1SIVWAHileT/16bqGEbYwCilDeUjsbLaObStu9wODLlVFSxglePkJ4qhK 0bx7+/I6smIabkAnDyh7LgL9YS/E6cALEKY/p/Pv7pLtlhCHCFRg5kRBa2NP046x+00N AoGdui6WHYxepK9yCXBTAbq91GCNwrG/shJ32OkZXwoW5UdpfcmUYmKdFe4QdQ7BVAbA lGXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xxpSsgFyfuCZsFMkuMB+p3L9Gggx9SdMNFoFxDnGGr8=; b=TOkz3mUIfUeMAjDSKeCw5sLToOo6+epdYvy4J5LlISu40xn3oNpJkki2eQ+SNLzo4N 4DYYupfCNaIdRP5o9Y8xFLHYoC0NXKz0HcN8YlFEdXv6RkzTuA+foRfNl1QiN0WNAkcf s9gNU5c7izdOhCq6TPdPuMvQSngttOBKdZp4h/fbDTru3Fk1/lsz36bRJ22Rl1tr3fOq 40WkuCeW9MCB/uuYc999H1vJTH4iIKeGqfo9+OUFL1+yCx7YuVcXuBCq6G3Wn9+CAFJV H2bVL2FR7NwV/siJKU6AktbdlzDxGVZdoz2MvVbuTKQLBtzoEJNQStlee6KIQxWDWhdx F3kA== X-Gm-Message-State: AEkoousIg9xCSs44idY05Z8RLbnIm6EeIShVUfg+gQQyOfpNHmz0fK/uvCzp8xi3d1sBevPBF7ZCeNou7ePwhg== X-Received: by 10.202.102.75 with SMTP id a72mr37813494oic.40.1470148285068; Tue, 02 Aug 2016 07:31:25 -0700 (PDT) Original-Received: by 10.157.7.161 with HTTP; Tue, 2 Aug 2016 07:31:24 -0700 (PDT) In-Reply-To: <1470122411.2246578.683407105.655B380C@webmail.messagingengine.com> X-Google-Sender-Auth: OFB8PvmsAbRpszVFB8VnK2sr4CE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121778 Archived-At: On Tue, Aug 2, 2016 at 3:20 AM, Paul Rankin wrote: > I've added the following into my major mode to patch outline until the > bug is addressed... > > (with-eval-after-load 'outline > (advice-add 'outline-invisible-p :filter-return > (lambda (return) (eq return (or 'outline t))) > '((name . "fountain-mode-patch"))) > (dolist (fun '(outline-back-to-heading > outline-on-heading-p > outline-next-visible-heading)) > (let ((source (find-function-noselect fun))) > (with-current-buffer (car source) > (goto-char (cdr source)) > (eval (read (current-buffer)))))) > (message "Function `outline-invisible-p' has been patched")) > > But I'm a bit concerned if users install Emacs without uncompiled Lisp > source, will this result in an error that Emacs simply can't find the > library outline? Yes, perhaps you want to wrap the loop body in with-demoted-errors, or similar.