help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relative performance of text-properties search functions


From: Thorsten Jolitz
Subject: Re: Relative performance of text-properties search functions
Date: Fri, 24 May 2013 19:26:39 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Thorsten Jolitz <tjolitz@gmail.com>
>> Date: Fri, 24 May 2013 16:10:04 +0200
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> From: Thorsten Jolitz <tjolitz@gmail.com>
>> >> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]