emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash d76505d 289/316: Use dash--replace-all in Texinfo


From: ELPA Syncer
Subject: [elpa] externals/dash d76505d 289/316: Use dash--replace-all in Texinfo format-docstring
Date: Mon, 15 Feb 2021 15:58:19 -0500 (EST)

branch: externals/dash
commit d76505d4e623551eb44b81a874adc1c23360aac2
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Use dash--replace-all in Texinfo format-docstring
    
    * dev/examples-to-info.el (format-docstring): Use dash--replace-all.
---
 dev/examples-to-info.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el
index 1730a46..74da4e0 100644
--- a/dev/examples-to-info.el
+++ b/dev/examples-to-info.el
@@ -89,9 +89,8 @@ Based on `describe-function-1'."
     (with-output-to-string
       (with-current-buffer standard-output
         (insert docstring)
-        (goto-char (point-min))
         ;; Escape literal ?@.
-        (while (search-forward "@" nil t) (insert ?@))
+        (dash--replace-all "@" "@@")
         (goto-char (point-min))
         (while (re-search-forward
                 (rx (| (group bow (in "A-Z") (* (in "A-Z" ?-)) (* num) eow)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]