From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62782 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: font locking messages Date: Fri, 14 Apr 2006 08:56:24 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87vf2kgyhi.fsf@mun.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144997968 22986 80.91.229.2 (14 Apr 2006 06:59:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 06:59:28 +0000 (UTC) Original-X-From: ding-owner+m11309@lists.math.uh.edu Fri Apr 14 08:59:24 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FUIGy-00056A-6n for ding-account@gmane.org; Fri, 14 Apr 2006 08:59:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FUIGs-0004gq-00; Fri, 14 Apr 2006 01:59:10 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FUIEu-0004gl-00 for ding@lists.math.uh.edu; Fri, 14 Apr 2006 01:57:08 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FUIEs-000798-QJ for ding@lists.math.uh.edu; Fri, 14 Apr 2006 01:57:08 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FUIEr-0007Oc-00 for ; Fri, 14 Apr 2006 08:57:05 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FUIEl-0004ic-6d for ding@gnus.org; Fri, 14 Apr 2006 08:56:59 +0200 Original-Received: from quimbies.gnus.org ([80.91.231.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Apr 2006 08:56:59 +0200 Original-Received: from larsi by quimbies.gnus.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Apr 2006 08:56:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: quimbies.gnus.org Mail-Copies-To: never X-Now-Playing: This Mortal Coil's _Filigree & Shadow_: "Ivy and Neet" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEUdHyk8PUI+QEZeO1JY V117fIF/gIWam5+8vcK/wMXh4eVuJFMWAAAACXBIWXMAAABIAAAASABGyWs+AAABiElEQVQ4y51S QW7CMBC00zwgQe4doiCuSP1AiZYA17Yq6p3SimOV4MCZguBcqVEeUJJ9ZR2HBLDdS0dKZO14dj1j Ey/wPdfzPF8sutMMS/CsOBKHSNDys15kHXeIR3IJ+y/CCteSiNfFtm51YkBOiVbpJ1Fxi1gs33ik EWQiFPMZiNVVM0J7WMQRlEXrWsEOON+obVyhYGvkS0dlqENghdutStiC8hP8iTVFe0D9DH+4U4V0 gXlnLPKINRNWCAtBvGqtWj4cEPOZpqBWKAgM9UBYUsYLuqIn7zDQ6q13eSEDNREY7iVxr+xnMMrM RMgroq2484YJmgjXf17JeqoYd1lYzc7VRNxh9XwKjYCqVaH7G5enSnf18OZO3NE+ywreRHX3eGpK u0mGnJ/99etFVzhMz8SNkvrX1X75txfSRyURb6mR2PK8+cdpZL+RUekwfyDaeKk4KrGXmJTGdxeR 1FPEc/uOOrpAnJcHxAj/yTUTBKbgmOqtUbI0Mgz4JjB1s4ABMcIh/8QvKUioS6AxGoQAAAAASUVO RK5CYII= User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:KbGFpAn8OcQrdFJq2EUXTjJZEXE= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62782 Archived-At: Sebastian Luque writes: > Messages in some groups I read contain lots of code in a language typical > of that group. Searching for a way to font-lock messages in these groups > according to a designated mode, I only found one reference from two years > ago where it was concluded such functionality was not available. Have > there been any changes since then? Not that I know of, but I don't know of much. Someone would have to write a computer language guessing library that could be applied to arbitrary text that would say "this section is language X and this section is language Y". It doesn't sound trivial to make. I mean, guessing that a buffer contains, say, PHP isn't very difficult, but saying that "the PHP begins here and stops here, and this isn't code" might be more difficult. Perhaps. I think it sounds like an interesting problem, though. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen