From: Dmitry Gutov <dgutov@yandex.ru>
To: Alan Mackenzie <acm@muc.de>
Cc: Eli Zaretskii <eliz@gnu.org>, Tassilo Horn <tsdh@gnu.org>,
aidalgol@no8wireless.co.nz, emacs-devel@gnu.org
Subject: Re: Fontless Info
Date: Sat, 23 Feb 2013 08:58:50 +0400 [thread overview]
Message-ID: <87k3pz4odx.fsf@yandex.ru> (raw)
In-Reply-To: <20130219231046.GB4377@acm.acm> (Alan Mackenzie's message of "Tue, 19 Feb 2013 23:10:46 +0000")
Hey Alan,
Alan Mackenzie <acm@muc.de> writes:
>> 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:
I've applied the patch, bootstrapped, and it [still] has problems with
whitespace-mode. To reproduce:
1. Run emacs -Q
2. Eval (add-hook 'prog-mode 'whitespace-mode)
3. Open any .el file, for example => no syntax highligting
> === 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))))
next prev parent reply other threads:[~2013-02-23 4:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 8:01 Fontless Info Aidan Gauland
2013-02-19 10:16 ` Tassilo Horn
2013-02-19 15:00 ` Drew Adams
2013-02-19 16:33 ` Eli Zaretskii
2013-02-19 16:20 ` Eli Zaretskii
2013-02-19 17:58 ` Drew Adams
2013-02-19 18:48 ` Drew Adams
2013-02-19 20:53 ` Eli Zaretskii
2013-02-19 21:05 ` Drew Adams
2013-02-19 21:21 ` Eli Zaretskii
2013-02-19 21:25 ` Drew Adams
2013-02-20 11:08 ` Michael Heerdegen
2013-02-19 21:14 ` Drew Adams
2013-02-19 23:23 ` Alan Mackenzie
2013-02-20 4:02 ` Drew Adams
2013-02-19 23:10 ` Alan Mackenzie
2013-02-20 10:58 ` Alan Mackenzie
2013-02-23 4:58 ` Dmitry Gutov [this message]
2013-02-24 18:08 ` Alan Mackenzie
2013-02-26 5:43 ` Dmitry Gutov
2013-02-19 16:58 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3pz4odx.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=acm@muc.de \
--cc=aidalgol@no8wireless.co.nz \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.