From c7c3e973612c3730615f0d7fee0cafae48d1ade9 Mon Sep 17 00:00:00 2001 From: tomnor Date: Fri, 22 May 2015 23:05:37 +0200 Subject: editorial revert of a change, remove trailing whitespace Now the regular expression is back to what it was and align with how it is in other languages. Also it aligns with the commented description of the regular expression. --- elisp.html.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index 3208ffb8..3bed5d1c 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -29,7 +29,7 @@ filename: learn-emacs-lisp.el ;; I hereby decline any responsability. Have fun! ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; +;; ;; Fire up Emacs. ;; ;; Hit the `q' key to dismiss the welcome message. @@ -42,9 +42,9 @@ filename: learn-emacs-lisp.el ;; The scratch buffer is the default buffer when opening Emacs. ;; You are never editing files: you are editing buffers that you ;; can save to a file. -;; +;; ;; "Lisp interaction" refers to a set of commands available here. -;; +;; ;; Emacs has a built-in set of commands available in every buffer, ;; and several subsets of commands available when you activate a ;; specific mode. Here we use the `lisp-interaction-mode', which @@ -109,7 +109,7 @@ filename: learn-emacs-lisp.el ;; The empty parentheses in the function's definition means that ;; it does not accept arguments. But always using `my-name' is ;; boring, let's tell the function to accept one argument (here -;; the argument is called "name"): +;; the argument is called "name"): (defun hello (name) (insert "Hello " name)) ;; `C-xC-e' => hello @@ -305,7 +305,7 @@ filename: learn-emacs-lisp.el (defun boldify-names () (switch-to-buffer-other-window "*test*") (goto-char (point-min)) - (while (re-search-forward "Bonjour \\([^!]+\\)!" nil 't) + (while (re-search-forward "Bonjour \\(.+\\)!" nil 't) (add-text-properties (match-beginning 1) (match-end 1) (list 'face 'bold))) @@ -318,7 +318,7 @@ filename: learn-emacs-lisp.el ;; The regular expression is "Bonjour \\(.+\\)!" and it reads: ;; the string "Bonjour ", and ;; a group of | this is the \\( ... \\) construct -;; any character not ! | this is the [^!] +;; any character | this is the . ;; possibly repeated | this is the + ;; and the "!" string. -- cgit v1.2.3 From 1c0eee17a6022d135ae8911105719ddaa81b187c Mon Sep 17 00:00:00 2001 From: Saurabh Sandav Date: Thu, 22 Oct 2015 18:39:33 +0530 Subject: [elisp/en] Fix typo --- elisp.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index 3bed5d1c..da86cab3 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -2,6 +2,7 @@ language: elisp contributors: - ["Bastien Guerry", "http://bzg.fr"] + - ["Saurabh Sandav", "http://github.com/SaurabhSandav"] filename: learn-emacs-lisp.el --- @@ -26,7 +27,7 @@ filename: learn-emacs-lisp.el ;; ;; Going through this tutorial won't damage your computer unless ;; you get so angry that you throw it on the floor. In that case, -;; I hereby decline any responsability. Have fun! +;; I hereby decline any responsibility. Have fun! ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- cgit v1.2.3 From c0183a42cd8e52e5ee8d46645a41ab7c86f7a134 Mon Sep 17 00:00:00 2001 From: freesoftwareneedsfreetools Date: Sun, 7 Aug 2016 16:21:54 -0500 Subject: [elisp/en] Fix tiny typo (#2327) --- elisp.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index da86cab3..c88d97f0 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -194,7 +194,7 @@ filename: learn-emacs-lisp.el ;; And evaluate it: (greeting "you") -;; Some function are interactive: +;; Some functions are interactive: (read-from-minibuffer "Enter your name: ") ;; Evaluating this function returns what you entered at the prompt. -- cgit v1.2.3 From ade62f5b50ceac56bec6f5b3b2cc961b9e9aa4a4 Mon Sep 17 00:00:00 2001 From: coelhotopetudo Date: Thu, 9 Feb 2017 13:19:42 -0200 Subject: Brief explanation about ' (quote) (#2449) --- elisp.html.markdown | 2 ++ 1 file changed, 2 insertions(+) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index c88d97f0..16a0311c 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -225,6 +225,8 @@ filename: learn-emacs-lisp.el ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Let's store a list of names: +;; If you want to create a literal list of data, use ' to stop it from +;; being evaluated - literally, "quote" the data. (setq list-of-names '("Sarah" "Chloe" "Mathilde")) ;; Get the first element of this list with `car': -- cgit v1.2.3 From feff890a569cfa3df3715a0283f87a7ef3e169f1 Mon Sep 17 00:00:00 2001 From: Bastien Date: Thu, 9 Feb 2017 17:41:11 +0100 Subject: `[fr/elisp]` Add french translation of the elisp tutorial (#2570) * clojure.html.markdown: Fix an error (s/value/key) * Add french translation of the elisp tutorial. * elisp: s/http/https * fr-fr/elisp: Fix typo and missing translation. * fr-fr/elisp: Fix spaces * elisp: Add contributor. * fr-fr/elisp: s/mini-buffer/minibuffer. * fr-fr/elisp: Fix translation. * fr-fr/elisp: Fix translation. * fr-fr/elisp: Fix typo. * fr-fr/elisp: Fix missing translation. * fr-fr/elisp: Fix content. * fr-fr/elisp: Fix typo. * fr-fr/elisp: Fix keybindings display. * fr-fr/elisp: Fix double space. * fr-fr/elisp: Fix double space. * fr-fr/elisp: Fix more spaces. * fr-fr:elisp: Fix double space. --- elisp.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index 16a0311c..bda5f00f 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -1,7 +1,7 @@ --- language: elisp contributors: - - ["Bastien Guerry", "http://bzg.fr"] + - ["Bastien Guerry", "https://bzg.fr"] - ["Saurabh Sandav", "http://github.com/SaurabhSandav"] filename: learn-emacs-lisp.el --- @@ -9,7 +9,7 @@ filename: learn-emacs-lisp.el ```scheme ;; This gives an introduction to Emacs Lisp in 15 minutes (v0.2d) ;; -;; Author: Bastien / @bzg2 / http://bzg.fr +;; Author: Bastien / @bzg2 / https://bzg.fr ;; ;; First make sure you read this text by Peter Norvig: ;; http://norvig.com/21-days.html -- cgit v1.2.3 From e95f38d53d918dc5d133ea0bbc33ff1937b4bd46 Mon Sep 17 00:00:00 2001 From: spacegoing Date: Tue, 4 Jul 2017 20:00:51 +0800 Subject: [elisp/en] fix typo (#2770) the example boldified the color instead of colorizing them --- elisp.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index bda5f00f..9d9db82e 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -303,7 +303,7 @@ filename: learn-emacs-lisp.el (hello-to-bonjour) -;; Let's colorize the names: +;; Let's boldify the names: (defun boldify-names () (switch-to-buffer-other-window "*test*") @@ -353,4 +353,5 @@ filename: learn-emacs-lisp.el ;; - Alan Schmitt ;; - LinXitoW ;; - Aaron Meurer +;; - spacegoing ``` -- cgit v1.2.3 From ccce8de379a01f893aada229d10d37e2cbc586b0 Mon Sep 17 00:00:00 2001 From: ven Date: Tue, 4 Jul 2017 14:01:21 +0200 Subject: Remove nonstandard contributor/author sections --- elisp.html.markdown | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index 9d9db82e..518ad985 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -9,8 +9,6 @@ filename: learn-emacs-lisp.el ```scheme ;; This gives an introduction to Emacs Lisp in 15 minutes (v0.2d) ;; -;; Author: Bastien / @bzg2 / https://bzg.fr -;; ;; First make sure you read this text by Peter Norvig: ;; http://norvig.com/21-days.html ;; @@ -344,14 +342,4 @@ filename: learn-emacs-lisp.el ;; ;; To read an online introduction to Emacs Lisp: ;; https://www.gnu.org/software/emacs/manual/html_node/eintr/index.html - -;; Thanks to these people for their feedback and suggestions: -;; - Wes Hardaker -;; - notbob -;; - Kevin Montuori -;; - Arne Babenhauserheide -;; - Alan Schmitt -;; - LinXitoW -;; - Aaron Meurer -;; - spacegoing ``` -- cgit v1.2.3