Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/String-append/Emacs-Lisp/string-append-1.l
Normal file
3
Task/String-append/Emacs-Lisp/string-append-1.l
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(defvar str "foo")
|
||||
(setq str (concat str "bar"))
|
||||
str ;=> "foobar"
|
||||
5
Task/String-append/Emacs-Lisp/string-append-2.l
Normal file
5
Task/String-append/Emacs-Lisp/string-append-2.l
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(require 'cl-lib)
|
||||
|
||||
(defvar str "foo")
|
||||
(cl-callf concat str "bar")
|
||||
str ;=> "foobar"
|
||||
8
Task/String-append/Emacs-Lisp/string-append-3.l
Normal file
8
Task/String-append/Emacs-Lisp/string-append-3.l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(let ((buf (get-buffer-create "*foo*")))
|
||||
(with-current-buffer buf
|
||||
(insert "foo"))
|
||||
(with-current-buffer buf
|
||||
(goto-char (point-max))
|
||||
(insert "bar")
|
||||
(buffer-string)))
|
||||
;; => "foobar"
|
||||
Loading…
Add table
Add a link
Reference in a new issue