comparison lisp/progmodes/hideshow.el @ 78487:419c5c316b51

Replace `iff' in doc-strings and comments.
author Glenn Morris <rgm@gnu.org>
date Wed, 08 Aug 2007 07:31:11 +0000
parents c1ec1c8a8d2e
children a1342e6e097a e5a68f18fcb9
comparison
equal deleted inserted replaced
78486:f0a07da7dd45 78487:419c5c316b51
260 code -- open only code blocks 260 code -- open only code blocks
261 comment -- open only comment blocks 261 comment -- open only comment blocks
262 t -- open both code and comment blocks 262 t -- open both code and comment blocks
263 nil -- open neither code nor comment blocks 263 nil -- open neither code nor comment blocks
264 264
265 This has effect iff `search-invisible' is set to `open'." 265 This has effect only if `search-invisible' is set to `open'."
266 :type '(choice (const :tag "open only code blocks" code) 266 :type '(choice (const :tag "open only code blocks" code)
267 (const :tag "open only comment blocks" comment) 267 (const :tag "open only comment blocks" comment)
268 (const :tag "open both code and comment blocks" t) 268 (const :tag "open both code and comment blocks" t)
269 (const :tag "don't open any of them" nil)) 269 (const :tag "don't open any of them" nil))
270 :group 'hideshow) 270 :group 'hideshow)
513 (hs-discard-overlays beg-eol end-eol) 513 (hs-discard-overlays beg-eol end-eol)
514 (hs-make-overlay beg-eol end-eol 'comment beg end)) 514 (hs-make-overlay beg-eol end-eol 'comment beg end))
515 (goto-char (if repos-end end beg))) 515 (goto-char (if repos-end end beg)))
516 516
517 (defun hs-hide-block-at-point (&optional end comment-reg) 517 (defun hs-hide-block-at-point (&optional end comment-reg)
518 "Hide block iff on block beginning. 518 "Hide block if on block beginning.
519 Optional arg END means reposition at end. 519 Optional arg END means reposition at end.
520 Optional arg COMMENT-REG is a list of the form (BEGIN END) and 520 Optional arg COMMENT-REG is a list of the form (BEGIN END) and
521 specifies the limits of the comment, or nil if the block is not 521 specifies the limits of the comment, or nil if the block is not
522 a comment. 522 a comment.
523 523
677 (goto-char (match-beginning hs-block-start-mdata-select)) 677 (goto-char (match-beginning hs-block-start-mdata-select))
678 (hs-hide-block-at-point t))) 678 (hs-hide-block-at-point t)))
679 (goto-char maxp)) 679 (goto-char maxp))
680 680
681 (defmacro hs-life-goes-on (&rest body) 681 (defmacro hs-life-goes-on (&rest body)
682 "Evaluate BODY forms iff variable `hs-minor-mode' is non-nil. 682 "Evaluate BODY forms if variable `hs-minor-mode' is non-nil.
683 In the dynamic context of this macro, `inhibit-point-motion-hooks' 683 In the dynamic context of this macro, `inhibit-point-motion-hooks'
684 and `case-fold-search' are both t." 684 and `case-fold-search' are both t."
685 `(when hs-minor-mode 685 `(when hs-minor-mode
686 (let ((inhibit-point-motion-hooks t) 686 (let ((inhibit-point-motion-hooks t)
687 (case-fold-search t)) 687 (case-fold-search t))