🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #100081

OUTLINE mode problem

#100081
From: Bill Vrotney
Date: Tue, 30 Jan 1990 23:37
24 lines
1486 bytes
With our latest release of GNU "GNU Emacs 18.54.15 of  Mon Jun 19 1989
on deimos (berkeley-unix)" in outline mode when you do a 'show-subtree
nothing happens unless you do a 'recenter (^L).  I  tried to  fix this
with the following patch:


; Fix no activation after certain operations in outline mode.
(defun outline-flag-region (from to flag)
  "Hides or shows lines from FROM to TO, according to FLAG.
If FLAG is `\\n' (newline character) then text is shown,
while if FLAG is `\\^M' (control-M) the text is hidden."
  (let ((modp (buffer-modified-p)))
    (unwind-protect
        (subst-char-in-region from to
			      (if (= flag ?\n) ?\^M ?\n)
			      flag nil)  ; <--- was flag t in original
     (set-buffer-modified-p modp))))


But then loading outline mode files takes a very long time. Is there a
better patch?

Bill Vrotney
Technical Details
Message-ID: <9001302337.AA24545@deimos.ads.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bu-cs!lll-winken!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ADS.COM!bvrotney

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,759247c5eafa89cd,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-01-30 21:03:23 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bu-cs!lll-winken!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ADS.COM!bvrotney
From: bvrotney@ADS.COM (Bill Vrotney)
Newsgroups: gnu.emacs.bug
Subject: OUTLINE mode problem
Message-ID: <9001302337.AA24545@deimos.ads.com>
Date: 30 Jan 90 23:37:23 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24
Posted: Wed Jan 31 00:37:23 1990