aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorMiles Bader2007-08-13 13:41:28 +0000
committerMiles Bader2007-08-13 13:41:28 +0000
commit37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53 (patch)
tree7fb68e80f66e55100c48b9751cf70c74af2d4bf1 /lisp/textmodes
parent031b6333283be57d971e557b83da31c6be937b0a (diff)
parent9d2db4c6637fe37d75f947063bcb2ecce319a1bc (diff)
downloademacs-37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53.tar.gz
emacs-37cc095b6a175fb5a2fb18fa029eaf3aa3b3fa53.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/artist.el2
-rw-r--r--lisp/textmodes/flyspell.el5
-rw-r--r--lisp/textmodes/ispell.el3
-rw-r--r--lisp/textmodes/nroff-mode.el2
-rw-r--r--lisp/textmodes/refill.el2
-rw-r--r--lisp/textmodes/reftex-global.el2
-rw-r--r--lisp/textmodes/sgml-mode.el2
-rw-r--r--lisp/textmodes/two-column.el14
8 files changed, 18 insertions, 14 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index dbb41f13ec0..274de28e6a0 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -1768,7 +1768,7 @@ info-variant-part."
1768;; Macro that won't funcall the function if it is nil. 1768;; Macro that won't funcall the function if it is nil.
1769;; 1769;;
1770(defmacro artist-funcall (fn &rest args) 1770(defmacro artist-funcall (fn &rest args)
1771 "Call function FN with ARGS iff FN is not nil." 1771 "Call function FN with ARGS, if FN is not nil."
1772 (list 'if fn (cons 'funcall (cons fn args)))) 1772 (list 'if fn (cons 'funcall (cons fn args))))
1773 1773
1774(defun artist-uniq (l) 1774(defun artist-uniq (l)
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 8b95a159477..0b5dfa4cc54 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -457,7 +457,8 @@ See also `flyspell-duplicate-distance'."
457This spawns a single Ispell process and checks each word. 457This spawns a single Ispell process and checks each word.
458The default flyspell behavior is to highlight incorrect words. 458The default flyspell behavior is to highlight incorrect words.
459With no argument, this command toggles Flyspell mode. 459With no argument, this command toggles Flyspell mode.
460With a prefix argument ARG, turn Flyspell minor mode on iff ARG is positive. 460With a prefix argument ARG, turn Flyspell minor mode on if ARG is positive,
461otherwise turn it off.
461 462
462Bindings: 463Bindings:
463\\[ispell-word]: correct words (using Ispell). 464\\[ispell-word]: correct words (using Ispell).
@@ -1621,7 +1622,7 @@ FLYSPELL-BUFFER."
1621;;* flyspell-overlay-p ... */ 1622;;* flyspell-overlay-p ... */
1622;;*---------------------------------------------------------------------*/ 1623;;*---------------------------------------------------------------------*/
1623(defun flyspell-overlay-p (o) 1624(defun flyspell-overlay-p (o)
1624 "A predicate that return true iff O is an overlay used by flyspell." 1625 "Return true if O is an overlay used by flyspell."
1625 (and (overlayp o) (overlay-get o 'flyspell-overlay))) 1626 (and (overlayp o) (overlay-get o 'flyspell-overlay)))
1626 1627
1627;;*---------------------------------------------------------------------*/ 1628;;*---------------------------------------------------------------------*/
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 047fb141331..3d6a17c5d93 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -3324,7 +3324,8 @@ available on the net."
3324;;;###autoload 3324;;;###autoload
3325(defun ispell-minor-mode (&optional arg) 3325(defun ispell-minor-mode (&optional arg)
3326 "Toggle Ispell minor mode. 3326 "Toggle Ispell minor mode.
3327With prefix arg, turn Ispell minor mode on iff arg is positive. 3327With prefix argument ARG, turn Ispell minor mode on if ARG is positive,
3328otherwise turn it off.
3328 3329
3329In Ispell minor mode, pressing SPC or RET 3330In Ispell minor mode, pressing SPC or RET
3330warns you if the previous word is incorrectly spelled. 3331warns you if the previous word is incorrectly spelled.
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index 45d407b2565..31ec234fddc 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -263,7 +263,7 @@ automatically inserts the matching closing request after point."
263`nroff-electric-newline' forces Emacs to check for an nroff request at the 263`nroff-electric-newline' forces Emacs to check for an nroff request at the
264beginning of the line, and insert the matching closing request if necessary. 264beginning of the line, and insert the matching closing request if necessary.
265This command toggles that mode (off->on, on->off), with an argument, 265This command toggles that mode (off->on, on->off), with an argument,
266turns it on iff arg is positive, otherwise off." 266turns it on if arg is positive, otherwise off."
267 :lighter " Electric" 267 :lighter " Electric"
268 (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode"))) 268 (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode")))
269 269
diff --git a/lisp/textmodes/refill.el b/lisp/textmodes/refill.el
index a20a482a1c9..3717faa8ad2 100644
--- a/lisp/textmodes/refill.el
+++ b/lisp/textmodes/refill.el
@@ -217,7 +217,7 @@ complex processing.")
217;;;###autoload 217;;;###autoload
218(define-minor-mode refill-mode 218(define-minor-mode refill-mode
219 "Toggle Refill minor mode. 219 "Toggle Refill minor mode.
220With prefix arg, turn Refill mode on iff arg is positive. 220With prefix arg, turn Refill mode on if arg is positive, otherwise turn it off.
221 221
222When Refill mode is on, the current paragraph will be formatted when 222When Refill mode is on, the current paragraph will be formatted when
223changes are made within it. Self-inserting characters only cause 223changes are made within it. Self-inserting characters only cause
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el
index c551083240c..2a39949431c 100644
--- a/lisp/textmodes/reftex-global.el
+++ b/lisp/textmodes/reftex-global.el
@@ -431,7 +431,7 @@ the current TeX document.
431 431
432With no argument, this command toggles 432With no argument, this command toggles
433`reftex-isearch-minor-mode'. With a prefix argument ARG, turn 433`reftex-isearch-minor-mode'. With a prefix argument ARG, turn
434`reftex-isearch-minor-mode' on iff ARG is positive." 434`reftex-isearch-minor-mode' on if ARG is positive, otherwise turn it off."
435 (interactive "P") 435 (interactive "P")
436 (let ((old-reftex-isearch-minor-mode reftex-isearch-minor-mode)) 436 (let ((old-reftex-isearch-minor-mode reftex-isearch-minor-mode))
437 (setq reftex-isearch-minor-mode 437 (setq reftex-isearch-minor-mode
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 6e262ee00d2..245ffc47908 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -826,7 +826,7 @@ Return non-nil if we skipped over matched tags."
826(defun sgml-skip-tag-forward (arg) 826(defun sgml-skip-tag-forward (arg)
827 "Skip to end of tag or matching closing tag if present. 827 "Skip to end of tag or matching closing tag if present.
828With prefix argument ARG, repeat this ARG times. 828With prefix argument ARG, repeat this ARG times.
829Return t iff after a closing tag." 829Return t if after a closing tag."
830 (interactive "p") 830 (interactive "p")
831 ;; FIXME: Use sgml-get-context or something similar. 831 ;; FIXME: Use sgml-get-context or something similar.
832 ;; It currently might jump to an unrelated </P> if the <P> 832 ;; It currently might jump to an unrelated </P> if the <P>
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el
index 2568b53fe36..e1f55c0dece 100644
--- a/lisp/textmodes/two-column.el
+++ b/lisp/textmodes/two-column.el
@@ -347,8 +347,8 @@ When called again, restores the screen layout with the current buffer
347first and the associated buffer to its right." 347first and the associated buffer to its right."
348 (interactive "P") 348 (interactive "P")
349 ;; first go to full width, so that we can certainly split into two windows 349 ;; first go to full width, so that we can certainly split into two windows
350 (if (< (window-width) (frame-width)) 350 (unless (window-full-width-p)
351 (enlarge-window 99999 t)) 351 (enlarge-window 99999 t))
352 (split-window-horizontally 352 (split-window-horizontally
353 (max window-min-width (min 2C-window-width 353 (max window-min-width (min 2C-window-width
354 (- (frame-width) window-min-width)))) 354 (- (frame-width) window-min-width))))
@@ -533,8 +533,8 @@ off trailing spaces with \\[delete-trailing-whitespace]."
533 (insert 2C-separator string)) 533 (insert 2C-separator string))
534 (next-line 1) ; add one if necessary 534 (next-line 1) ; add one if necessary
535 (set-buffer b2)))) 535 (set-buffer b2))))
536 (if (< (window-width) (frame-width)) 536 (unless (window-full-width-p)
537 (enlarge-window 99999 t))) 537 (enlarge-window 99999 t)))
538 538
539;;;;; utility functions ;;;;; 539;;;;; utility functions ;;;;;
540 540
@@ -561,8 +561,10 @@ off trailing spaces with \\[delete-trailing-whitespace]."
561 (newline arg)) 561 (newline arg))
562 562
563(defun 2C-toggle-autoscroll (arg) 563(defun 2C-toggle-autoscroll (arg)
564 "Toggle autoscrolling, or set it iff prefix ARG is non-nil and positive. 564 "Toggle autoscrolling.
565When autoscrolling is turned on, this also realigns the two buffers." 565With prefix argument ARG, turn on autoscrolling if ARG is
566positive, otherwise turn it off. When autoscrolling is turned
567on, this also realigns the two buffers."
566 (interactive "P") 568 (interactive "P")
567 ;(sit-for 0) 569 ;(sit-for 0)
568 (setq 2C-autoscroll-start (window-start)) 570 (setq 2C-autoscroll-start (window-start))