From: morioka Date: Tue, 20 Oct 1998 17:32:42 +0000 (+0000) Subject: Separate invisible features from poe to invisible. X-Git-Tag: apel-9_5~12 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84390eec3b7c659dad3799c31e5573a7e16f228e;p=elisp%2Fapel.git Separate invisible features from poe to invisible. --- 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 ;;;