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 From 54187b4e4d035cd11a38a330ab8a9689545d35aa Mon Sep 17 00:00:00 2001 From: Liam Esteban Prince Date: Mon, 18 Mar 2019 21:17:45 +0000 Subject: t evaluates to t, so it doesn't need to be quoted https://www.gnu.org/software/emacs/manual/html_node/elisp/nil-and-t.html --- elisp.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'elisp.html.markdown') diff --git a/elisp.html.markdown b/elisp.html.markdown index 518ad985..f839dac0 100644 --- a/elisp.html.markdown +++ b/elisp.html.markdown @@ -281,7 +281,7 @@ filename: learn-emacs-lisp.el ;; should stop searching at some point in the buffer, and whether it ;; should silently fail when nothing is found: -;; (search-forward "Hello" nil 't) does the trick: +;; (search-forward "Hello" nil t) does the trick: ;; The `nil' argument says: the search is not bound to a position. ;; The `'t' argument says: silently fail when nothing is found. @@ -295,7 +295,7 @@ filename: learn-emacs-lisp.el (mapcar 'hello list-of-names) (goto-char (point-min)) ;; Replace "Hello" by "Bonjour" - (while (search-forward "Hello" nil 't) + (while (search-forward "Hello" nil t) (replace-match "Bonjour")) (other-window 1)) @@ -306,7 +306,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))) -- cgit v1.2.3