From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69152 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Replace selective-display in Gnus Date: Mon, 19 Oct 2009 08:51:43 +0900 Organization: Emacsen advocacy group Message-ID: References: <200908290527.n7T5R7Na028106@godzilla.ics.uci.edu> <83bplzaxvm.fsf@gnu.org> <200908290732.n7T7WJTf029070@godzilla.ics.uci.edu> <87ljl381dq.fsf_-_@marauder.physik.uni-ulm.de> <87skfa7a9y.fsf@marauder.physik.uni-ulm.de> <200908291826.n7TIQUFM003639@godzilla.ics.uci.edu> <87ljjdokyq.fsf@marauder.physik.uni-ulm.de> <87y6nal2uu.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255909965 27115 80.91.229.12 (18 Oct 2009 23:52:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 23:52:45 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org To: ding@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 01:52:35 2009 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 1MzfYA-0002te-AH for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2009 01:52:34 +0200 Original-Received: from localhost ([127.0.0.1]:51660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzfY9-0004Lq-U2 for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2009 19:52:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzfXk-0003yZ-4k for emacs-devel@gnu.org; Sun, 18 Oct 2009 19:52:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzfXd-0003sN-A3 for emacs-devel@gnu.org; Sun, 18 Oct 2009 19:52:05 -0400 Original-Received: from [199.232.76.173] (port=34422 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzfXd-0003s7-18 for emacs-devel@gnu.org; Sun, 18 Oct 2009 19:52:01 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:55763) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzfXc-0002VY-Io for emacs-devel@gnu.org; Sun, 18 Oct 2009 19:52:00 -0400 Original-Received: from localhost ([127.0.0.1]:50763) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1MzfWv-0002CV-Ra; Sun, 18 Oct 2009 18:51:18 -0500 X-Hashcash: 1:20:091018:ding@gnus.org::QPQFw9qg9PHeh+J/:00004JaZ X-Hashcash: 1:20:091018:emacs-devel@gnu.org::aToBU5luvNUd7ux2:0000000000000000000000000000000000000000000Nc4 X-Hashcash: 1:20:091018:stephen@xemacs.org::6JeAvBDydDvFuKbd:00000000000000000000000000000000000000000004ozB X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:cW9IC/QmVXWPBa7MyFtp6duImtQ= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:116233 gmane.emacs.gnus.general:69152 Archived-At: >>>>> Reiner Steib wrote: > On Fri, Oct 16 2009, Katsumi Yamaoka wrote: [...] >> NOTE: >> XEmacs 21.4 and SXEmacs users need to have the `calendar' XEmacs >> package installed, that provides the `add-to-invisibility-spec' >> function in auto-autoloads.el. > That is a strange dependency. Why is such a (core) function defined > in the calendar package? Actually that function is defined in cal-compat.el along with the ";;;###autoload" directive. There are also many Emacs compat functions, `line-beginning-position', `match-string-no-properties', `propertize', etc. defined in similar ways. Maybe those were introduced when importing calender from Emacs. > If we keep this dependency, please add it to (info "(gnus)XEmacs") > and add an appropriate error message at runtime. Besides the calendar package, the c-support package and the semantic package use `add-to-invisibility-spec', too; the former provides the function definition by itself but the later doesn't. It seems to be beyond control of Gnus to guide users about it or tidy it up. > But the whole point of these changes were to allow to declare > selective-display obsolete in the current Emacs version (Gnus is the > only use). Adding so many compatibility hacks is ugly, IMHO. I'd > rather keep the old selective-display code for Emacs 21 and XEmacs > (with appropriate feature tests for `remove-overlays' > `next-single-char-property-change'. WDYT? In order to replace the selective-display feature, now the Gnus head uses the overlay functions for Emacs and the extent functions for XEmacs, and both work properly in all the Emacs versions that Gnus supports. The compat hacks I added (`gnus-overlay-get' and `gnus-overlays-in') are not so many and they follow Gnus' way (i.e., not using fsf-compat/overlay.el). So, keeping the old selective-display code for some Emacsen is not necessary, I believe. Cf. http://article.gmane.org/gmane.emacs.gnus.commits/6239 Regards,