From 84390eec3b7c659dad3799c31e5573a7e16f228e Mon Sep 17 00:00:00 2001 From: morioka Date: Tue, 20 Oct 1998 17:32:42 +0000 Subject: [PATCH] Separate invisible features from poe to invisible. --- poe-18.el | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/poe-18.el b/poe-18.el index 798ec84..c7f72db 100644 --- a/poe-18.el +++ b/poe-18.el @@ -362,62 +362,6 @@ With optional non-nil ALL, force redisplay of all mode-lines. (defun remove-text-properties (start end properties &optional object)) -;;; @@ visible/invisible -;;; - -(defmacro enable-invisible () - (` - (progn - (make-local-variable 'original-selective-display) - (setq original-selective-display selective-display) - (setq selective-display t) - ))) - -(defmacro end-of-invisible () - (` (setq selective-display - (if (boundp 'original-selective-display) - original-selective-display)) - )) - -(defun invisible-region (start end) - (let ((buffer-read-only nil) ;Okay even if write protected. - (modp (buffer-modified-p))) - (if (save-excursion - (goto-char (1- end)) - (eq (following-char) ?\n) - ) - (setq end (1- end)) - ) - (unwind-protect - (subst-char-in-region start end ?\n ?\^M t) - (set-buffer-modified-p modp) - ))) - -(defun visible-region (start end) - (let ((buffer-read-only nil) ;Okay even if write protected. - (modp (buffer-modified-p))) - (unwind-protect - (subst-char-in-region start end ?\^M ?\n t) - (set-buffer-modified-p modp) - ))) - -(defun invisible-p (pos) - (save-excursion - (goto-char pos) - (eq (following-char) ?\^M) - )) - -(defun next-visible-point (pos) - (save-excursion - (goto-char pos) - (end-of-line) - (if (eq (following-char) ?\n) - (forward-char) - ) - (point) - )) - - ;;; @ buffer ;;; -- 1.7.10.4