1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

Fix typos in comments.

This commit is contained in:
Juanma Barranquero 2010-01-14 19:37:23 +01:00
parent b643362c6c
commit 5a89f0a793
16 changed files with 31 additions and 31 deletions

View File

@ -442,7 +442,7 @@ If FORCE equals 'newfile, then the cache is ignored."
(setq ans calc))
;; If we failed to calculate something, we
;; should add it to the hash, but ONLY if we are not
;; going to FORCE the file into existance.
;; going to FORCE the file into existence.
(when (not force)
(ede-locate-add-file-to-hash loc filename 'nomatch))))
))

View File

@ -900,7 +900,7 @@ START and END define the bounds of the token in the current buffer.
Optional STR is the string for the token only if the bounds in
the buffer do not cover the string they represent. (As from
macro expansion.)"
;; This if statement checks the existance of a STR argument at
;; This if statement checks the existence of a STR argument at
;; compile time, where STR is some symbol or constant. If the
;; variable STr (runtime) is nil, this will make an incorrect decision.
;;

View File

@ -33,7 +33,7 @@
;;
;; Using :blank means that the template should force blank lines
;; before and after the template, reguardless of where the insertion
;; is occuring.
;; is occurring.
(defun srecode-semantic-handle-:blank (dict)
"Add macros into the dictionary DICT specifying blank line spacing.
The wrapgap means make sure the first and last lines of the macro

View File

@ -158,7 +158,7 @@ There are currently two built-in format functions:
;; I just ignore it.
;;;###autoload
(defun gnus-user-format-function-d (header)
;; Returns an aproximative delay string for the next occurence of this
;; Returns an aproximative delay string for the next occurrence of this
;; message. The delay is given only in the first non zero unit.
;; Code partly stolen from article-make-date-line
(let* ((extras (mail-header-extra header))
@ -195,7 +195,7 @@ There are currently two built-in format functions:
;; I just ignore it.
;;;###autoload
(defun gnus-user-format-function-D (header)
;; Returns a formatted time string for the next occurence of this message.
;; Returns a formatted time string for the next occurrence of this message.
(let* ((extras (mail-header-extra header))
(sched (gnus-diary-header-schedule extras))
(occur (nndiary-next-occurence sched (current-time))))

View File

@ -67,7 +67,7 @@
;; IMHO, nnoo is actually badly designed. A much simpler, and yet more
;; powerful one would be to make *real* functions and variables for a new
;; back end based on another. Lisp is a reflexive language so that's a very
;; easy thing to do: inspect the function's form, replace occurences of
;; easy thing to do: inspect the function's form, replace occurrences of
;; <nnfrom> (even in strings) with <nnto>, and you're done.
;; * nndiary-get-new-mail, nndiary-mail-source and nndiary-split-methods:
@ -1322,7 +1322,7 @@ all. This may very well take some time.")
(sort res 'time-less-p)))
(defun nndiary-last-occurence (sched)
;; Returns the last occurence of schedule SCHED as an Emacs time struct, or
;; Returns the last occurrence of schedule SCHED as an Emacs time struct, or
;; nil for permanent schedule or errors.
(let ((minute (nndiary-max (nth 0 sched)))
(hour (nndiary-max (nth 1 sched)))
@ -1393,7 +1393,7 @@ all. This may very well take some time.")
(encode-time 0 minute hour
(car days) month year time-zone)))
)))))
;; There's an upper limit, but we didn't find any last occurence.
;; There's an upper limit, but we didn't find any last occurrence.
;; This means that the schedule is undecidable. This can happen if
;; you happen to say something like "each Feb 31 until 2038".
(progn
@ -1402,8 +1402,8 @@ all. This may very well take some time.")
))))
(defun nndiary-next-occurence (sched now)
;; Returns the next occurence of schedule SCHED, starting from time NOW.
;; If there's no next occurence, returns the last one (if any) which is then
;; Returns the next occurrence of schedule SCHED, starting from time NOW.
;; If there's no next occurrence, returns the last one (if any) which is then
;; in the past.
(let* ((today (decode-time now))
(this-minute (nth 1 today))
@ -1557,12 +1557,12 @@ all. This may very well take some time.")
;; The article should be re-considered as unread if there's a reminder
;; between the group timestamp and the current time.
(when (and sched (setq sched (nndiary-next-occurence sched now)))
(let ((reminders ;; add the next occurence itself at the end.
(let ((reminders ;; add the next occurrence itself at the end.
(append (nndiary-compute-reminders sched) (list sched))))
(while (and reminders (time-less-p (car reminders) timestamp))
(pop reminders))
;; The reminders might be empty if the last date is in the past,
;; or we've got at least the next occurence itself left. All past
;; or we've got at least the next occurrence itself left. All past
;; dates are renewed.
(or (not reminders)
(time-less-p (car reminders) now)))

View File

@ -1200,7 +1200,7 @@ Use the nov database for the current group if available."
;; #### already belongs to a range, whereas the corresponding
;; #### article doesn't exist (for example, if you delete an
;; #### article). For that reason, it is important to update
;; #### the ranges (meaning remove inexistant articles) before
;; #### the ranges (meaning remove inexistent articles) before
;; #### doing anything on them.
;; 2 a/ read articles:
(let ((read (gnus-info-read info)))

View File

@ -529,7 +529,7 @@
(widen)))
(delete-region p (point-max))
(goto-char (point-min))
;; Some blank line to seperate mails.
;; Some blank line to separate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(insert "X-Gnus-Webmail: " (symbol-value 'user)
"@" (symbol-name webmail-type) "\n")
@ -658,7 +658,7 @@
(setq p (point))))
(delete-region p (point-max))
(goto-char (point-min))
;; Some blank line to seperate mails.
;; Some blank line to separate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(insert "X-Gnus-Webmail: " (symbol-value 'user)
"@" (symbol-name webmail-type) "\n")
@ -835,7 +835,7 @@
(setq mime (webmail-netaddress-single-part))
(widen))
(goto-char (point-min))
;; Some blank line to seperate mails.
;; Some blank line to separate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(insert "X-Gnus-Webmail: " (symbol-value 'user)
"@" (symbol-name webmail-type) "\n")
@ -962,7 +962,7 @@
(setq mime (webmail-netaddress-single-part))
(widen))
(goto-char (point-min))
;; Some blank line to seperate mails.
;; Some blank line to separate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(insert "X-Gnus-Webmail: " (symbol-value 'user)
"@" (symbol-name webmail-type) "\n")

View File

@ -58,7 +58,7 @@ comparison."
(list config-dir))
(unpruned-prefixes
;; Directory trees that may not exist at installation time, and
;; so shouldn't be pruned based on existance.
;; so shouldn't be pruned based on existence.
'("/usr/local/"))
(prefixes
;; Directory trees in which to look for info subdirectories

View File

@ -1010,7 +1010,7 @@ MODE is either a mode symbol or a list of mode symbols."
`(c-clear-char-property-fun ,pos ',property))))
(defmacro c-clear-char-properties (from to property)
;; Remove all the occurences of the given property in the given
;; Remove all the occurrences of the given property in the given
;; region that has been put with `c-put-char-property'. PROPERTY is
;; assumed to be constant.
;;
@ -1035,7 +1035,7 @@ which have the value VALUE, as tested by `equal'. These
properties are assumed to be over individual characters, having
been put there by c-put-char-property. POINT remains unchanged."
(let ((place from) end-place)
(while ; loop round occurrances of (PROPERTY VALUE)
(while ; loop round occurrences of (PROPERTY VALUE)
(progn
(while ; loop round changes in PROPERTY till we find VALUE
(and

View File

@ -447,7 +447,7 @@ comment at the start of cc-engine.el for more info."
(c-put-char-property pos 'c-type value))
(defun c-clear-c-type-property (from to value)
;; Remove all occurences of the c-type property that has the given
;; Remove all occurrences of the c-type property that has the given
;; value in the region between FROM and TO. VALUE is assumed to not
;; be nil.
;;
@ -555,7 +555,7 @@ the previous one if already at the beginning of one. Only
statements/declarations on the same level are considered, i.e. don't
move into or out of sexps (not even normal expression parentheses).
If point is already at the earliest statment within braces or parens,
If point is already at the earliest statement within braces or parens,
this function doesn't move back into any whitespace preceding it; it
returns 'same in this case.
@ -605,7 +605,7 @@ comment at the start of cc-engine.el for more info."
;; The bulk of this function is a pushdown automaton that looks at statement
;; boundaries and the tokens (such as "while") in c-opt-block-stmt-key. Its
;; purpose is to keep track of nested statements, ensuring that such
;; statments are skipped over in their entirety (somewhat akin to what C-M-p
;; statements are skipped over in their entirety (somewhat akin to what C-M-p
;; does with nested braces/brackets/parentheses).
;;
;; Note: The position of a boundary is the following token.
@ -4394,7 +4394,7 @@ comment at the start of cc-engine.el for more info."
;; `c-decl-prefix-or-start-re' when that submatch matches.
;; o The start of each `c-decl-prefix-or-start-re' match when
;; submatch 1 doesn't match.
;; o The first token after the end of each occurence of the
;; o The first token after the end of each occurrence of the
;; `c-type' text property with the value `c-decl-end', provided
;; `c-type-decl-end-used' is set.
;;

View File

@ -1327,7 +1327,7 @@ on level 2 only and so aren't combined with `c-complex-decl-matchers'."
,@(when (c-lang-const c-recognize-<>-arglists)
`(c-font-lock-<>-arglists))
;; The first two rules here mostly find occurences that
;; The first two rules here mostly find occurrences that
;; `c-font-lock-declarations' has found already, but not
;; declarations containing blocks in the type (see note below).
;; It's also useful to fontify these everywhere to show e.g. when
@ -2117,7 +2117,7 @@ need for `pike-font-lock-extra-types'.")
(defun c-find-invalid-doc-markup (regexp limit)
;; Used to fontify invalid markup in doc comments after the correct
;; ones have been fontified: Find the first occurence of REGEXP
;; ones have been fontified: Find the first occurrence of REGEXP
;; between the point and LIMIT that only is fontified with
;; `c-doc-face-name'. If a match is found then submatch 0 surrounds
;; the first char and t is returned, otherwise nil is returned.

View File

@ -1370,7 +1370,7 @@ non-delphi buffer. Set to nil in a delphi buffer. To override, just do:
;; Indent in from the expression.
(delphi-indent-of last-token delphi-indent-level))
;; No enclosing expression; use the previous statment's
;; No enclosing expression; use the previous statement's
;; indent.
((delphi-previous-indent-of token)))))

View File

@ -4607,7 +4607,7 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
(defun idlwave-shorten-syntax (syntax name &optional class)
;; From a list of syntax statments, shorten with %s and group with "or"
;; From a list of syntax statements, shorten with %s and group with "or"
(let ((case-fold-search t))
(mapconcat
(lambda (x)

View File

@ -1197,7 +1197,7 @@ as returned by `x-server-vendor'."
;; We keep track of the last text selected here, so we can check the
;; current selection against it, and avoid passing back our own text
;; from x-cut-buffer-or-selection-value. We track all three
;; seperately in case another X application only sets one of them
;; separately in case another X application only sets one of them
;; (say the cut buffer) we aren't fooled by the PRIMARY or
;; CLIPBOARD selection staying the same.
(defvar x-last-selected-text-clipboard nil

View File

@ -2181,7 +2181,7 @@ Formats current entry according to variable `bibtex-entry-format'."
(if (memq 'realign format)
(bibtex-fill-entry)))))
;; Unwindform: move point to location where error occured if possible
;; Unwindform: move point to location where error occurred if possible
(if error-field-name
(let (bounds)
(when (save-excursion

View File

@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
Windows 2000, though most users of older systems will have it
since it installs with Internet Explorer 5.0 and other software.
We only enable the feature if it is available, so there is no chance
of calling non-existant functions. */
of calling non-existent functions. */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x500
#include <windows.h>