From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; newsticker and buffer-invisibility-spec: Date: Wed, 22 Aug 2007 03:48:57 -0700 Message-ID: <18124.5273.269781.53690@gargle.gargle.HOWL> References: <20070820132850.326D212A4071@localhost> Reply-To: raman@users.sf.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187779839 18331 80.91.229.12 (22 Aug 2007 10:50:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 10:50:39 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, raman@users.sf.net To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 12:50:38 2007 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.50) id 1INnnI-0000LX-GH for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 12:50:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INnnH-0005Bp-OX for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 06:50:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INnll-0003U4-BU for emacs-devel@gnu.org; Wed, 22 Aug 2007 06:49:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INnlk-0003Tp-P2 for emacs-devel@gnu.org; Wed, 22 Aug 2007 06:49:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INnlk-0003Th-Lb for emacs-devel@gnu.org; Wed, 22 Aug 2007 06:49:00 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INnlk-0001WM-8Z for emacs-devel@gnu.org; Wed, 22 Aug 2007 06:49:00 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INnpk-0000pU-B2 for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 06:53:08 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1INnlj-0001Vq-2G for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 06:48:59 -0400 Original-Received: from alnrmhc13.comcast.net ([206.18.177.53]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INnli-0001Vg-OF for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 06:48:58 -0400 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (alnrmhc13) with ESMTP id <20070822104857b1300edkp6e>; Wed, 22 Aug 2007 10:48:57 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 53FBE12A4071; Wed, 22 Aug 2007 03:48:57 -0700 (PDT) In-Reply-To: X-Mailer: VM alpha-478 under Emacs 22.1.50.23 (i686-pc-linux-gnu) x-attribution: tvr X-Detected-Kernel: NetCache Data OnTap 5.x X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:76954 gmane.emacs.pretest.bugs:19578 Archived-At: Its bizarre use of buffer-invisibility-spec was triggering a bug in the context of Emacspeak. I've fixed my code to work around it -- but it would be good to get newsticker fixed up to match emacs' use of buffer-invisibility-spec. >>>>> "Stefan" == Stefan Monnier writes: >> I've not used newsticker in a while, and I noticed today >> that there seems to be a problem with the way >> buffer-invisibility-spec is getting handled in newsticker >> buffers. Stefan> >> Could someone who can see the display look at it and >> confirm that there is a problem, or that it is indeed >> doing the right thing so I can chase this down further? Stefan> Stefan> I don't know how to run the newsticker code to try it Stefan> out, but the code looks odd indeed: it presumes that Stefan> the invisibility property can be a list of values and Stefan> that if one of those values is a member of Stefan> buffer-invisibility-spec then the text is invisible. Stefan> But in reality, the invisible property is not treated Stefan> as a list, its value (which could presumably be a Stefan> list, but that would be asking for trouble) is Stefan> directly looked up in buffer-invisibility-spec. Stefan> I.e. newsticker--lists-intersect-p (which is always Stefan> called with (get-text-property FOO 'invisible) as Stefan> first arg and buffer-invisibility-spec as second, so Stefan> it should really be replaced by a new function Stefan> newsticker--invisible-p) should be Stefan> newsticker--list-member-p or somesuch. Stefan> Stefan> But fixing this function is not enough because the Stefan> rest of the code makes use of the nonexistent Stefan> feature. I've looked at the XEmacs-21.4.20 docstring Stefan> for buffer-invisibility-spec and it doesn't seem to Stefan> document such an extension either, so I have no idea Stefan> in which circumstance this code may work. Stefan> Stefan> The problematic code was part of the 1.1 revision Stefan> (checked in on 12 Sep 2005), so there's no change log Stefan> to explain the problem. Stefan> Stefan> Stefan> Stefan Stefan> Stefan> Stefan> _______________________________________________ Stefan> Emacs-devel mailing list Emacs-devel@gnu.org Stefan> http://lists.gnu.org/mailman/listinfo/emacs-devel -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs