mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 02:15:57 +00:00
Merge pull request #3498 from leliamesteban/patch-1
[elisp/en] t evaluates to itself, so it doesn't need to be quoted
This commit is contained in:
commit
a8e3a04614
@ -281,7 +281,7 @@ filename: learn-emacs-lisp.el
|
|||||||
;; should stop searching at some point in the buffer, and whether it
|
;; should stop searching at some point in the buffer, and whether it
|
||||||
;; should silently fail when nothing is found:
|
;; 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 `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.
|
||||||
@ -295,7 +295,7 @@ filename: learn-emacs-lisp.el
|
|||||||
(mapcar 'hello list-of-names)
|
(mapcar 'hello list-of-names)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
;; Replace "Hello" by "Bonjour"
|
;; Replace "Hello" by "Bonjour"
|
||||||
(while (search-forward "Hello" nil 't)
|
(while (search-forward "Hello" nil t)
|
||||||
(replace-match "Bonjour"))
|
(replace-match "Bonjour"))
|
||||||
(other-window 1))
|
(other-window 1))
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ filename: learn-emacs-lisp.el
|
|||||||
(defun boldify-names ()
|
(defun boldify-names ()
|
||||||
(switch-to-buffer-other-window "*test*")
|
(switch-to-buffer-other-window "*test*")
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward "Bonjour \\(.+\\)!" nil 't)
|
(while (re-search-forward "Bonjour \\(.+\\)!" nil t)
|
||||||
(add-text-properties (match-beginning 1)
|
(add-text-properties (match-beginning 1)
|
||||||
(match-end 1)
|
(match-end 1)
|
||||||
(list 'face 'bold)))
|
(list 'face 'bold)))
|
||||||
|
Loading…
Reference in New Issue
Block a user