aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/tutorial.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/tutorial.el')
-rw-r--r--lisp/tutorial.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/tutorial.el b/lisp/tutorial.el
index 77ef50843d3..c57ec33d2e2 100644
--- a/lisp/tutorial.el
+++ b/lisp/tutorial.el
@@ -253,7 +253,7 @@ LEFT and RIGHT are the elements to compare."
253 ;; * INSERTING AND DELETING 253 ;; * INSERTING AND DELETING
254 ;; C-u 8 * to insert ********. 254 ;; C-u 8 * to insert ********.
255 (delete-backward-char "\d") 255 (delete-backward-char "\d")
256 (delete-forward-char [?\C-d]) 256 (delete-char [?\C-d])
257 (backward-kill-word [?\M-\d]) 257 (backward-kill-word [?\M-\d])
258 (kill-word [?\M-d]) 258 (kill-word [?\M-d])
259 (kill-line [?\C-k]) 259 (kill-line [?\C-k])
@@ -298,7 +298,7 @@ LEFT and RIGHT are the elements to compare."
298 (isearch-backward [?\C-r]) 298 (isearch-backward [?\C-r])
299 299
300 ;; * MULTIPLE WINDOWS 300 ;; * MULTIPLE WINDOWS
301 (split-window-vertically [?\C-x ?2]) 301 (split-window-above-each-other [?\C-x ?2])
302 (scroll-other-window [?\C-\M-v]) 302 (scroll-other-window [?\C-\M-v])
303 (other-window [?\C-x ?o]) 303 (other-window [?\C-x ?o])
304 (find-file-other-window [?\C-x ?4 ?\C-f]) 304 (find-file-other-window [?\C-x ?4 ?\C-f])
@@ -889,6 +889,11 @@ Run the Viper tutorial? "))
889 (search-forward ">>") 889 (search-forward ">>")
890 (replace-match "]"))) 890 (replace-match "]")))
891 (beginning-of-line) 891 (beginning-of-line)
892 ;; FIXME: if the window is not tall, and especially if the
893 ;; big red "NOTICE: The main purpose..." text has been
894 ;; inserted at the start of the buffer, the "type C-v to
895 ;; move to the next screen" might not be visible on the
896 ;; first screen (n < 0). How will the novice know what to do?
892 (let ((n (- (window-height (selected-window)) 897 (let ((n (- (window-height (selected-window))
893 (count-lines (point-min) (point)) 898 (count-lines (point-min) (point))
894 6))) 899 6)))
@@ -897,7 +902,7 @@ Run the Viper tutorial? "))
897 ;; For a short gap, we don't need the [...] line, 902 ;; For a short gap, we don't need the [...] line,
898 ;; so delete it. 903 ;; so delete it.
899 (delete-region (point) (progn (end-of-line) (point))) 904 (delete-region (point) (progn (end-of-line) (point)))
900 (newline n)) 905 (if (> n 0) (newline n)))
901 ;; Some people get confused by the large gap. 906 ;; Some people get confused by the large gap.
902 (newline (/ n 2)) 907 (newline (/ n 2))
903 908