summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-01-14 18:08:16 +0000
committerUlrich Müller <ulm@gentoo.org>2008-01-14 18:08:16 +0000
commita6bfbd8d5a1f976dbfe24d65497c04ceeef382a1 (patch)
tree8ae29c72943209bfbb75d0fe7c0c9de94e39d90a /app-emacs
parentAdd the juju USE-flag for media-libs/libdc1394, enabling use of the new firew... (diff)
downloadgentoo-2-a6bfbd8d5a1f976dbfe24d65497c04ceeef382a1.tar.gz
gentoo-2-a6bfbd8d5a1f976dbfe24d65497c04ceeef382a1.tar.bz2
gentoo-2-a6bfbd8d5a1f976dbfe24d65497c04ceeef382a1.zip
Replace lazy-lock-mode by jit-lock-mode for Emacs 22, fixes bug 205815.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/rst/ChangeLog13
-rw-r--r--app-emacs/rst/files/50rst-mode-gentoo.el8
-rw-r--r--app-emacs/rst/files/51rst-gentoo.el6
-rw-r--r--app-emacs/rst/files/digest-rst-0.2.93
-rw-r--r--app-emacs/rst/files/digest-rst-0.4-r13
-rw-r--r--app-emacs/rst/files/rst-0.4-lazy-lock-mode-fix.patch36
-rw-r--r--app-emacs/rst/rst-0.2.9.ebuild24
-rw-r--r--app-emacs/rst/rst-0.4-r1.ebuild24
8 files changed, 80 insertions, 37 deletions
diff --git a/app-emacs/rst/ChangeLog b/app-emacs/rst/ChangeLog
index 2a9185ab4de5..e6cfecd110ee 100644
--- a/app-emacs/rst/ChangeLog
+++ b/app-emacs/rst/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-emacs/rst
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/rst/ChangeLog,v 1.12 2007/07/02 13:56:30 ulm Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/rst/ChangeLog,v 1.13 2008/01/14 18:08:15 ulm Exp $
+
+*rst-0.4-r1 (14 Jan 2008)
+
+ 14 Jan 2008; Ulrich Mueller <ulm@gentoo.org>
+ +files/rst-0.4-lazy-lock-mode-fix.patch, -files/50rst-mode-gentoo.el,
+ +files/51rst-gentoo.el, -rst-0.2.9.ebuild, +rst-0.4-r1.ebuild:
+ Replace lazy-lock-mode by jit-lock-mode for Emacs 22, fixes bug 205815.
+ Thanks to Norihisa Fujita <mizyo@mizyo.com> for reporting the problem and
+ providing a patch. Remove old version.
02 Jul 2007; Ulrich Mueller <ulm@gentoo.org> rst-0.4.ebuild:
Remove src_install, since it is now the default of elisp.eclass.
diff --git a/app-emacs/rst/files/50rst-mode-gentoo.el b/app-emacs/rst/files/50rst-mode-gentoo.el
deleted file mode 100644
index 9259ddd9ea0f..000000000000
--- a/app-emacs/rst/files/50rst-mode-gentoo.el
+++ /dev/null
@@ -1,8 +0,0 @@
-
-;;; rst-mode site-lisp configuration
-
-(add-to-list 'load-path "@SITELISP@")
-(autoload 'rst-mode "rst-mode" "mode for editing reStructuredText documents" t)
-(setq auto-mode-alist
- (append '(("\\.rst$" . rst-mode)
- ("\\.rest$" . rst-mode)) auto-mode-alist))
diff --git a/app-emacs/rst/files/51rst-gentoo.el b/app-emacs/rst/files/51rst-gentoo.el
new file mode 100644
index 000000000000..6cea463ed14a
--- /dev/null
+++ b/app-emacs/rst/files/51rst-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; rst site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'rst-mode "rst" "mode for editing reStructuredText documents" t)
+(add-to-list 'auto-mode-alist '("\\.re?st\\'" . rst-mode))
diff --git a/app-emacs/rst/files/digest-rst-0.2.9 b/app-emacs/rst/files/digest-rst-0.2.9
deleted file mode 100644
index 4850604ece97..000000000000
--- a/app-emacs/rst/files/digest-rst-0.2.9
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 cb39a433257f2d819ef923efb8946401 rst-mode-0.2.9.tar.gz 9000
-RMD160 e388555ec8393149bb2f9872f2f3cfba7fb7cd84 rst-mode-0.2.9.tar.gz 9000
-SHA256 8e26e4e0d786e58737231b8e7d18b02dc29711f9de864750e1f7bf25decac690 rst-mode-0.2.9.tar.gz 9000
diff --git a/app-emacs/rst/files/digest-rst-0.4-r1 b/app-emacs/rst/files/digest-rst-0.4-r1
new file mode 100644
index 000000000000..2a4fbf925c65
--- /dev/null
+++ b/app-emacs/rst/files/digest-rst-0.4-r1
@@ -0,0 +1,3 @@
+MD5 0fe7b42bb3c2aa3680fe30f9a5fbf712 docutils-0.4.tar.gz 1237801
+RMD160 f6a3c5bfb79ed08ce282bcaf3ded05bd2e3f95b5 docutils-0.4.tar.gz 1237801
+SHA256 b81f29e4f39540d06c7d8c0dc1a2c209816c47ce33a66ac50ee28ae38d242c0e docutils-0.4.tar.gz 1237801
diff --git a/app-emacs/rst/files/rst-0.4-lazy-lock-mode-fix.patch b/app-emacs/rst/files/rst-0.4-lazy-lock-mode-fix.patch
new file mode 100644
index 000000000000..a6c3b906dc87
--- /dev/null
+++ b/app-emacs/rst/files/rst-0.4-lazy-lock-mode-fix.patch
@@ -0,0 +1,36 @@
+--- rst.el.orig 2005-12-27 14:12:04.000000000 +0100
++++ rst.el 2008-01-14 18:49:33.000000000 +0100
+@@ -2199,20 +2199,30 @@
+ (when (boundp 'font-lock-support-mode)
+ ;; rst-mode has its own mind about font-lock-support-mode
+ (make-local-variable 'font-lock-support-mode)
++ ;; jit-lock-mode replaced lazy-lock-mode in GNU Emacs 22
++ (let ((jit-or-lazy-lock-mode
++ (cond
++ ((fboundp 'jit-lock-mode) 'jit-lock-mode)
++ ((fboundp 'lazy-lock-mode) 'lazy-lock-mode)
++ ;; if neither lazy-lock nor jit-lock is supported,
++ ;; tell user and disable rst-mode-lazy
++ (t (when rst-mode-lazy
++ (message "Disabled lazy fontification, because no known support mode found.")
++ (setq rst-mode-lazy nil))))))
+ (cond
+ ((and (not rst-mode-lazy) (not font-lock-support-mode)))
+ ;; No support mode set and none required - leave it alone
+ ((or (not font-lock-support-mode) ;; No support mode set (but required)
+ (symbolp font-lock-support-mode)) ;; or a fixed mode for all
+ (setq font-lock-support-mode
+- (list (cons 'rst-mode (and rst-mode-lazy 'lazy-lock-mode))
++ (list (cons 'rst-mode (and rst-mode-lazy jit-or-lazy-lock-mode))
+ (cons t font-lock-support-mode))))
+ ((and (listp font-lock-support-mode)
+ (not (assoc 'rst-mode font-lock-support-mode)))
+ ;; A list of modes missing rst-mode
+ (setq font-lock-support-mode
+- (append '((cons 'rst-mode (and rst-mode-lazy 'lazy-lock-mode)))
+- font-lock-support-mode)))))
++ (cons (cons 'rst-mode (and rst-mode-lazy jit-or-lazy-lock-mode))
++ font-lock-support-mode))))))
+
+ ;; Names and hooks
+ (setq mode-name "reST")
diff --git a/app-emacs/rst/rst-0.2.9.ebuild b/app-emacs/rst/rst-0.2.9.ebuild
deleted file mode 100644
index e2666b4a2a01..000000000000
--- a/app-emacs/rst/rst-0.2.9.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/rst/rst-0.2.9.ebuild,v 1.1 2007/06/26 19:15:01 ulm Exp $
-
-inherit elisp
-
-MY_PN=rst-mode
-DESCRIPTION="A major mode for editing reStructuredText"
-HOMEPAGE="http://www.merten-home.de/FreeSoftware/rst-mode/index.html
- http://www.emacswiki.org/cgi-bin/wiki/reStructuredText"
-SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~amd64 ~sparc"
-IUSE=""
-
-SITEFILE=50${MY_PN}-gentoo.el
-S="${WORKDIR}/${MY_PN}-${PV}"
-
-src_install() {
- elisp-install ${MY_PN} *.el *.elc
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${MY_PN}
-}
diff --git a/app-emacs/rst/rst-0.4-r1.ebuild b/app-emacs/rst/rst-0.4-r1.ebuild
new file mode 100644
index 000000000000..b4167afedb8d
--- /dev/null
+++ b/app-emacs/rst/rst-0.4-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/rst/rst-0.4-r1.ebuild,v 1.1 2008/01/14 18:08:15 ulm Exp $
+
+inherit elisp eutils
+
+DESCRIPTION="ReStructuredText support for Emacs"
+HOMEPAGE="http://www.emacswiki.org/cgi-bin/wiki/reStructuredText"
+SRC_URI="mirror://sourceforge/docutils/docutils-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+S="${WORKDIR}/docutils-${PV}/tools/editors/emacs"
+SITEFILE=51${PN}-gentoo.el
+DOCS="README.txt"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-lazy-lock-mode-fix.patch"
+}