Replace `iff' in doc-strings and comments.

This commit is contained in:
Glenn Morris 2007-08-08 07:34:30 +00:00
parent 3ecd3a56c0
commit e7f767c25e
26 changed files with 63 additions and 51 deletions

View file

@ -1,3 +1,9 @@
2007-08-08 Glenn Morris <rgm@gnu.org>
* emacs-lisp/checkdoc.el (checkdoc-ispell-lisp-words): Remove `iff'.
* Replace `iff' in doc-strings and comments.
2007-08-08 Martin Rudalics <rudalics@gmx.at> 2007-08-08 Martin Rudalics <rudalics@gmx.at>
* dired.el (dired-pop-to-buffer): * dired.el (dired-pop-to-buffer):

View file

@ -79,7 +79,7 @@ ARGS are passed to `message'."
;;;###autoload ;;;###autoload
(defun gmm-widget-p (symbol) (defun gmm-widget-p (symbol)
"Non-nil iff SYMBOL is a widget." "Non-nil if SYMBOL is a widget."
(get symbol 'widget-type)) (get symbol 'widget-type))
;; Copy of the `nnmail-lazy' code from `nnmail.el': ;; Copy of the `nnmail-lazy' code from `nnmail.el':

View file

@ -320,7 +320,7 @@ It should return non-nil if the article is to be prefetched."
(pop alist)))))) (pop alist))))))
(defun gnus-async-prefetched-article-entry (group article) (defun gnus-async-prefetched-article-entry (group article)
"Return the entry for ARTICLE in GROUP iff it has been prefetched." "Return the entry for ARTICLE in GROUP if it has been prefetched."
(let ((entry (save-excursion (let ((entry (save-excursion
(gnus-async-set-buffer) (gnus-async-set-buffer)
(assq (intern (format "%s-%d" group article) (assq (intern (format "%s-%d" group article)

View file

@ -260,15 +260,15 @@ See also the `mml-default-encrypt-method' variable."
This is done because new users often reply by mistake when reading This is done because new users often reply by mistake when reading
news. news.
This can also be a function receiving the group name as the only This can also be a function receiving the group name as the only
parameter which should return non-nil iff a confirmation is needed, or parameter, which should return non-nil if a confirmation is needed; or
a regexp, in which case a confirmation is asked for iff the group name a regexp, in which case a confirmation is asked for if the group name
matches the regexp." matches the regexp."
:version "22.1" :version "22.1"
:group 'gnus-message :group 'gnus-message
:type '(choice (const :tag "No" nil) :type '(choice (const :tag "No" nil)
(const :tag "Yes" t) (const :tag "Yes" t)
(regexp :tag "Iff group matches regexp") (regexp :tag "If group matches regexp")
(function :tag "Iff function evaluates to non-nil"))) (function :tag "If function evaluates to non-nil")))
(defcustom gnus-confirm-treat-mail-like-news (defcustom gnus-confirm-treat-mail-like-news
nil nil

View file

@ -381,7 +381,7 @@ If nil, the user will be asked for a match type."
(const :tag "ask" nil))) (const :tag "ask" nil)))
(defcustom gnus-score-default-fold nil (defcustom gnus-score-default-fold nil
"Use case folding for new score file entries iff not nil." "Non-nil means use case folding for new score file entries."
:group 'gnus-score-default :group 'gnus-score-default
:type 'boolean) :type 'boolean)

View file

@ -1108,7 +1108,7 @@ Return the modified alist."
`(setq ,alist (delq (,fun ,key ,alist) ,alist)))) `(setq ,alist (delq (,fun ,key ,alist) ,alist))))
(defun gnus-globalify-regexp (re) (defun gnus-globalify-regexp (re)
"Return a regexp that matches a whole line, iff RE matches a part of it." "Return a regexp that matches a whole line, if RE matches a part of it."
(concat (unless (string-match "^\\^" re) "^.*") (concat (unless (string-match "^\\^" re) "^.*")
re re
(unless (string-match "\\$$" re) ".*$"))) (unless (string-match "\\$$" re) ".*$")))

View file

@ -1581,7 +1581,7 @@ is non-nil return these properties."
(imap-mailbox-get-1 'search imap-current-mailbox))))) (imap-mailbox-get-1 'search imap-current-mailbox)))))
(defun imap-message-flag-permanent-p (flag &optional mailbox buffer) (defun imap-message-flag-permanent-p (flag &optional mailbox buffer)
"Return t iff FLAG can be permanently (between IMAP sessions) saved on articles, in MAILBOX on server in BUFFER." "Return t if FLAG can be permanently (between IMAP sessions) saved on articles, in MAILBOX on server in BUFFER."
(with-current-buffer (or buffer (current-buffer)) (with-current-buffer (or buffer (current-buffer))
(or (member "\\*" (imap-mailbox-get 'permanentflags mailbox)) (or (member "\\*" (imap-mailbox-get 'permanentflags mailbox))
(member flag (imap-mailbox-get 'permanentflags mailbox))))) (member flag (imap-mailbox-get 'permanentflags mailbox)))))

View file

@ -538,7 +538,7 @@ MAILCAPS if set; otherwise (on Unix) use the path from RFC 1524, plus
results))) results)))
(defun mailcap-mailcap-entry-passes-test (info) (defun mailcap-mailcap-entry-passes-test (info)
"Return non-nil iff mailcap entry INFO passes its test clause. "Return non-nil if mailcap entry INFO passes its test clause.
Also return non-nil if no test clause is present." Also return non-nil if no test clause is present."
(let ((test (assq 'test info)) ; The test clause (let ((test (assq 'test info)) ; The test clause
status) status)
@ -631,7 +631,7 @@ Also return non-nil if no test clause is present."
(defvar mailcap-viewer-test-cache nil) (defvar mailcap-viewer-test-cache nil)
(defun mailcap-viewer-passes-test (viewer-info type-info) (defun mailcap-viewer-passes-test (viewer-info type-info)
"Return non-nil iff viewer specified by VIEWER-INFO passes its test clause. "Return non-nil if viewer specified by VIEWER-INFO passes its test clause.
Also return non-nil if it has no test clause. TYPE-INFO is an argument Also return non-nil if it has no test clause. TYPE-INFO is an argument
to supply to the test." to supply to the test."
(let* ((test-info (assq 'test viewer-info)) (let* ((test-info (assq 'test viewer-info))
@ -704,7 +704,7 @@ If TEST is not given, it defaults to t."
;;; ;;;
(defun mailcap-viewer-lessp (x y) (defun mailcap-viewer-lessp (x y)
"Return t iff viewer X is more desirable than viewer Y." "Return t if viewer X is more desirable than viewer Y."
(let ((x-wild (string-match "[*?]" (or (cdr-safe (assq 'type x)) ""))) (let ((x-wild (string-match "[*?]" (or (cdr-safe (assq 'type x)) "")))
(y-wild (string-match "[*?]" (or (cdr-safe (assq 'type y)) ""))) (y-wild (string-match "[*?]" (or (cdr-safe (assq 'type y)) "")))
(x-lisp (not (stringp (or (cdr-safe (assq 'viewer x)) "")))) (x-lisp (not (stringp (or (cdr-safe (assq 'viewer x)) ""))))

View file

@ -1645,7 +1645,7 @@ be used in a STORE FLAGS command."
result))) result)))
(defun nnimap-mark-permanent-p (mark &optional group) (defun nnimap-mark-permanent-p (mark &optional group)
"Return t iff MARK can be permanently (between IMAP sessions) saved on articles, in GROUP." "Return t if MARK can be permanently (between IMAP sessions) saved on articles, in GROUP."
(imap-message-flag-permanent-p (nnimap-mark-to-flag mark))) (imap-message-flag-permanent-p (nnimap-mark-to-flag mark)))
(when nnimap-debug (when nnimap-debug

View file

@ -2436,7 +2436,7 @@ target of the symlink differ."
res-size res-size
;; 8. File modes, as a string of ten letters or dashes as in ls -l. ;; 8. File modes, as a string of ten letters or dashes as in ls -l.
res-filemodes res-filemodes
;; 9. t iff file's gid would change if file were deleted and ;; 9. t if file's gid would change if file were deleted and
;; recreated. Will be set in `tramp-convert-file-attributes' ;; recreated. Will be set in `tramp-convert-file-attributes'
t t
;; 10. inode number. ;; 10. inode number.
@ -7028,7 +7028,7 @@ Not actually used. Use `(format \"%o\" i)' instead?"
(and (tramp-file-name-p obj) (aref obj 4))) (and (tramp-file-name-p obj) (aref obj 4)))
(defun tramp-tramp-file-p (name) (defun tramp-tramp-file-p (name)
"Return t iff NAME is a tramp file." "Return t if NAME is a tramp file."
(save-match-data (save-match-data
(string-match tramp-file-name-regexp name))) (string-match tramp-file-name-regexp name)))

View file

@ -523,7 +523,7 @@ See `fast-lock-cache-directories'."
;; Just a directory. ;; Just a directory.
directory) directory)
(t (t
;; A directory iff the file name matches the regexp. ;; A directory if the file name matches the regexp.
(let ((bufile (expand-file-name buffer-file-truename)) (let ((bufile (expand-file-name buffer-file-truename))
(case-fold-search nil)) (case-fold-search nil))
(when (save-match-data (string-match (car directory) bufile)) (when (save-match-data (string-match (car directory) bufile))

View file

@ -568,7 +568,7 @@ The standard value contains the following functions as READ-FN:
general value, or `antlr-read-boolean' with ARGs = \(PROMPT TABLE) which general value, or `antlr-read-boolean' with ARGs = \(PROMPT TABLE) which
reads a boolean value or a member of TABLE. PROMPT is the prompt when reads a boolean value or a member of TABLE. PROMPT is the prompt when
asking for a new value. If non-nil, TABLE is a table for completion or asking for a new value. If non-nil, TABLE is a table for completion or
a function evaluating to such a table. The return value is quoted iff a function evaluating to such a table. The return value is quoted if
AS-STRING is non-nil and is either t or a symbol which is a member of AS-STRING is non-nil and is either t or a symbol which is a member of
`antlr-options-style'.") `antlr-options-style'.")
@ -2203,8 +2203,8 @@ part SUPER in the result of `antlr-file-dependencies'. CLASSES is the
part \(CLASS-SPEC ...) in the result of `antlr-directory-dependencies'. part \(CLASS-SPEC ...) in the result of `antlr-directory-dependencies'.
The result looks like \(OPTION WITH-UNKNOWN GLIB ...). OPTION is the The result looks like \(OPTION WITH-UNKNOWN GLIB ...). OPTION is the
complete \"-glib\" option. WITH-UNKNOWN has value t iff there is none complete \"-glib\" option. WITH-UNKNOWN is t if there is none or more
or more than one grammar file for at least one super grammar. than one grammar file for at least one super grammar.
Each GLIB looks like \(GRAMMAR-FILE \. EVOCAB). GRAMMAR-FILE is a file Each GLIB looks like \(GRAMMAR-FILE \. EVOCAB). GRAMMAR-FILE is a file
in which a super-grammar is defined. EVOCAB is the value of the export in which a super-grammar is defined. EVOCAB is the value of the export

View file

@ -478,7 +478,7 @@
(defun c-awk-get-NL-prop-prev-line (&optional do-lim) (defun c-awk-get-NL-prop-prev-line (&optional do-lim)
;; Get the c-awk-NL-prop text-property from the previous line, calculating ;; Get the c-awk-NL-prop text-property from the previous line, calculating
;; it if necessary. Return nil iff we're already at BOB. ;; it if necessary. Return nil if we're at BOB.
;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM. ;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM.
;; ;;
;; This function might do hidden buffer changes. ;; This function might do hidden buffer changes.

View file

@ -5116,7 +5116,7 @@ comment at the start of cc-engine.el for more info."
;; Foo::Foo (int b) : Base (b) {} ;; Foo::Foo (int b) : Base (b) {}
;; car ^ ^ point ;; car ^ ^ point
;; ;;
;; The cdr of the return value is non-nil iff a ;; The cdr of the return value is non-nil if a
;; `c-typedef-decl-kwds' specifier is found in the declaration, ;; `c-typedef-decl-kwds' specifier is found in the declaration,
;; i.e. the declared identifier(s) are types. ;; i.e. the declared identifier(s) are types.
;; ;;

View file

@ -186,7 +186,7 @@ the value set here overrides the style system (there is a variable
(bq-process type))))))))) (bq-process type)))))))))
(defun c-valid-offset (offset) (defun c-valid-offset (offset)
"Return non-nil iff OFFSET is a valid offset for a syntactic symbol. "Return non-nil if OFFSET is a valid offset for a syntactic symbol.
See `c-offsets-alist'." See `c-offsets-alist'."
(or (eq offset '+) (or (eq offset '+)
(eq offset '-) (eq offset '-)

View file

@ -3558,7 +3558,7 @@ modify syntax-type text property if the situation is too hard."
(modify-syntax-entry starter (if (eq starter ?\\) "\\" ".") st) (modify-syntax-entry starter (if (eq starter ?\\) "\\" ".") st)
(if ender (modify-syntax-entry ender "." st)))) (if ender (modify-syntax-entry ender "." st))))
;; i: have 2 args, after end of the first arg ;; i: have 2 args, after end of the first arg
;; i2: start of the second arg, if any (before delim iff `ender'). ;; i2: start of the second arg, if any (before delim if `ender').
;; ender: the last arg bounded by parens-like chars, the second one of them ;; ender: the last arg bounded by parens-like chars, the second one of them
;; starter: the starting delimiter of the first arg ;; starter: the starting delimiter of the first arg
;; go-forward: has 2 args, and the second part is empty ;; go-forward: has 2 args, and the second part is empty
@ -8090,7 +8090,7 @@ prototype \\&SUB Returns prototype of the function given a reference.
(defun cperl-beautify-regexp-piece (b e embed level) (defun cperl-beautify-regexp-piece (b e embed level)
;; b is before the starting delimiter, e before the ending ;; b is before the starting delimiter, e before the ending
;; e should be a marker, may be changed, but remains "correct". ;; e should be a marker, may be changed, but remains "correct".
;; EMBED is nil iff we process the whole REx. ;; EMBED is nil if we process the whole REx.
;; The REx is guaranteed to have //x ;; The REx is guaranteed to have //x
;; LEVEL shows how many levels deep to go ;; LEVEL shows how many levels deep to go
;; position at enter and at leave is not defined ;; position at enter and at leave is not defined

View file

@ -623,7 +623,8 @@ You can also use the keyboard accelerators indicated like this: [K]ey."
(defun cpp-edit-toggle-known (arg) (defun cpp-edit-toggle-known (arg)
"Toggle writable status for known conditionals. "Toggle writable status for known conditionals.
With optional argument ARG, make them writable iff ARG is positive." With optional argument ARG, make them writable if ARG is positive,
otherwise make them unwritable."
(interactive "@P") (interactive "@P")
(if (or (and (null arg) cpp-known-writable) (if (or (and (null arg) cpp-known-writable)
(<= (prefix-numeric-value arg) 0)) (<= (prefix-numeric-value arg) 0))
@ -633,7 +634,8 @@ With optional argument ARG, make them writable iff ARG is positive."
(defun cpp-edit-toggle-unknown (arg) (defun cpp-edit-toggle-unknown (arg)
"Toggle writable status for unknown conditionals. "Toggle writable status for unknown conditionals.
With optional argument ARG, make them writable iff ARG is positive." With optional argument ARG, make them writable if ARG is positive,
otherwise make them unwritable."
(interactive "@P") (interactive "@P")
(if (or (and (null arg) cpp-unknown-writable) (if (or (and (null arg) cpp-unknown-writable)
(<= (prefix-numeric-value arg) 0)) (<= (prefix-numeric-value arg) 0))

View file

@ -256,10 +256,10 @@ One argument, the tag info returned by `snarf-tag-function'.")
(defvar tags-included-tables-function nil (defvar tags-included-tables-function nil
"Function to do the work of `tags-included-tables' (which see).") "Function to do the work of `tags-included-tables' (which see).")
(defvar verify-tags-table-function nil (defvar verify-tags-table-function nil
"Function to return t iff current buffer contains valid tags file.") "Function to return t if current buffer contains valid tags file.")
;; Initialize the tags table in the current buffer. ;; Initialize the tags table in the current buffer.
;; Returns non-nil iff it is a valid tags table. On ;; Returns non-nil if it is a valid tags table. On
;; non-nil return, the tags table state variable are ;; non-nil return, the tags table state variable are
;; made buffer-local and initialized to nil. ;; made buffer-local and initialized to nil.
(defun initialize-new-tags-table () (defun initialize-new-tags-table ()
@ -417,7 +417,7 @@ file the tag was in."
(defun tags-verify-table (file) (defun tags-verify-table (file)
"Read FILE into a buffer and verify that it is a valid tags table. "Read FILE into a buffer and verify that it is a valid tags table.
Sets the current buffer to one visiting FILE (if it exists). Sets the current buffer to one visiting FILE (if it exists).
Returns non-nil iff it is a valid table." Returns non-nil if it is a valid table."
(if (get-file-buffer file) (if (get-file-buffer file)
;; The file is already in a buffer. Check for the visited file ;; The file is already in a buffer. Check for the visited file
;; having changed since we last used it. ;; having changed since we last used it.
@ -1219,8 +1219,8 @@ where they were found."
(verify-tags-table-function . etags-verify-tags-table) (verify-tags-table-function . etags-verify-tags-table)
)))) ))))
;; Return non-nil iff the current buffer is a valid etags TAGS file.
(defun etags-verify-tags-table () (defun etags-verify-tags-table ()
"Return non-nil if the current buffer is a valid etags TAGS file."
;; Use eq instead of = in case char-after returns nil. ;; Use eq instead of = in case char-after returns nil.
(eq (char-after (point-min)) ?\f)) (eq (char-after (point-min)) ?\f))

View file

@ -1763,7 +1763,7 @@ If ALL is nil, only match comments that start in column > 0."
;; From: ralf@up3aud1.gwdg.de (Ralf Fassel) ;; From: ralf@up3aud1.gwdg.de (Ralf Fassel)
;; Test if TAB format continuation lines work. ;; Test if TAB format continuation lines work.
(defun fortran-is-in-string-p (where) (defun fortran-is-in-string-p (where)
"Return non-nil iff WHERE (a buffer position) is inside a Fortran string." "Return non-nil if WHERE (a buffer position) is inside a Fortran string."
(save-excursion (save-excursion
(goto-char where) (goto-char where)
(cond (cond

View file

@ -347,7 +347,8 @@ for `gdba'."
(defun gdb-many-windows (arg) (defun gdb-many-windows (arg)
"Toggle the number of windows in the basic arrangement. "Toggle the number of windows in the basic arrangement.
With arg, display additional buffers iff arg is positive." With prefix argument ARG, display additional buffers if ARG is positive,
otherwise use a single window."
(interactive "P") (interactive "P")
(setq gdb-many-windows (setq gdb-many-windows
(if (null arg) (if (null arg)
@ -363,7 +364,8 @@ With arg, display additional buffers iff arg is positive."
(defun gdb-use-separate-io-buffer (arg) (defun gdb-use-separate-io-buffer (arg)
"Toggle separate IO for debugged program. "Toggle separate IO for debugged program.
With arg, use separate IO iff arg is positive." With prefix argument ARG, use separate IO if ARG is positive,
otherwise do not."
(interactive "P") (interactive "P")
(setq gdb-use-separate-io-buffer (setq gdb-use-separate-io-buffer
(if (null arg) (if (null arg)
@ -664,7 +666,8 @@ line, and no execution takes place."
(defun gdb-speedbar-auto-raise (arg) (defun gdb-speedbar-auto-raise (arg)
"Toggle automatic raising of the speedbar for watch expressions. "Toggle automatic raising of the speedbar for watch expressions.
With arg, automatically raise speedbar iff arg is positive." With prefix argument ARG, automatically raise speedbar if ARG is
positive, otherwise don't automatically raise it."
(interactive "P") (interactive "P")
(setq gdb-speedbar-auto-raise (setq gdb-speedbar-auto-raise
(if (null arg) (if (null arg)
@ -1381,7 +1384,8 @@ directives."
(defun gdb-find-source-frame (arg) (defun gdb-find-source-frame (arg)
"Toggle trying to find a source frame further up stack. "Toggle trying to find a source frame further up stack.
With arg, look for a source frame further up stack iff arg is positive." With prefix argument ARG, look for a source frame further up
stack if ARG is positive, otherwise don't look further up."
(interactive "P") (interactive "P")
(setq gdb-find-source-frame (setq gdb-find-source-frame
(if (null arg) (if (null arg)

View file

@ -3353,7 +3353,7 @@ This event can be examined by forms in GUD-TOOLTIP-DISPLAY.")
(defun gud-tooltip-dereference (&optional arg) (defun gud-tooltip-dereference (&optional arg)
"Toggle whether tooltips should show `* expr' or `expr'. "Toggle whether tooltips should show `* expr' or `expr'.
With arg, dereference expr iff arg is positive." With arg, dereference expr if ARG is positive, otherwise do not derereference."
(interactive "P") (interactive "P")
(setq gud-tooltip-dereference (setq gud-tooltip-dereference
(if (null arg) (if (null arg)

View file

@ -262,7 +262,7 @@ One of the following symbols:
t -- open both code and comment blocks t -- open both code and comment blocks
nil -- open neither code nor comment blocks nil -- open neither code nor comment blocks
This has effect iff `search-invisible' is set to `open'." This has effect only if `search-invisible' is set to `open'."
:type '(choice (const :tag "open only code blocks" code) :type '(choice (const :tag "open only code blocks" code)
(const :tag "open only comment blocks" comment) (const :tag "open only comment blocks" comment)
(const :tag "open both code and comment blocks" t) (const :tag "open both code and comment blocks" t)
@ -515,7 +515,7 @@ Optional arg REPOS-END means reposition at end."
(goto-char (if repos-end end beg))) (goto-char (if repos-end end beg)))
(defun hs-hide-block-at-point (&optional end comment-reg) (defun hs-hide-block-at-point (&optional end comment-reg)
"Hide block iff on block beginning. "Hide block if on block beginning.
Optional arg END means reposition at end. Optional arg END means reposition at end.
Optional arg COMMENT-REG is a list of the form (BEGIN END) and Optional arg COMMENT-REG is a list of the form (BEGIN END) and
specifies the limits of the comment, or nil if the block is not specifies the limits of the comment, or nil if the block is not
@ -679,7 +679,7 @@ Return point, or nil if original point was not in a block."
(goto-char maxp)) (goto-char maxp))
(defmacro hs-life-goes-on (&rest body) (defmacro hs-life-goes-on (&rest body)
"Evaluate BODY forms iff variable `hs-minor-mode' is non-nil. "Evaluate BODY forms if variable `hs-minor-mode' is non-nil.
In the dynamic context of this macro, `inhibit-point-motion-hooks' In the dynamic context of this macro, `inhibit-point-motion-hooks'
and `case-fold-search' are both t." and `case-fold-search' are both t."
`(when hs-minor-mode `(when hs-minor-mode

View file

@ -567,24 +567,24 @@ including a reproducible test case and send the message."
(describe-function major-mode)) (describe-function major-mode))
(defsubst octave-in-comment-p () (defsubst octave-in-comment-p ()
"Returns t if point is inside an Octave comment, nil otherwise." "Return t if point is inside an Octave comment."
(interactive) (interactive)
(save-excursion (save-excursion
(nth 4 (parse-partial-sexp (line-beginning-position) (point))))) (nth 4 (parse-partial-sexp (line-beginning-position) (point)))))
(defsubst octave-in-string-p () (defsubst octave-in-string-p ()
"Returns t if point is inside an Octave string, nil otherwise." "Return t if point is inside an Octave string."
(interactive) (interactive)
(save-excursion (save-excursion
(nth 3 (parse-partial-sexp (line-beginning-position) (point))))) (nth 3 (parse-partial-sexp (line-beginning-position) (point)))))
(defsubst octave-not-in-string-or-comment-p () (defsubst octave-not-in-string-or-comment-p ()
"Returns t iff point is not inside an Octave string or comment." "Return t if point is not inside an Octave string or comment."
(let ((pps (parse-partial-sexp (line-beginning-position) (point)))) (let ((pps (parse-partial-sexp (line-beginning-position) (point))))
(not (or (nth 3 pps) (nth 4 pps))))) (not (or (nth 3 pps) (nth 4 pps)))))
(defun octave-in-block-p () (defun octave-in-block-p ()
"Returns t if point is inside an Octave block, nil otherwise. "Return t if point is inside an Octave block.
The block is taken to start at the first letter of the begin keyword and The block is taken to start at the first letter of the begin keyword and
to end after the end keyword." to end after the end keyword."
(let ((pos (point))) (let ((pos (point)))
@ -599,7 +599,7 @@ to end after the end keyword."
(< pos (point))))) (< pos (point)))))
(defun octave-in-defun-p () (defun octave-in-defun-p ()
"Returns t iff point is inside an Octave function declaration. "Return t if point is inside an Octave function declaration.
The function is taken to start at the `f' of `function' and to end after The function is taken to start at the `f' of `function' and to end after
the end keyword." the end keyword."
(let ((pos (point))) (let ((pos (point)))

View file

@ -348,7 +348,7 @@ comments and strings, or that point is within brackets/parens."
(error nil)))))))) (error nil))))))))
(defun python-comment-line-p () (defun python-comment-line-p ()
"Return non-nil iff current line has only a comment." "Return non-nil if current line has only a comment."
(save-excursion (save-excursion
(end-of-line) (end-of-line)
(when (eq 'comment (syntax-ppss-context (syntax-ppss))) (when (eq 'comment (syntax-ppss-context (syntax-ppss)))
@ -356,7 +356,7 @@ comments and strings, or that point is within brackets/parens."
(looking-at (rx (or (syntax comment-start) line-end)))))) (looking-at (rx (or (syntax comment-start) line-end))))))
(defun python-blank-line-p () (defun python-blank-line-p ()
"Return non-nil iff current line is blank." "Return non-nil if current line is blank."
(save-excursion (save-excursion
(beginning-of-line) (beginning-of-line)
(looking-at "\\s-*$"))) (looking-at "\\s-*$")))
@ -850,7 +850,7 @@ multi-line bracketed expressions."
"Skip out of any nested brackets. "Skip out of any nested brackets.
Skip forward if FORWARD is non-nil, else backward. Skip forward if FORWARD is non-nil, else backward.
If SYNTAX is non-nil it is the state returned by `syntax-ppss' at point. If SYNTAX is non-nil it is the state returned by `syntax-ppss' at point.
Return non-nil iff skipping was done." Return non-nil if skipping was done."
(let ((depth (syntax-ppss-depth (or syntax (syntax-ppss)))) (let ((depth (syntax-ppss-depth (or syntax (syntax-ppss))))
(forward (if forward -1 1))) (forward (if forward -1 1)))
(unless (zerop depth) (unless (zerop depth)
@ -1191,7 +1191,7 @@ local value.")
(define-key map "\C-c\C-l" 'python-load-file) (define-key map "\C-c\C-l" 'python-load-file)
(define-key map "\C-c\C-v" 'python-check) (define-key map "\C-c\C-v" 'python-check)
;; Note that we _can_ still use these commands which send to the ;; Note that we _can_ still use these commands which send to the
;; Python process even at the prompt iff we have a normal prompt, ;; Python process even at the prompt provided we have a normal prompt,
;; i.e. '>>> ' and not '... '. See the comment before ;; i.e. '>>> ' and not '... '. See the comment before
;; python-send-region. Fixme: uncomment these if we address that. ;; python-send-region. Fixme: uncomment these if we address that.

View file

@ -232,7 +232,7 @@ It creates the Imenu index for the buffer, if necessary."
When Which Function mode is enabled, the current function name is When Which Function mode is enabled, the current function name is
continuously displayed in the mode line, in certain major modes. continuously displayed in the mode line, in certain major modes.
With prefix ARG, turn Which Function mode on iff arg is positive, With prefix ARG, turn Which Function mode on if arg is positive,
and off otherwise." and off otherwise."
:global t :group 'which-func :global t :group 'which-func
(if which-function-mode (if which-function-mode

View file

@ -868,7 +868,7 @@ Control returns to the top level rep loop."
(sleep-for 1))) (sleep-for 1)))
(defun xscheme-process-running-p () (defun xscheme-process-running-p ()
"True iff there is a Scheme process whose status is `run'." "True if there is a Scheme process whose status is `run'."
(let ((process (get-process xscheme-process-name))) (let ((process (get-process xscheme-process-name)))
(and process (and process
(eq (process-status process) 'run)))) (eq (process-status process) 'run))))
@ -882,7 +882,7 @@ Control returns to the top level rep loop."
(and buffer (get-buffer-window buffer)))) (and buffer (get-buffer-window buffer))))
(defun xscheme-process-buffer-current-p () (defun xscheme-process-buffer-current-p ()
"True iff the current buffer is the Scheme process buffer." "True if the current buffer is the Scheme process buffer."
(eq (xscheme-process-buffer) (current-buffer))) (eq (xscheme-process-buffer) (current-buffer)))
;;;; Process Filter Operations ;;;; Process Filter Operations