+2007-08-24 Thien-Thi Nguyen <ttn@gnuvola.org>
+
+ * progmodes/hideshow.el (hs-match-data): Delete alias.
+ (hs-hide-block-at-point, hs-find-block-beginning)
+ (hs-show-block): Use `match-data' directly.
+
2007-08-24 Martin Rudalics <rudalics@gmx.at>
* format.el (format-alist): Fix typo in doc-string.
Note that `mode-line-format' is buffer-local.")
-;;---------------------------------------------------------------------------
-;; system dependency
-
-(defalias 'hs-match-data 'match-data)
-
;;---------------------------------------------------------------------------
;; support functions
(if comment-reg
(hs-hide-comment-region (car comment-reg) (cadr comment-reg) end)
(when (looking-at hs-block-start-regexp)
- (let* ((mdata (hs-match-data t))
+ (let* ((mdata (match-data t))
(pure-p (match-end 0))
(p
;; `p' is the point at the end of the block beginning,
(while (and (re-search-backward hs-block-start-regexp nil t)
(not (setq done
(< here (save-excursion
- (hs-forward-sexp (hs-match-data t) 1)
+ (hs-forward-sexp (match-data t) 1)
(point)))))))
(if done
(point)
;; ugh, fresh match-data
(looking-at hs-block-start-regexp))
(setq p (point)
- q (progn (hs-forward-sexp (hs-match-data t) 1) (point)))))
+ q (progn (hs-forward-sexp (match-data t) 1) (point)))))
(when (and p q)
(hs-discard-overlays p q)
(goto-char (if end q (1+ p)))))