Skip to content

Commit e9da29b

Browse files
rpluimyantar92
authored andcommitted
Escape single left quotes in docstrings
* lisp/ob-core.el (org-babel-default-header-args): * lisp/ob-julia.el (org-babel-julia-evaluate-external-process): (org-babel-julia-evaluate-session): * lisp/ob-lua.el (org-babel-lua-read-string): * lisp/ob-table.el (org-sbe): * lisp/oc-basic.el (org-cite-basic--shorten-names): * lisp/org-agenda.el (org-agenda-sorting-strategy): (org-agenda--mark-blocked-entry): (org-agenda-set-restriction-lock): * lisp/org-fold-core.el (org-fold-core--specs): (org-fold-core-remove-folding-spec): (org-fold-core-get-folding-spec): (org-fold-core--isearch-overlays): * lisp/org-plot.el (org--plot/prime-factors): * lisp/org-table.el (org-table-collapse-header): * lisp/org.el (org-special-ctrl-o): (org-latex-to-html-convert-command): * lisp/ox-html.el (org-html--unlabel-latex-environment): * lisp/ox-publish.el (org-publish-find-property): Use \\=' when there's a need for a single left quote in a docstring. The emacs-29 byte compiler complains about such usage.
1 parent 65e92c4 commit e9da29b

File tree

12 files changed

+21
-21
lines changed

12 files changed

+21
-21
lines changed

lisp/ob-core.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ value. The value can either be a string or a closure that
485485
evaluates to a string. The closure is evaluated when the source
486486
block is being evaluated (e.g. during execution or export), with
487487
point at the source block. It is not possible to use an
488-
arbitrary function symbol (e.g. 'some-func), since org uses
488+
arbitrary function symbol (e.g. \\='some-func), since org uses
489489
lexical binding. To achieve the same functionality, call the
490490
function within a closure (e.g. (lambda () (some-func))).
491491

lisp/ob-julia.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ end")
250250
(defun org-babel-julia-evaluate-external-process
251251
(body result-type result-params column-names-p)
252252
"Evaluate BODY in external julia process.
253-
If RESULT-TYPE equals 'output then return standard output as a
254-
string. If RESULT-TYPE equals 'value then return the value of the
253+
If RESULT-TYPE equals \\='output then return standard output as a
254+
string. If RESULT-TYPE equals \\='value then return the value of the
255255
last statement in BODY, as elisp."
256256
(cl-case result-type
257257
(value
@@ -274,8 +274,8 @@ last statement in BODY, as elisp."
274274
(defun org-babel-julia-evaluate-session
275275
(session body result-type result-params column-names-p)
276276
"Evaluate BODY in SESSION.
277-
If RESULT-TYPE equals 'output then return standard output as a
278-
string. If RESULT-TYPE equals 'value then return the value of the
277+
If RESULT-TYPE equals \\='output then return standard output as a
278+
string. If RESULT-TYPE equals \\='value then return the value of the
279279
last statement in BODY, as elisp."
280280
(cl-case result-type
281281
(value

lisp/ob-lua.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ fd:close()"
395395
(org-babel-lua-table-or-string results)))))
396396

397397
(defun org-babel-lua-read-string (string)
398-
"Strip 's from around Lua string."
398+
"Strip single quotes from around Lua string."
399399
(org-unbracket-string "'" "'" string))
400400

401401
(provide 'ob-lua)

lisp/ob-table.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ is the equivalent of the following source code block:
8484
#+end_src
8585
8686
NOTE: The quotation marks around the function name,
87-
'source-block', are optional.
87+
\\='source-block\\=', are optional.
8888
8989
NOTE: By default, string variable names are interpreted as
9090
references to source-code blocks, to force interpretation of a

lisp/oc-basic.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ non-nil."
329329
"Return a list of family names from a list of full NAMES.
330330
331331
To better accomomodate corporate names, this will only shorten
332-
personal names of the form 'family, given'."
332+
personal names of the form \"family, given\"."
333333
(when (stringp names)
334334
(mapconcat
335335
(lambda (name)

lisp/org-agenda.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ alpha-down Sort headlines alphabetically, reversed.
16281628

16291629
The different possibilities will be tried in sequence, and testing stops
16301630
if one comparison returns a \"not-equal\". For example, the default
1631-
'(time-up category-keep priority-down)
1631+
\\='(time-up category-keep priority-down)
16321632
means: Pull out all entries having a specified time of day and sort them,
16331633
in order to make a time schedule for the current day the first thing in the
16341634
agenda listing for the day. Of the entries without a time indication, keep
@@ -4138,7 +4138,7 @@ dimming them." ;FIXME: The arg isn't used, actually!
41384138

41394139
If the header at `org-hd-marker' is blocked according to
41404140
`org-entry-blocked-p', then if `org-agenda-dim-blocked-tasks' is
4141-
'invisible and the header is not blocked by checkboxes, set the
4141+
\\='invisible and the header is not blocked by checkboxes, set the
41424142
text property `org-todo-blocked' to `invisible', otherwise set it
41434143
to t."
41444144
(when (get-text-property 0 'todo-state entry)
@@ -7857,7 +7857,7 @@ Argument ARG is the prefix argument."
78577857
When in a restricted subtree, remove it.
78587858

78597859
The restriction will span over the entire file if TYPE is `file',
7860-
or if type is '(4), or if the cursor is before the first headline
7860+
or if type is \\='(4), or if the cursor is before the first headline
78617861
in the file. Otherwise, only apply the restriction to the current
78627862
subtree."
78637863
(interactive "P")

lisp/org-fold-core.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ The following properties are known:
381381
using isearch.
382382
- :isearch-open :: non-nil means that isearch can reveal text hidden
383383
using this spec. This property does nothing
384-
when 'isearch-ignore property is non-nil.
384+
when \\='isearch-ignore property is non-nil.
385385
- :front-sticky :: non-nil means that text prepended to the folded text
386386
is automatically folded.
387387
- :rear-sticky :: non-nil means that text appended to the folded text
@@ -708,7 +708,7 @@ The folding spec properties will be set to PROPERTIES (see
708708
SPEC must be a symbol.
709709
710710
BUFFER can be a buffer to remove SPEC in, nil to remove SPEC in current
711-
buffer, or 'all to remove SPEC in all open `org-mode' buffers and all
711+
buffer, or \\='all to remove SPEC in all open `org-mode' buffers and all
712712
future org buffers."
713713
(org-fold-core--check-spec spec)
714714
(when (eq buffer 'all)
@@ -777,7 +777,7 @@ If SPEC-OR-ALIAS is a folding spec, only check the given folding spec."
777777
Return nil if there is no folding at point or POM.
778778
If SPEC-OR-ALIAS is nil, return a folding spec with highest priority
779779
among present at `point' or POM.
780-
If SPEC-OR-ALIAS is 'all, return the list of all present folding
780+
If SPEC-OR-ALIAS is \\='all, return the list of all present folding
781781
specs.
782782
If SPEC-OR-ALIAS is a valid folding spec or a spec alias, return the
783783
corresponding folding spec (if the text is folded using that spec)."
@@ -1005,7 +1005,7 @@ If SPEC-OR-ALIAS is omitted and FLAG is nil, unfold everything in the region."
10051005
This is used to allow searching in regions hidden via text properties.
10061006
As for [2020-05-09 Sat], Isearch only has special handling of hidden overlays.
10071007
Any text hidden via text properties is not revealed even if `search-invisible'
1008-
is set to 't.")
1008+
is set to `t'.")
10091009

10101010
(defvar-local org-fold-core--isearch-local-regions (make-hash-table :test 'equal)
10111011
"Hash table storing temporarily shown folds from isearch matches.")

lisp/org-plot.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ When NORMALISE is non-nil, the count is divided by the number of values."
280280
collect (cons n (/ (length m) normaliser)))))
281281

282282
(defun org--plot/prime-factors (value)
283-
"Return the prime decomposition of VALUE, e.g. for 12, '(3 2 2)."
283+
"Return the prime decomposition of VALUE, e.g. for 12, \\='(3 2 2)."
284284
(let ((factors '(1)) (i 1))
285285
(while (/= 1 value)
286286
(setq i (1+ i))

lisp/org-table.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5466,7 +5466,7 @@ The table is taken from the parameter TXT, or from the buffer at point."
54665466
(nreverse table)))))
54675467

54685468
(defun org-table-collapse-header (table &optional separator max-header-lines)
5469-
"Collapse the lines before 'hline into a single header.
5469+
"Collapse the lines before \\='hline into a single header.
54705470

54715471
The given TABLE is a list of lists as returned by `org-table-to-lisp'.
54725472
The leading lines before the first `hline' symbol are considered

lisp/org.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ OK to kill that hidden subtree. When nil, kill without remorse."
15101510
(const :tag "Never kill a hidden subtree with C-k" error)))
15111511

15121512
(defcustom org-special-ctrl-o t
1513-
"Non-nil means, make `C-o' insert a row in tables."
1513+
"Non-nil means, make `open-line' (\\[open-line]) insert a row in tables."
15141514
:group 'org-edit-structure
15151515
:type 'boolean)
15161516

@@ -3120,7 +3120,7 @@ Replace format-specifiers in the command as noted below and use
31203120
%i: The LaTeX fragment to be converted.
31213121

31223122
For example, this could be used with LaTeXML as
3123-
\"latexmlc 'literal:%i' --profile=math --preload=siunitx.sty 2>/dev/null\"."
3123+
\"latexmlc \\='literal:%i\\=' --profile=math --preload=siunitx.sty 2>/dev/null\"."
31243124
:group 'org-latex
31253125
:package-version '(Org . "9.4")
31263126
:type '(choice

0 commit comments

Comments
 (0)