From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Fontless Info Date: Sat, 23 Feb 2013 08:58:50 +0400 Message-ID: <87k3pz4odx.fsf@yandex.ru> References: <874nh8ybnz.fsf@dimension8.tehua.net> <87mwv0zk06.fsf@thinkpad.tsdh.de> <83r4kcp95y.fsf@gnu.org> <20130219231046.GB4377@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361595560 31957 80.91.229.3 (23 Feb 2013 04:59:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 04:59:20 +0000 (UTC) Cc: Eli Zaretskii , Tassilo Horn , aidalgol@no8wireless.co.nz, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 23 05:59:42 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 1U97D2-0003Cw-R4 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2013 05:59:40 +0100 Original-Received: from localhost ([::1]:45687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U97Ci-0006kD-Dw for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2013 23:59:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U97Cb-0006ik-Qk for emacs-devel@gnu.org; Fri, 22 Feb 2013 23:59:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U97CR-0006tT-K9 for emacs-devel@gnu.org; Fri, 22 Feb 2013 23:59:13 -0500 Original-Received: from mail-lb0-f177.google.com ([209.85.217.177]:32875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U97CL-0006sl-8T; Fri, 22 Feb 2013 23:58:57 -0500 Original-Received: by mail-lb0-f177.google.com with SMTP id go11so1036793lbb.22 for ; Fri, 22 Feb 2013 20:58:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=O1vxOoAKDpEEokZDkmv8DP2A7IQfkArehnaRKJLw/Og=; b=eV+ObsmFhXguzh9P9DkFUPE6WMi3QHtRnC/GC4Dyt9cpT7u7M3UZoW8M28eEqPHIpx gOZKeSWLD+C2wPHTfWiF3CrFxWnQ3A9VJxVP7WivrYj27kv92dLwyS01xN/rRiEJxVD5 tPrywxb+g9xPqapzzMc+JAOwqL2XnQ5wRDhvBu+Gc6V/HCXnFTKNxb40oE4adWOLlTsH Nh+yzhSf7gxsOCT2e1cZDsQVfo0rb9KGUomPgRtYJwqocmXYx3rvIF2DU3R8A5ErBBf/ jXGZEwv+tvrMWlGFiUi2Ob44nslJVTNXqsb7GMz43Swg95HU0gvd5pl+gcicLwNB9/a1 XMiQ== X-Received: by 10.152.146.199 with SMTP id te7mr3793821lab.23.1361595535755; Fri, 22 Feb 2013 20:58:55 -0800 (PST) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id e11sm1450279lbd.11.2013.02.22.20.58.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Feb 2013 20:58:54 -0800 (PST) In-Reply-To: <20130219231046.GB4377@acm.acm> (Alan Mackenzie's message of "Tue, 19 Feb 2013 23:10:46 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.177 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:157273 Archived-At: Hey Alan, Alan Mackenzie 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))))