From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Replace selective-display in Gnus (was: obsolete selective-display ?) Date: Sat, 29 Aug 2009 10:34:09 +0200 Message-ID: <87ljl381dq.fsf_-_@marauder.physik.uni-ulm.de> References: <200908290527.n7T5R7Na028106@godzilla.ics.uci.edu> <83bplzaxvm.fsf@gnu.org> <200908290732.n7T7WJTf029070@godzilla.ics.uci.edu> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251534879 2765 80.91.229.12 (29 Aug 2009 08:34:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 08:34:39 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 29 10:34:32 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 1MhJOJ-0007xU-90 for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2009 10:34:31 +0200 Original-Received: from localhost ([127.0.0.1]:54609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhJOH-0000He-8n for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2009 04:34:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhJOB-0000HU-Ri for emacs-devel@gnu.org; Sat, 29 Aug 2009 04:34:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhJO7-0000Ew-Dj for emacs-devel@gnu.org; Sat, 29 Aug 2009 04:34:23 -0400 Original-Received: from [199.232.76.173] (port=55662 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhJO7-0000Es-3V for emacs-devel@gnu.org; Sat, 29 Aug 2009 04:34:19 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:34188) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhJO6-0000wK-FK for emacs-devel@gnu.org; Sat, 29 Aug 2009 04:34:18 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n7T8YCDd021329; Sat, 29 Aug 2009 10:34:12 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 7C3C21CE66; Sat, 29 Aug 2009 10:34:12 +0200 (CEST) X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Followup-To: Dan Nicolaescu , ding@gnus.org, emacs-devel@gnu.org In-Reply-To: <200908290732.n7T7WJTf029070@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sat, 29 Aug 2009 00:32:19 -0700 (PDT)") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: poseidon 1085; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new 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:114828 gmane.emacs.gnus.general:68934 Archived-At: On Sat, Aug 29 2009, Dan Nicolaescu wrote: > Eli Zaretskii writes: > > > From: Dan Nicolaescu > > > Is it time for selective-display be declared obsolete? > > > AFAICT there's a single active use in the tree, in gnus. > >=20 > > What are the alternatives? > > 'invisible property on overlays Gnus uses selective-display to hide threads in the summary buffer [1]. AFAICS, the relevant code is in `gnus-sum.el'. In `gnus-summary-hide-thread' ... (prog1 (if (and (> (point) start) (search-backward "\n" start t)) (progn (subst-char-in-region start (point) ?\n ?\^M) (gnus-summary-goto-subject article)) (goto-char start) nil)) ... and `gnus-summary-show-thread' ... (prog1 ;; Any hidden lines here? (search-forward "\r" end t) (subst-char-in-region beg end ?\^M ?\n t) (goto-char orig) (gnus-summary-position-point)) Could someone propose a patch how to use invisible overlays here? It should be compatible with Emacs 21 (and up) and XEmacs 21.4 (and up) if possible. There's also `gnus-summary-mode' where probably these lines should be removed: (setq selective-display t) (setq selective-display-ellipses t) ;Display `...' Bye, Reiner. [1] Examples: show threads (`T S', `gnus-summary-show-all-threads'): 3.6k Dan Nicolaescu =E2=94=8C=E2=94=80=E2=96=B6 obsolete selec= tive-display ? 3.8k Eli Zaretskii =E2=95=B0=E2=94=AC=E2=94=80=E2=96=BA=20=20 4.2k Dan Nicolaescu =E2=95=B0=E2=94=AC=E2=94=80=E2=96=BA=20=20 11k Ted Zlatanov =E2=94=8C=E2=94=80=E2=96=B6 Re: Emacs 23.1= flushes stdin on startup 4.0k Stefan Monnier =E2=95=B0=E2=94=AC=E2=94=80=E2=96=BA=20=20 10k Ted Zlatanov =E2=95=B0=E2=94=AC=E2=94=80=E2=96=BA=20=20 5.5k Tom Tromey =E2=94=8C=E2=94=80=E2=96=B6 advice needed = for multi-threading patch 6.0k Giuseppe Scrivano =E2=95=B0=E2=94=AC=E2=94=80=E2=96=BA=20=20 hide threads (`T H', `gnus-summary-hide-all-threads'): 3.6k Dan Nicolaescu =E2=94=8C=E2=94=80=E2=96=B6 obsolete selec= tive-display ?... 11k Ted Zlatanov =E2=94=8C=E2=94=80=E2=96=B6 Re: Emacs 23.1= flushes stdin on startup... 5.5k Tom Tromey =E2=94=8C=E2=94=80=E2=96=B6 advice needed = for multi-threading patch... --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/