update.
[elisp/apel.git] / poe-18.el
index 4c4a830..c3250e9 100644 (file)
--- a/poe-18.el
+++ b/poe-18.el
@@ -31,13 +31,13 @@ VARIABLE should be a string.  VALUE is optional; if not provided or is
 This function works by modifying `process-environment'."
   t)
 
-(defvar data-directory exec-directory)
+(defvar-maybe data-directory exec-directory)
 
 
 ;;; @ for EMACS 18.55
 ;;;
 
-(defvar buffer-undo-list nil)
+(defvar-maybe buffer-undo-list nil)
 
 
 ;;; @ hook
@@ -362,71 +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)
-    ))
-
-
-;;; @ string
-;;;
-
-(defun char-list-to-string (char-list)
-  "Convert list of character CHAR-LIST to string. [poe-18.el]"
-  (mapconcat (function char-to-string) char-list "")
-  )
-
-
 ;;; @ buffer
 ;;;