Skip to content

Commit 22fb4ee

Browse files
committed
Add: Buffer-Passing Style article
Thanks to @DamienCassou.
2 parents 81bc239 + d18bf6b commit 22fb4ee

File tree

2 files changed

+255
-203
lines changed

2 files changed

+255
-203
lines changed

README.org

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,18 @@ This file also defines macros =thunk-let= and =thunk-let*= that are analogous to
222222
:TOC: :include descendants
223223
:END:
224224
:CONTENTS:
225+
- [[#articles][Articles]]
226+
- [[#buffer-passing-style][Buffer-Passing Style]]
225227
- [[#best-practices][Best practices]]
226228
- [[#accessing-buffer-local-variables][Accessing buffer-local variables]]
227229
- [[#inserting-strings][Inserting strings]]
228230
- [[#libraries][Libraries]]
229231
:END:
230232

233+
*** Articles
234+
235+
**** [[*%5B%5Bhttps://nullprogram.com/blog/2014/05/27/%5D%5BEmacs%20Lisp%20Buffer%20Passing%20Style%5D%5D][Buffer-Passing Style]] :strings:
236+
231237
*** Best practices :best_practices:
232238
:PROPERTIES:
233239
:TOC: :depth 1
@@ -2806,12 +2812,24 @@ This example shows the use of a function to expand a list of strings into a sequ
28062812
:TOC: :include descendants :depth 2
28072813
:END:
28082814
:CONTENTS:
2815+
- [[#articles][Articles]]
2816+
- [[#buffer-passing-style][Buffer-Passing Style]]
28092817
- [[#libraries][Libraries]]
28102818
- [[#sel-the-long-lost-emacs-string-manipulation-library][s.el: The long lost Emacs string manipulation library]]
28112819
- [[#tools][Tools]]
28122820
- [[#format-macro][format$ macro]]
28132821
:END:
28142822

2823+
*** Articles :articles:
2824+
2825+
**** [[https://nullprogram.com/blog/2014/05/27/][Buffer-Passing Style]] :buffers:
2826+
:PROPERTIES:
2827+
:archive.today: https://archive.ph/Jygil
2828+
:ID: 3040c491-39ba-429e-8af7-e4971170d7eb
2829+
:END:
2830+
2831+
Chris Wellons explains how to build strings in several steps. This is achieved thanks to the creation of a temporary buffer that is passed to helper methods using the "current" buffer mechanism. A nice and simple design pattern for Emacs.
2832+
28152833
*** Libraries :libraries:
28162834

28172835
**** [[https://github.com/magnars/s.el][s.el: The long lost Emacs string manipulation library]]
@@ -3531,6 +3549,7 @@ Yes, please! Send pull requests and file issues on the [[https://github.com/alp
35313549
These resources should be added to the appropriate sections above. Since it takes some work to catalog and organize them, they are dumped here for future reference. Pull requests for these are welcome!
35323550

35333551
** TODO [[https://github.com/DarwinAwardWinner/emacs-named-timer][GitHub - DarwinAwardWinner/emacs-named-timer: Simplified timer management for Emacs Lisp]]
3552+
35343553
** TODO Add [[https://github.com/vermiculus/package-demo][GitHub - vermiculus/package-demo: Script your Emacs package demos!]]
35353554

35363555
** TODO [[https://github.com/vermiculus/stash.el][GitHub - vermiculus/stash.el: Lightweight, Persistent Caching for Elisp]]

0 commit comments

Comments
 (0)