summaryrefslogtreecommitdiffhomepage
path: root/elisp.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2019-03-21 00:54:32 +0530
committerGitHub <noreply@github.com>2019-03-21 00:54:32 +0530
commita8e3a04614688ae2d2adaaae5a1be8342683d084 (patch)
treeca0e3b62323bf1f957e2ca89b8a975f6e3d9960e /elisp.html.markdown
parent47fe9495ca6ad680ed1e5cf5f94326322dfb2e9b (diff)
parent54187b4e4d035cd11a38a330ab8a9689545d35aa (diff)
Merge pull request #3498 from leliamesteban/patch-1
[elisp/en] t evaluates to itself, so it doesn't need to be quoted
Diffstat (limited to 'elisp.html.markdown')
-rw-r--r--elisp.html.markdown6
1 files changed, 3 insertions, 3 deletions
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)))