Correct some docstrings [part 3]

This is the third patch in a series that makes some straightforward
corrections to a number of docstrings.  Each change is normally to:

- correct a typo, or
- fix up hyperlinks to function or variable names, or
- ensure slightly better conformance with the documentation guidelines
  and tips given in the Elisp manual

No attempt is made to provide missing docstrings or document arguments.

Cheers,

Phil
This commit is contained in:
Philip Rooke 2010-07-16 21:22:01 +00:00 committed by Carsten Dominik
parent 619b8591fc
commit ef07f2afc2
7 changed files with 33 additions and 25 deletions

View File

@ -26,7 +26,10 @@
;;
;;; Commentary:
;;; Code:
(require 'org-exp)
(eval-when-compile
(require 'cl))
@ -164,7 +167,7 @@ The iCalendar standard requires that all entries have a unique identifier.
Org will create these identifiers as needed. When this variable is non-nil,
the created UIDs will be stored in the ID property of the entry. Then the
next time this entry is exported, it will be exported with the same UID,
superceding the previous form of it. This is essential for
superseding the previous form of it. This is essential for
synchronization services.
This variable is not turned on by default because we want to avoid creating
a property drawer in every entry if people are only playing with this feature,
@ -192,7 +195,7 @@ file, but with extension `.ics'."
;;;###autoload
(defun org-export-icalendar-all-agenda-files ()
"Export all files in `org-agenda-files' to iCalendar .ics files.
"Export all files in the variable `org-agenda-files' to iCalendar .ics files.
Each iCalendar file will be located in the same directory as the Org-mode
file, but with extension `.ics'."
(interactive)

View File

@ -69,6 +69,8 @@
;; Find the location of an entry with specific id.
;;
;;; Code:
(require 'org)
(declare-function message-make-fqdn "message" ())

View File

@ -29,22 +29,24 @@
;; by adding text properties to a buffer to make sure lines are
;; indented according to outline structure.
;;; Code:
(require 'org-macs)
(require 'org-compat)
(require 'org)
(eval-when-compile
(require 'cl))
(defgroup org-indent nil
"Options concerning dynamic virtual outline indentation."
:tag "Org Indent"
:group 'org)
(defconst org-indent-max 40
"Maximum indentation in characters")
"Maximum indentation in characters.")
(defconst org-indent-max-levels 40
"Maximum indentation in characters")
"Maximum indentation in characters.")
(defvar org-indent-strings nil
"Vector with all indentation strings.
@ -53,7 +55,7 @@ It will be set in `org-indent-initialize'.")
"Vector with all indentation star strings.
It will be set in `org-indent-initialize'.")
(defvar org-hide-leading-stars-before-indent-mode nil
"Used locally")
"Used locally.")
(defcustom org-indent-boundary-char ?\ ; comment to protect space char
"The end of the virtual indentation strings, a single-character string.
@ -67,13 +69,15 @@ it may be prettier to customize the org-indent face."
:type 'character)
(defcustom org-indent-mode-turns-off-org-adapt-indentation t
"Non-nil means turning on `org-indent-mode' turns off indentation adaptation.
"Non-nil means setting the variable `org-indent-mode' will \
turn off indentation adaptation.
For details see the variable `org-adapt-indentation'."
:group 'org-indent
:type 'boolean)
(defcustom org-indent-mode-turns-on-hiding-stars t
"Non-nil means turning on `org-indent-mode' turns on `org-hide-leading-stars'."
"Non-nil means setting the variable `org-indent-mode' will \
turn on `org-hide-leading-stars'."
:group 'org-indent
:type 'boolean)

View File

@ -33,7 +33,7 @@
;; and properties. However, these nodes are treated specially by the
;; visibility cycling and export commands.
;;
;; Visibility cycling exempts these nodes from cycling. So whenever their
;; Visibility cycling exempts these nodes from cycling. So whenever their
;; parent is opened, so are these tasks. This will only work with
;; `org-cycle', so if you are also using other commands to show/hide
;; entries, you will occasionally find these tasks to behave like
@ -74,8 +74,7 @@
;;
;; C-c C-x t Insert a new inline task with END line
;;; Code
;;; Code:
(require 'org)
@ -116,7 +115,7 @@ default, or nil of no state should be assigned."
(defun org-inlinetask-insert-task (&optional no-state)
"Insert an inline task.
If prefix arg NO-STATE is set, irgnore `org-inlinetask-defaut-state'."
If prefix arg NO-STATE is set, ignore `org-inlinetask-defaut-state'."
(interactive "P")
(or (bolp) (newline))
(let ((indent org-inlinetask-min-level))

View File

@ -26,12 +26,12 @@
;;
;;; Commentary:
;; This file implements the support for Sebastian Rose's Javascript
;; This file implements the support for Sebastian Rose's JavaScript
;; org-info.js to display an org-mode file exported to HTML in an
;; Info-like way, or using folding similar to the outline structure
;; org org-mode itself.
;; Documentation for using this module is in the Org manual. The script
;; Documentation for using this module is in the Org manual. The script
;; itself is documented by Sebastian Rose in a file distributed with
;; the script. FIXME: Accurate pointers!
@ -87,7 +87,7 @@ line in the buffer. See also the variable `org-infojs-options'."
(defcustom org-infojs-options
(mapcar (lambda (x) (cons (car x) (nth 2 x)))
org-infojs-opts-table)
"Options settings for the INFOJS Javascript.
"Options settings for the INFOJS JavaScript.
Each of the options must have an entry in `org-export-html/infojs-opts-table'.
The value can either be a string that will be passed to the script, or
a property. This property is then assumed to be a property that is defined

View File

@ -400,7 +400,7 @@ hurt if it is present."
(defcustom org-export-latex-remove-from-headlines
'(:todo nil :priority nil :tags nil)
"A plist of keywords to remove from headlines. OBSOLETE.
"A plist of keywords to remove from headlines. OBSOLETE.
Non-nil means remove this keyword type from the headline.
Don't remove the keys, just change their values.
@ -432,7 +432,7 @@ allowed. The default we use here encompasses both."
:type '(repeat (string :tag "Extension")))
(defcustom org-export-latex-coding-system nil
"Coding system for the exported LaTex file."
"Coding system for the exported LaTeX file."
:group 'org-export-latex
:type 'coding-system)
@ -656,7 +656,7 @@ when PUB-DIR is set, use this as the publishing directory."
(org-entry-get rbeg "EXPORT_FILE_NAME" t))
(file-name-nondirectory ;sans-extension
(or buffer-file-name
(error "Don't know which export file to use.")))))
(error "Don't know which export file to use")))))
".tex")))
(filename
(and filename
@ -1136,7 +1136,7 @@ LEVEL indicates the default depth for export."
(defvar org-export-latex-format-toc-function
'org-export-latex-format-toc-default
"The function formatting returning the string to createthe table of contents.
"The function formatting returning the string to create the table of contents.
The function mus take one parameter, the depth of the table of contents.")
(defun org-export-latex-make-header (title opt-plist)
@ -2190,7 +2190,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(replace-match "")))))
(defun org-export-latex-fix-inputenc ()
"Set the codingsystem in inputenc to what the buffer is."
"Set the coding system in inputenc to what the buffer is."
(let* ((cs buffer-file-coding-system)
(opt (or (ignore-errors (latexenc-coding-system-to-inputenc cs))
"utf8")))

View File

@ -624,7 +624,7 @@ If the cursor is not in an item, throw an error."
(defun org-end-of-item-text-before-children ()
"Move to the end of the item text, stops before the first child if any.
Assumes that the cursor is in the first ine of an item."
Assumes that the cursor is in the first line of an item."
(goto-char
(min (save-excursion (org-end-of-item) (point))
(save-excursion
@ -1019,7 +1019,7 @@ I.e. to the text after the last item."
(defun org-outdent-item-tree (arg &optional no-subtree)
"Outdent a local list item including its children.
If NO-SUBTREE is set, only outdend the item itself, not its children."
If NO-SUBTREE is set, only outdent the item itself, not its children."
(interactive "p")
(org-indent-item-tree (- arg) no-subtree))
@ -1386,7 +1386,7 @@ Valid parameters PARAMS are
(defun org-list-to-latex (list &optional params)
"Convert LIST into a LaTeX list.
LIST is as returnd by `org-list-parse-list'. PARAMS is a property list
LIST is as returned by `org-list-parse-list'. PARAMS is a property list
with overruling parameters for `org-list-to-generic'."
(org-list-to-generic
list
@ -1403,7 +1403,7 @@ with overruling parameters for `org-list-to-generic'."
(defun org-list-to-html (list &optional params)
"Convert LIST into a HTML list.
LIST is as returnd by `org-list-parse-list'. PARAMS is a property list
LIST is as returned by `org-list-parse-list'. PARAMS is a property list
with overruling parameters for `org-list-to-generic'."
(org-list-to-generic
list
@ -1420,7 +1420,7 @@ with overruling parameters for `org-list-to-generic'."
(defun org-list-to-texinfo (list &optional params)
"Convert LIST into a Texinfo list.
LIST is as returnd by `org-list-parse-list'. PARAMS is a property list
LIST is as returned by `org-list-parse-list'. PARAMS is a property list
with overruling parameters for `org-list-to-generic'."
(org-list-to-generic
list