emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fontless Info


From: Alan Mackenzie
Subject: Re: Fontless Info
Date: Wed, 20 Feb 2013 10:58:06 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Feb 19, 2013 at 11:10:46PM +0000, Alan Mackenzie wrote:
> On Tue, Feb 19, 2013 at 06:20:41PM +0200, Eli Zaretskii wrote:
> > > From: Tassilo Horn <address@hidden>
> > > Date: Tue, 19 Feb 2013 11:16:25 +0100
> > > Cc: address@hidden

> > > Aidan Gauland <address@hidden> writes:

> > > > Emacs was run with -Q, and I ran `make distclean' before rebuilding
> > > > again to make sure it wasn't a problem with my local build.  This
> > > > appears to be a bug, but if no one else can reproduce it...

> > > You are not alone.  I've just updated my emacs copy, and I can reproduce
> > > the issue.  So it's clearly a bug.

> > This happens because font-lock-mode gets turned off in Info buffers.
> > Type "M-x font-lock-mode RET", and all the niceties are back.  (You
> > could guess that this is the problem if you'd go to the un-decorated
> > text and type "M-x describe-text-properties RET" there.)

> > The reason seems to be the changes in revision 111794: their result is
> > that, after Info mode is turned on and turns on font-lock, font-lock
> > is turned off again by something called
> > global-font-lock-mode-check-buffers.  And to make things _really_
> > interesting, if you run this under Edebug, the problem disappears...

> Thanks for the prod!

> > Since the voodoo of easy-mmode is beyond me, I'll let others fix this.

> This might well do the trick:



> === modified file 'lisp/emacs-lisp/easy-mmode.el'
> *** lisp/emacs-lisp/easy-mmode.el     2013-02-15 20:01:51 +0000
> --- lisp/emacs-lisp/easy-mmode.el     2013-02-19 23:03:30 +0000
> ***************
> *** 417,423 ****
>        ;; Go through existing buffers.
>        (dolist (buf (buffer-list))
>          (with-current-buffer buf
> !          (if ,global-mode (,turn-on) (when ,mode (,mode -1))))))

>          ;; Autoloading define-globalized-minor-mode autoloads everything
>          ;; up-to-here.
> --- 417,425 ----
>        ;; Go through existing buffers.
>        (dolist (buf (buffer-list))
>          (with-current-buffer buf
> !          (if ,global-mode
> !              (,turn-on)
> !            (when ,mode (let (,disable-MODE) (,mode -1)))))))

>          ;; Autoloading define-globalized-minor-mode autoloads everything
>          ;; up-to-here.
> ***************
> *** 439,445 ****
>                  (if ,mode (,mode -1))
>                (unless (eq ,MODE-major-mode major-mode)
>                  (if ,mode
> !                    (progn
>                        (,mode -1)
>                        (,turn-on))
>                    (,turn-on))))
> --- 441,447 ----
>                  (if ,mode (,mode -1))
>                (unless (eq ,MODE-major-mode major-mode)
>                  (if ,mode
> !                    (let (,disable-MODE)
>                        (,mode -1)
>                        (,turn-on))
>                    (,turn-on))))

I forgot to add that after applying the patch you will need to regenerate
and load font-core.elc.  Seeing as how that file is dumped with the Emacs
binary, you're probably as well just doing a "make bootstrap".


-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]