ソースを参照

Merge branch 'maint'

Kyle Meyer 5 年 前
コミット
a01a8f55d8
5 ファイル変更11 行追加11 行削除
  1. 4 4
      lisp/ob-core.el
  2. 1 1
      lisp/ob-scheme.el
  3. 4 4
      lisp/ob-shell.el
  4. 1 1
      lisp/org-clock.el
  5. 1 1
      lisp/ox.el

+ 4 - 4
lisp/ob-core.el

@@ -527,7 +527,7 @@ to raise errors for all languages.")
   "Hook for functions to be called after `org-babel-execute-src-block'")
   "Hook for functions to be called after `org-babel-execute-src-block'")
 
 
 (defun org-babel-named-src-block-regexp-for-name (&optional name)
 (defun org-babel-named-src-block-regexp-for-name (&optional name)
-  "This generates a regexp used to match a source block named NAME.
+  "Generate a regexp used to match a source block named NAME.
 If NAME is nil, match any name.  Matched name is then put in
 If NAME is nil, match any name.  Matched name is then put in
 match group 9.  Other match groups are defined in
 match group 9.  Other match groups are defined in
 `org-babel-src-block-regexp'."
 `org-babel-src-block-regexp'."
@@ -538,7 +538,7 @@ match group 9.  Other match groups are defined in
 	  (substring org-babel-src-block-regexp 1)))
 	  (substring org-babel-src-block-regexp 1)))
 
 
 (defun org-babel-named-data-regexp-for-name (name)
 (defun org-babel-named-data-regexp-for-name (name)
-  "This generates a regexp used to match data named NAME."
+  "Generate a regexp used to match data named NAME."
   (concat org-babel-name-regexp (regexp-quote name) "[ \t]*$"))
   (concat org-babel-name-regexp (regexp-quote name) "[ \t]*$"))
 
 
 (defun org-babel--normalize-body (datum)
 (defun org-babel--normalize-body (datum)
@@ -1785,7 +1785,7 @@ to `org-babel-named-src-block-regexp'."
 	  (ignore-errors (org-next-block 1 nil regexp))))))
 	  (ignore-errors (org-next-block 1 nil regexp))))))
 
 
 (defun org-babel-src-block-names (&optional file)
 (defun org-babel-src-block-names (&optional file)
-  "Returns the names of source blocks in FILE or the current buffer."
+  "Return the names of source blocks in FILE or the current buffer."
   (with-current-buffer (if file (find-file-noselect file) (current-buffer))
   (with-current-buffer (if file (find-file-noselect file) (current-buffer))
     (org-with-point-at 1
     (org-with-point-at 1
       (let ((regexp "^[ \t]*#\\+begin_src ")
       (let ((regexp "^[ \t]*#\\+begin_src ")
@@ -1830,7 +1830,7 @@ buffer or nil if no such result exists."
 	      (throw :found (line-beginning-position)))))))))
 	      (throw :found (line-beginning-position)))))))))
 
 
 (defun org-babel-result-names (&optional file)
 (defun org-babel-result-names (&optional file)
-  "Returns the names of results in FILE or the current buffer."
+  "Return the names of results in FILE or the current buffer."
   (save-excursion
   (save-excursion
     (when file (find-file file)) (goto-char (point-min))
     (when file (find-file file)) (goto-char (point-min))
     (let ((case-fold-search t) names)
     (let ((case-fold-search t) names)

+ 1 - 1
lisp/ob-scheme.el

@@ -102,7 +102,7 @@
   (puthash session-name buffer org-babel-scheme-repl-map))
   (puthash session-name buffer org-babel-scheme-repl-map))
 
 
 (defun org-babel-scheme-get-buffer-impl (buffer)
 (defun org-babel-scheme-get-buffer-impl (buffer)
-  "Returns the scheme implementation geiser associates with the buffer."
+  "Return the scheme implementation geiser associates with the buffer."
   (with-current-buffer (set-buffer buffer)
   (with-current-buffer (set-buffer buffer)
     geiser-impl--implementation))
     geiser-impl--implementation))
 
 

+ 4 - 4
lisp/ob-shell.el

@@ -112,12 +112,12 @@ This function is called by `org-babel-execute-src-block'."
 ;;; Helper functions
 ;;; Helper functions
 (defun org-babel--variable-assignments:sh-generic
 (defun org-babel--variable-assignments:sh-generic
     (varname values &optional sep hline)
     (varname values &optional sep hline)
-  "Returns a list of statements declaring the values as a generic variable."
+  "Return a list of statements declaring the values as a generic variable."
   (format "%s=%s" varname (org-babel-sh-var-to-sh values sep hline)))
   (format "%s=%s" varname (org-babel-sh-var-to-sh values sep hline)))
 
 
 (defun org-babel--variable-assignments:bash_array
 (defun org-babel--variable-assignments:bash_array
     (varname values &optional sep hline)
     (varname values &optional sep hline)
-  "Returns a list of statements declaring the values as a bash array."
+  "Return a list of statements declaring the values as a bash array."
   (format "unset %s\ndeclare -a %s=( %s )"
   (format "unset %s\ndeclare -a %s=( %s )"
 	  varname varname
 	  varname varname
 	  (mapconcat
 	  (mapconcat
@@ -127,7 +127,7 @@ This function is called by `org-babel-execute-src-block'."
 
 
 (defun org-babel--variable-assignments:bash_assoc
 (defun org-babel--variable-assignments:bash_assoc
     (varname values &optional sep hline)
     (varname values &optional sep hline)
-  "Returns a list of statements declaring the values as bash associative array."
+  "Return a list of statements declaring the values as bash associative array."
   (format "unset %s\ndeclare -A %s\n%s"
   (format "unset %s\ndeclare -A %s\n%s"
     varname varname
     varname varname
     (mapconcat
     (mapconcat
@@ -140,7 +140,7 @@ This function is called by `org-babel-execute-src-block'."
      "\n")))
      "\n")))
 
 
 (defun org-babel--variable-assignments:bash (varname values &optional sep hline)
 (defun org-babel--variable-assignments:bash (varname values &optional sep hline)
-  "Represents the parameters as useful Bash shell variables."
+  "Represent the parameters as useful Bash shell variables."
   (pcase values
   (pcase values
     (`((,_ ,_ . ,_) . ,_)		;two-dimensional array
     (`((,_ ,_ . ,_) . ,_)		;two-dimensional array
      (org-babel--variable-assignments:bash_assoc varname values sep hline))
      (org-babel--variable-assignments:bash_assoc varname values sep hline))

+ 1 - 1
lisp/org-clock.el

@@ -2070,7 +2070,7 @@ in the buffer and update it."
 (org-dynamic-block-define "clocktable" #'org-clock-report)
 (org-dynamic-block-define "clocktable" #'org-clock-report)
 
 
 (defun org-day-of-week (day month year)
 (defun org-day-of-week (day month year)
-  "Returns the day of the week as an integer."
+  "Return the day of the week as an integer."
   (nth 6
   (nth 6
        (decode-time
        (decode-time
 	(date-to-time
 	(date-to-time

+ 1 - 1
lisp/ox.el

@@ -4801,7 +4801,7 @@ code."
 
 
 ;;;; For Tables
 ;;;; For Tables
 ;;
 ;;
-;; `org-export-table-has-special-column-p' and and
+;; `org-export-table-has-special-column-p' and
 ;; `org-export-table-row-is-special-p' are predicates used to look for
 ;; `org-export-table-row-is-special-p' are predicates used to look for
 ;; meta-information about the table structure.
 ;; meta-information about the table structure.
 ;;
 ;;