From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: latex fontification [more] Date: Fri, 04 Jul 2014 00:19:23 +0200 Message-ID: <87a98qt79w.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404426014 7769 80.91.229.3 (3 Jul 2014 22:20:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 22:20:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 04 00:20:09 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1X2pMP-0004hk-0m for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jul 2014 00:20:09 +0200 Original-Received: from localhost ([::1]:33701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2pMO-0006Hr-Gx for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 18:20:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2pM5-0006F4-MK for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 18:19:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2pLx-0003jG-Dn for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 18:19:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2pLx-0003il-6s for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 18:19:41 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X2pLv-0004MG-UD for help-gnu-emacs@gnu.org; Fri, 04 Jul 2014 00:19:39 +0200 Original-Received: from dslb-094-217-127-201.pools.arcor-ip.net ([94.217.127.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 00:19:39 +0200 Original-Received: from michael_heerdegen by dslb-094-217-127-201.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 00:19:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-217-127-201.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) Cancel-Lock: sha1:QHNMYYlDB4qJSrbJeIar19EYa18= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98533 Archived-At: > > Bonjour, Hi! I have no experience with this, I just had a quick look at the code. > > I would like to have a syntax colorisation for some TeX commands using > > Auctex. > > > > I found on the Internet this way: add to .emacs file: > > > > (setq font-latex-match-reference-keywords > > '( > > ("footnotea" "[{") > > ("footnoteb" "[{") > > ("footnotec" "[{") > > ("edtext" "[{") > > ("Afootnote" "[{") > > ("Bfootnote" "[{") > > ("Cfootnote" "[{") > > ("lemma" "[{"))) > > > > And the commands \footnotes, \footnoteb etc will be highlighted... > > > > This doesn't work for me.... Did I miss something? > > I have to add this: it works for some buffer and not for some other! I guess this is because the variable is buffer local. Use `setq-default` instead of `setq` to set the global binding. > File mode specification error: (void-function make-local-hook) > > But for some file I have this in the lower bar: > > (Latex/P Bcite Arev Fill) > > And in some other: > > (Fundamental Bcite Arev Fill) > > Why? > > > Moreover, I found on the web that make-local-hook is now deprecated and > has disappeared from Emacs 24, but I am running Emacs 24.3.1 I think it's a bug - in `bib-cite-minor-mode`. There was obviously code added for xemacs (which still has `make-local-hook`), but it is used unconditionally for all Emacsen - thus the error. To prevent this, avoid turning on bib-cite-minor-mode. Having fundamental mode in one buffer (as you saw it) is probably a side effect of this error. BTW, please make a bug report if this problem hasn't been reported or fixed yet. HTH, Michael.