From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Ferrier Newsgroups: gmane.emacs.help Subject: Re: Adaptive filling in comments / highlighting outside them Date: Wed, 26 Feb 2003 14:25:09 +0000 (UTC) Organization: IBM Hursley Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1046270385 21908 80.91.224.249 (26 Feb 2003 14:39:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2003 14:39:45 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18o2im-0005h4-00 for ; Wed, 26 Feb 2003 15:39:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o2el-0002eV-0A for gnu-help-gnu-emacs@m.gmane.org; Wed, 26 Feb 2003 09:35:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!uwm.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!an02.austin.ibm.com!ausnews.austin.ibm.com!sp15ce20.hursley.ibm.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: tracey.hursley.ibm.com Original-X-Trace: sp15at20.hursley.ibm.com 1046269509 30810 9.20.235.59 (26 Feb 2003 14:25:09 GMT) Original-X-Complaints-To: news@hursley.ibm.com Original-NNTP-Posting-Date: Wed, 26 Feb 2003 14:25:09 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:110643 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7145 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7145 In article , Le Wang wrote: >> >> 1. I'm trying to figure out how to do adaptive filling within comments >> (an example being Emacs lisp ;; style comments). Does anyone know of a >> language-independent way of doing this? I can think that possibly I >> could play with the adaptive-fill-function, but I can't think how this >> could detect comments in a language-independent way (i.e. portable >> between different major modes), without re-writing it significantly for >> each major mode. > > What do you mean by adaptive filling? Using adaptive-fill-mode (built into GNU Emacs 21 and possibly others) -- Andrew Ferrier, WebSphere MQ Install & Packaging Team, MP 211, IBM UK Labs, Hursley Park, Winchester, SO21 2JN, UK. andrew.ferrier@uk.ibm.com tel/fax: 7-246554 or +44 (0) 1962 816554 http://w3.hursley.ibm.com/~ferriera/