Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140936 Details for
Bug 205815
app-emacs/rst-0.4: lazy-lock-mode is obsolete since emacs 22
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for this problem.
lazy-lock-mode-fix.patch (text/plain), 2.21 KB, created by
Norihisa Fujita
on 2008-01-14 16:33:04 UTC
(
hide
)
Description:
patch for this problem.
Filename:
MIME Type:
Creator:
Norihisa Fujita
Created:
2008-01-14 16:33:04 UTC
Size:
2.21 KB
patch
obsolete
>--- rst.el.org 2008-01-15 01:24:21.915973389 +0900 >+++ rst.el 2008-01-15 01:26:59.780969602 +0900 >@@ -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) >- (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)) >- (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))))) >+ ;; 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 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 >+ (cons (cons 'rst-mode (and rst-mode-lazy jit-or-lazy-lock-mode)) >+ font-lock-support-mode)))))) > > ;; Names and hooks > (setq mode-name "reST")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205815
: 140936