ソースを参照

Fix escaping in capture, part 2

* lisp/org-capture.el (org-capture-fill-template):
* lisp/org-feed.el (org-feed-format-entry): Fix wrong argument in
  `replace-regexp-in-string'.
Nicolas Goaziou 9 年 前
コミット
e0d3944985
2 ファイル変更2 行追加3 行削除
  1. 1 2
      lisp/org-capture.el
  2. 1 1
      lisp/org-feed.el

+ 1 - 2
lisp/org-capture.el

@@ -1672,8 +1672,7 @@ The template may still contain \"%?\" for cursor positioning."
 			 (?x v-x))))
 		  (insert
 		   (if (org-capture-inside-embedded-elisp-p)
-		       (replace-regexp-in-string
-			"\"" "\\\\\"" replacement nil t)
+		       (replace-regexp-in-string "\"" "\\\\\"" replacement)
 		     replacement))))))))
 
       ;; Expand %() embedded Elisp.  Limit to Sexp originally marked.

+ 1 - 1
lisp/org-feed.el

@@ -565,7 +565,7 @@ If that property is already present, nothing changes."
 		  (insert
 		   ;; Escape string delimiters within embedded lisp.
 		   (if (org-capture-inside-embedded-elisp-p)
-		       (replace-regexp-in-string "\"" "\\\\\"" replacement nil t)
+		       (replace-regexp-in-string "\"" "\\\\\"" replacement)
 		     replacement)))))))
 
         ;; %() embedded elisp