Backport commit 753fbfb from Emacs master branch

* lisp/org-bibtex.el (org-bibtex-fields):
* lisp/org-docview.el (org-docview-export):
* lisp/org-entities.el (org-entities):
* lisp/ox-icalendar.el (org-icalendar-cleanup-string):
Fix typo by replacing ‘\’ with ‘\\’ in a string literal.
For example, to get the regular expression ‘\.’ use the string
literal "\\.", not "\." (which is equivalent to ".").

Fix several backslash typos in Elisp strings
753fbfbef484272bcde5214f75fb0846ee3f33df
Paul Eggert
Thu Sep 17 12:39:54 2015 -0700
This commit is contained in:
Paul Eggert 2015-09-17 12:28:45 -07:00 committed by Kyle Meyer
parent 0839dc4322
commit 41e9733d2f
4 changed files with 5 additions and 5 deletions

View File

@ -195,7 +195,7 @@
(:howpublished . "How something strange has been published. The first word should be capitalized.")
(:institution . "The sponsoring institution of a technical report.")
(:journal . "A journal name.")
(:key . "Used for alphabetizing, cross-referencing, and creating a label when the author information is missing. This field should not be confused with the key that appears in the \cite command and at the beginning of the database entry.")
(:key . "Used for alphabetizing, cross-referencing, and creating a label when the author information is missing. This field should not be confused with the key that appears in the \\cite command and at the beginning of the database entry.")
(:month . "The month in which the work was published or, for an unpublished work, in which it was written. You should use the standard three-letter abbreviation,")
(:note . "Any additional information that can help the reader. The first word should be capitalized.")
(:number . "Any additional information that can help the reader. The first word should be capitalized.")

View File

@ -61,7 +61,7 @@
(setq path (org-link-escape (expand-file-name path)))
(cond
((eq format 'html) (format "<a href=\"%s\">%s</a>" path desc))
((eq format 'latex) (format "\href{%s}{%s}" path desc))
((eq format 'latex) (format "\\href{%s}{%s}" path desc))
((eq format 'ascii) (format "%s (%s)" desc path))
(t path)))))

View File

@ -361,8 +361,8 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
("lessgtr" "\\lessgtr" t "&lessgtr;" "[less than or greater than]" "[less than or greater than]" "")
("lesseqgtr" "\\lesseqgtr" t "&lesseqgtr;" "[less than or equal or greater than or equal]" "[less than or equal or greater than or equal]" "")
("ll" "\\ll" t "&Lt;" "<<" "<<" "")
("Ll" "\lll" t "&Ll;" "<<<" "<<<" "")
("lll" "\lll" t "&Ll;" "<<<" "<<<" "")
("Ll" "\\lll" t "&Ll;" "<<<" "<<<" "")
("lll" "\\lll" t "&Ll;" "<<<" "<<<" "")
("gg" "\\gg" t "&Gt;" ">>" ">>" "")
("Gg" "\\ggg" t "&Gg;" ">>>" ">>>" "")
("ggg" "\\ggg" t "&Gg;" ">>>" ">>>" "")

View File

@ -450,7 +450,7 @@ or subject for the event."
;; characters with literal \n.
(replace-regexp-in-string
"[ \t]*\n" "\\n"
(replace-regexp-in-string "[\\,;]" "\\\&" s)
(replace-regexp-in-string "[\\,;]" "\\\\\\&" s)
nil t)))
(defun org-icalendar-fold-string (s)