From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Relative performance of text-properties search functions Date: Fri, 24 May 2013 19:26:39 +0200 Message-ID: <87mwrkb86o.fsf@gmail.com> References: <87fvxdsxg0.fsf@gmail.com> <83txltsnrq.fsf@gnu.org> <87vc68bhab.fsf@gmail.com> <83a9nks8ie.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369416469 26382 80.91.229.3 (24 May 2013 17:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 17:27:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 24 19:27:49 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfvmN-0005B3-UA for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 19:27:48 +0200 Original-Received: from localhost ([::1]:59270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvmN-0005lk-GJ for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 13:27:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufvlc-0004ue-1E for help-gnu-emacs@gnu.org; Fri, 24 May 2013 13:27:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfvlW-0001Pt-4g for help-gnu-emacs@gnu.org; Fri, 24 May 2013 13:26:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvlV-0001Pm-Ux for help-gnu-emacs@gnu.org; Fri, 24 May 2013 13:26:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfvlU-0004fV-Sv for help-gnu-emacs@gnu.org; Fri, 24 May 2013 19:26:52 +0200 Original-Received: from e178061221.adsl.alicedsl.de ([85.178.61.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 19:26:52 +0200 Original-Received: from tjolitz by e178061221.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 19:26:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 72 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178061221.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:cIoF85yBBkQS1QpvxO8FJ1ZRB5c= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91029 Archived-At: Eli Zaretskii writes: >> From: Thorsten Jolitz >> Date: Fri, 24 May 2013 16:10:04 +0200 >> >> Eli Zaretskii writes: >> >> >> From: Thorsten Jolitz >> >> Date: Thu, 23 May 2013 14:16:47 +0200 >> >> >> >> the right thing to do (from a performance point of view) in a case where >> >> at the end of each outline (or org-mode) headline in a buffer a >> >> replacing display spec should be inserted, and then updated many times >> >> afterwards (either on user demand or via a visibility-change hook): >> > >> > Beware: too many replacing display specs will slow down redisplay in >> > Emacs 24.1 and later. If you have alternatives, consider them first. >> >> I can imagine that in a .emacs with thousands of lines and hundreds of >> headllines, redisplay of some headline cookies with every visibility >> change will make Emacs work hard. > > You were talking about outline or org-mode, so how is .emacs relevant? Because my .emacs looks like this: ,---------------------------------------- | ;; * init.el --- my Emacs Init File | ;; ** Commentary | ;; * Prerequisites | ;; ** Start Message and Start Time | ;; ** Setup Parts | ;; ** Environment | ;; ** Loading Emacs Lisp Libraries | ;; ** Debugging | ;; * [Screen Input Keys Cmd Enter Exit] | ;; ** 1 (info "(emacs)Screen") | ;; ** 2 (info "(emacs)User Input") | ;; ** 3 (info "(emacs)Keys") | ;; ** 4 (info "(emacs)Commands") | ;; ** 5 (info "(emacs)Entering Emacs") | ;; ** 6 (info "(emacs)Exiting") | ;; * [Basic-Edit Minibuf M-x Help] | [...] `---------------------------------------- with outline-minor-mode and outshine.el activated. For me, with outshine.el, outorg.el and navi-mode.el, my Emacs Lisp (and other programming language) buffers have a very similar look&kfeel like Org-mode buffers, and I do all significant editing of comment-strings in temporary Org-mode buffers (using outorg.el or poporg.el). This way the line between Org-mode and programming language major modes is really blurring, I use outline functionality all the time, and I edit text in Org-mode most of the time. See this article for more information: ,----------------------------------------------------------- | http://orgmode.org/worg/org-tutorials/org-outside-org.html `----------------------------------------------------------- and this screencast for a video demonstration: ,------------------------------------------- | http://www.youtube.com/watch?v=nqE6YxlY0rw `------------------------------------------- -- cheers, Thorsten