Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!agate!ucbvax!tut.cis.ohio-state.edu!GIBBS.PHYSICS.PURDUE.EDU!ray From: ray@GIBBS.PHYSICS.PURDUE.EDU (Ray Moody) Newsgroups: gnu.emacs.bug Subject: Outline mode and subst-char-in-region Message-ID: <8907110353.AA16092@gibbs.physics.purdue.edu> Date: 11 Jul 89 03:53:48 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31 Outline mode calls subst-char-in-region in such a manner that the buffer is marked as "not really changed". This confuses the DoDsp() -- it needs to know if the buffer has changed in order to properly update the screen. The net result is that ^L must be pushed after executing \C-c \C-s. Ray ------------------------------------------------------------------------------- RCS file: /usr/src/new/gnu/emacs/lisp/RCS/outline.el,v retrieving revision 18.54 diff -c -r18.54 /usr/src/new/gnu/emacs/lisp/outline.el *** /tmp/,RCSt1016087 Mon Jul 10 22:53:16 1989 --- /usr/src/new/gnu/emacs/lisp/outline.el Mon Jul 10 22:52:50 1989 *************** *** 159,165 (unwind-protect (subst-char-in-region from to (if (= flag ?\n) ?\^M ?\n) ! flag t) (set-buffer-modified-p modp)))) (defun hide-entry () --- 159,165 ----- (unwind-protect (subst-char-in-region from to (if (= flag ?\n) ?\^M ?\n) ! flag) (set-buffer-modified-p modp)))) (defun hide-entry ()