1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

Fix more typos.

This commit is contained in:
Bastien Guerry
2013-07-28 23:52:43 +02:00
parent e06a5d7e0a
commit a55974ba59

View File

@@ -130,7 +130,7 @@ filename: learn-emacs-lisp.el
;: => [screen has two windows and cursor is in the *test* buffer] ;: => [screen has two windows and cursor is in the *test* buffer]
;; Mouse over the top window and left-click to go back. Or you can ;; Mouse over the top window and left-click to go back. Or you can
;; use `C-xo' (i.e. hold down control-x and hit j) to go to the other ;; use `C-xo' (i.e. hold down control-x and hit o) to go to the other
;; window interactively. ;; window interactively.
;; You can combine several sexps with `progn': ;; You can combine several sexps with `progn':
@@ -196,17 +196,17 @@ filename: learn-emacs-lisp.el
;; Evaluating this function returns what you entered at the prompt. ;; Evaluating this function returns what you entered at the prompt.
;; Let's make our `greeting' function prompts for your name: ;; Let's make our `greeting' function prompt for your name:
(defun greeting (from-name) (defun greeting (from-name)
(let ((your-name (read-from-minibuffer "Enter your name: "))) (let ((your-name (read-from-minibuffer "Enter your name: ")))
(insert (format "Hello!\n\I am %s and you are %s." (insert (format "Hello!\n\nI am %s and you are %s."
from-name ; the argument of the function from-name ; the argument of the function
your-name ; the let-bound var, entered at prompt your-name ; the let-bound var, entered at prompt
)))) ))))
(greeting "Bastien") (greeting "Bastien")
;; Let complete it by displaying the results in the other window: ;; Let's complete it by displaying the results in the other window:
(defun greeting (from-name) (defun greeting (from-name)
(let ((your-name (read-from-minibuffer "Enter your name: "))) (let ((your-name (read-from-minibuffer "Enter your name: ")))
(switch-to-buffer-other-window "*test*") (switch-to-buffer-other-window "*test*")
@@ -283,7 +283,7 @@ filename: learn-emacs-lisp.el
;; The `nil' argument says: the search is not bound to a position. ;; The `nil' argument says: the search is not bound to a position.
;; The `t' argument says: silently fail when nothing is found. ;; The `t' argument says: silently fail when nothing is found.
;; We use this sexp in the function below, which don't throw an error: ;; We use this sexp in the function below, which doesn't throw an error:
(defun hello-to-bonjour () (defun hello-to-bonjour ()
(switch-to-buffer-other-window "*test*") (switch-to-buffer-other-window "*test*")