Mercurial > emacs
comparison lisp/textmodes/reftex.el @ 91302:56a72e2bd635
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-306
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sat, 29 Dec 2007 02:39:17 +0000 |
parents | 2fcaae6177a5 5aca203bab2c |
children | 606f2d163a64 |
comparison
equal
deleted
inserted
replaced
91301:7774e5860c70 | 91302:56a72e2bd635 |
---|---|
1803 ;; Match string without properties | 1803 ;; Match string without properties |
1804 (when (match-beginning n) | 1804 (when (match-beginning n) |
1805 (buffer-substring-no-properties (match-beginning n) (match-end n)))) | 1805 (buffer-substring-no-properties (match-beginning n) (match-end n)))) |
1806 | 1806 |
1807 (defun reftex-region-active-p () | 1807 (defun reftex-region-active-p () |
1808 "Is transient-mark-mode on and the region active? | 1808 "Should we operate on an active region?" |
1809 Works on both Emacs and XEmacs." | 1809 (if (fboundp 'use-region-p) |
1810 (if (featurep 'xemacs) | 1810 (use-region-p) |
1811 (and zmacs-regions (region-active-p)) | 1811 ;; For XEmacs. |
1812 (and transient-mark-mode mark-active))) | 1812 (region-active-p))) |
1813 | 1813 |
1814 (defun reftex-kill-buffer (buffer) | 1814 (defun reftex-kill-buffer (buffer) |
1815 ;; Kill buffer if it exists. | 1815 ;; Kill buffer if it exists. |
1816 (and (setq buffer (get-buffer buffer)) | 1816 (and (setq buffer (get-buffer buffer)) |
1817 (kill-buffer buffer))) | 1817 (kill-buffer buffer))) |