aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorPierre Courtieu2004-03-10 18:20:14 +0000
committerPierre Courtieu2004-03-10 18:20:14 +0000
commit4221aa359e8e32738d502515e1f63be58dc702d5 (patch)
tree73845456a3936c6269d08e9c2530d16a9e911ab3 /generic
parent27096c83e1bd7bf0e2a445f7dedbd224694bba1c (diff)
holes-short-doc now is in view-mode.
Diffstat (limited to 'generic')
-rw-r--r--generic/holes.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/holes.el b/generic/holes.el
index 5b05a418..cd559eb2 100644
--- a/generic/holes.el
+++ b/generic/holes.el
@@ -112,13 +112,18 @@ is), which is annoying.
")
(goto-char (point-min))
+ (if (string-match "NU Emacs" (emacs-version))
+ (view-buffer (current-buffer) (function (lambda (b) (bury-buffer))))
+ (view-mode nil (function (lambda (b) (bury-buffer))))
+ )
)
-;Pierre: should do almost what it does in xemacs
+
(cond
((string-match "NU Emacs" (emacs-version))
(transient-mark-mode 1) ; for holes created by a simple click
+;Pierre: should do almost what region-exists-p does in xemacs
(defmacro hole-region-exists-p nil
"Returns t if the mark is active, nil otherwise."
`(not (eq mark-active nil))