From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: make-field suggestion Date: Wed, 01 Sep 2004 00:57:24 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1094014690 27207 80.91.224.253 (1 Sep 2004 04:58:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2004 04:58:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 01 06:58:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C2NC6-0005qv-00 for ; Wed, 01 Sep 2004 06:58:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2NH0-0001Sp-KH for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2004 01:03:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2NGr-0001S1-UP for emacs-devel@gnu.org; Wed, 01 Sep 2004 01:02:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2NGr-0001Qy-6X for emacs-devel@gnu.org; Wed, 01 Sep 2004 01:02:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2NGr-0001Qu-1E for emacs-devel@gnu.org; Wed, 01 Sep 2004 01:02:57 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2NBV-0006rM-2d for emacs-devel@gnu.org; Wed, 01 Sep 2004 00:57:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1C2NBU-000479-LH; Wed, 01 Sep 2004 00:57:24 -0400 Original-To: Jerry James In-reply-to: (message from Jerry James on Tue, 31 Aug 2004 09:45:10 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.devel:26675 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26675 I would like to suggest the make-field interface for Emacs. The Emacs version would look something like this, if defaulting to text properties is okay: (defun make-field (from to value &optional buffer) "Make a field with value VALUE over the range [FROM, TO) in BUFFER. BUFFER defaults to the current buffer." (with-current-buffer (or buffer (current-buffer)) (put-text-property from to 'field value))) We can certainly install something like this, once it is clear what is best. It depends, I suppose, on how someone would plan to use it.