From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.bugs Subject: bug#24073: 24.5; outline-on-heading-p sees any invisible text property as outline invisible Date: Wed, 03 Aug 2016 13:18:31 +1000 Message-ID: <1470194311.168022.684415921.0ED86705@webmail.messagingengine.com> 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.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1470194371 6638 195.159.176.226 (3 Aug 2016 03:19:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2016 03:19:31 +0000 (UTC) Cc: 24073@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 03 05:19:27 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 1bUmiM-0000jV-86 for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2016 05:19:26 +0200 Original-Received: from localhost ([::1]:59952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUmiD-0004OE-Pi for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 23:19:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUmi4-0004Md-G5 for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 23:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUmi1-0008DH-7L for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 23:19:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUmhy-0008D9-RL for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 23:19:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bUmhy-0000ai-Hf for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 23:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2016 03:19:02 +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.14701943132231 (code B ref 24073); Wed, 03 Aug 2016 03:19:02 +0000 Original-Received: (at 24073) by debbugs.gnu.org; 3 Aug 2016 03:18:33 +0000 Original-Received: from localhost ([127.0.0.1]:53991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUmhV-0000Zv-IO for submit@debbugs.gnu.org; Tue, 02 Aug 2016 23:18:33 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUmhT-0000Zn-Ln for 24073@debbugs.gnu.org; Tue, 02 Aug 2016 23:18:31 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6FD8E20363; Tue, 2 Aug 2016 23:18:31 -0400 (EDT) Original-Received: from web3 ([10.202.2.213]) by compute7.internal (MEProxy); Tue, 02 Aug 2016 23:18:31 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=dGMBOXRCfNcm9n5TCWg0M5By6So =; b=DPYy6SqHkDL9G05nGeCrKdN320odRycKlkgxsqPkTr2fnAdckODVNIdcB9X fmli9Mm9aEM2L9lgAZ8f2yxRBP4D0nelRPUqRO9ee4zo8bbZEdQFQdYYBE1jrgnk aBtTi/5aqPaYlSIaTVgz1DVyH4QJSElZ9gfBBJHZyH5s2fdA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=dGMBOXRCfNcm9n5 TCWg0M5By6So=; b=Norq1a2BVDebSN7IO/rQM9tGK34PuQmVucCLEEC29afV5e1 rfzkIwoNYKcS/73NLzvs9s0LQdjVuBu7XAjzBZvkTbFmnRIZUn6mnZqxwSU3xyYN 3Cy90rd9wwwMOk8A0oJIY0uTBNIYj8BDmQEPKnTU34++9HBt4EJGD8+ZIxug= Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3B7BA1628F; Tue, 2 Aug 2016 23:18:31 -0400 (EDT) X-Sasl-Enc: M4lICAg8bnoqiFS6cv6EyTSDVqqVKxURWYZcbJixZjcC 1470194311 X-Mailer: MessagingEngine.com Webmail Interface - ajax-501c3c37 In-Reply-To: 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:121797 Archived-At: Noam Postavsky on Tue, 02 Aug 2016 10:27 -0400: > >> Oh, then your original was okay, it just had a bit of dead code. > >> Simply (lambda (return) (eq return 'outline)) should suffice. > > > > Then this will fail if/when outline-invisible-p is fixed to > > return t when I wanna future-proof this, so users don't notice > > the transition. Sorry my previous reply neglected to mention > > returning t. > > Oh, then you need (lambda (return) (or (eq return 'outline) (eq return > t))) Alternatively maybe I can tempt you into learning pcase ;) > (lambda (return) (pcase return ((or `outline `t) t))) What a rookie error on my part! Yes, of course. I'll look into pcase, but I don't like the aesthetic of the backtick or underscore.... Noam Postavsky on Tue, 02 Aug 2016 10:31 -0400: > > 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. Will do. Thanks for your help!