From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Fontless Info Date: Tue, 19 Feb 2013 23:10:46 +0000 Message-ID: <20130219231046.GB4377@acm.acm> References: <874nh8ybnz.fsf@dimension8.tehua.net> <87mwv0zk06.fsf@thinkpad.tsdh.de> <83r4kcp95y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1361316025 5260 80.91.229.3 (19 Feb 2013 23:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 23:20:25 +0000 (UTC) Cc: emacs-devel@gnu.org, aidalgol@no8wireless.co.nz, Tassilo Horn To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 00:20:47 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7wUQ-000468-Di for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 00:20:46 +0100 Original-Received: from localhost ([::1]:57123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wLU-0003P1-St for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2013 18:11:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wLO-0003Hu-Sr for emacs-devel@gnu.org; Tue, 19 Feb 2013 18:11:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wLM-0008Iz-Gm for emacs-devel@gnu.org; Tue, 19 Feb 2013 18:11:26 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:18071 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wLM-0008Is-7Z for emacs-devel@gnu.org; Tue, 19 Feb 2013 18:11:24 -0500 Original-Received: (qmail 93047 invoked by uid 3782); 19 Feb 2013 23:11:23 -0000 Original-Received: from acm.muc.de (pD955791A.dip.t-dialin.net [217.85.121.26]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 20 Feb 2013 00:11:17 +0100 Original-Received: (qmail 3814 invoked by uid 1000); 19 Feb 2013 23:10:46 -0000 Content-Disposition: inline In-Reply-To: <83r4kcp95y.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157175 Archived-At: Hi, Eli. On Tue, Feb 19, 2013 at 06:20:41PM +0200, Eli Zaretskii wrote: > > From: Tassilo Horn > > Date: Tue, 19 Feb 2013 11:16:25 +0100 > > Cc: emacs-devel@gnu.org > > Aidan Gauland 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)))) -- Alan Mackenzie (Nuremberg, Germany).